Re: Improve handling of "." and ".." in git-diff-*

2005-08-23 Thread Alex Riesen
On 8/23/05, Alex Riesen <[EMAIL PROTECTED]> wrote: > On 8/17/05, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > NOTE! This does _not_ handle ".." or "." in the _middle_ of a pathspec. If > > you have people who do > > BTW, could this (below) be useful for something? > Well, a bit of explanation i

Re: Improve handling of "." and ".." in git-diff-*

2005-08-23 Thread Alex Riesen
On 8/17/05, Linus Torvalds <[EMAIL PROTECTED]> wrote: > NOTE! This does _not_ handle ".." or "." in the _middle_ of a pathspec. If > you have people who do BTW, could this (below) be useful for something? #include #include #include // an analog of "cd path" from a directory "cwd". char* pathe

Re: Improve handling of "." and ".." in git-diff-*

2005-08-16 Thread Linus Torvalds
On Tue, 16 Aug 2005, Linus Torvalds wrote: > > This fixes up usage of ".." (without an ending slash) and "." (with or > without the ending slash) in the git diff family. Btw, if it wasn't clear, with this patch you can now do git diff . and it will show the diffs for everything under

Improve handling of "." and ".." in git-diff-*

2005-08-16 Thread Linus Torvalds
This fixes up usage of ".." (without an ending slash) and "." (with or without the ending slash) in the git diff family. It also fixes pathspec matching for the case of an empty pathspec, since a "." in the top-level directory (or enough ".." under subdirectories) will result in an empty paths