Re: [PATCH v2] checkout: add --no-widen for restoring files in sparse checkout mode

2013-03-31 Thread Jonathan Nieder
Duy Nguyen wrote: > On Mon, Apr 1, 2013 at 11:48 AM, Jonathan Nieder wrote: >> I'm afraid I can't imagine when --no-respect-skip-worktree would be >> useful. That can easily be a failure of my imagination, though. > > There may be scripts that expect "git checkout -- foo" to reset > everything i

Re: [PATCH v2] checkout: add --no-widen for restoring files in sparse checkout mode

2013-03-31 Thread Duy Nguyen
On Mon, Apr 1, 2013 at 11:48 AM, Jonathan Nieder wrote: > Hi, > > Nguyễn Thái Ngọc Duy wrote: > >> "git checkout -- " is usually used to restore all modified >> files in . In sparse checkout mode, this command is overloaded >> with another meaning: to add back all files in that are >> excluded by

Re: [PATCH v2] checkout: add --no-widen for restoring files in sparse checkout mode

2013-03-31 Thread Junio C Hamano
Jonathan Nieder writes: > Nguyễn Thái Ngọc Duy wrote: > >> "git checkout -- " is usually used to restore all modified >> files in . In sparse checkout mode, this command is overloaded >> with another meaning: to add back all files in that are >> excluded by sparse patterns. >> >> Add "--no-widen

Re: [PATCH v2] checkout: add --no-widen for restoring files in sparse checkout mode

2013-03-31 Thread Jonathan Nieder
Hi, Nguyễn Thái Ngọc Duy wrote: > "git checkout -- " is usually used to restore all modified > files in . In sparse checkout mode, this command is overloaded > with another meaning: to add back all files in that are > excluded by sparse patterns. > > Add "--no-widen" option to do what normal mod