Gerrit Pape <pape@smarden.org> writes:You raised a good issue, but this also needs other parts of the system to be adjusted. The arguments to git-commit are *NOT* "<file> arguments". They are file patterns and 'ls-files --error-unmatch -- "$@"' is there to allow you to say something like: $ git commit 'p*/*.c' Alas, ls-tree does not grok globbing yet. Try this in git.git repository (surrounding quotes are essential): $ git ls-files 'p*/*.c' $ git ls-tree -r HEAD 'p*/*.c' Currently we have two semantics of "pathspec", and unifying these semantics is one of the items with somewhat higher priority on my TODO list for the 1.5.4 cycle (I started looking at diff-tree and log last night): * ls-files, diff-files, diff-index and grep understand both "leading directory prefix" and "glob pattern"; you can say: $ git ls-files -- arm/ 'p*/*.c' $ git grep int -- arm/ 'p*/*.c' and they do what you would expect them to do. * diff-tree, log family and ls-tree understand only "leading directory prefix" and not "glob pattern"; you cannot say: $ git log -- 'p*/*.c' So your patch is a definite improvement for normal ("non pattern" but "exact pathname") case, but needs the updates to pathspec semantics to be the correct fix. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Artem Bityutskiy | [RFC PATCH 06/26] UBIFS: add superblock and master node |
| Christian | 2.6.22-rc1 does not boot on VIA C3_2 cause of X86_CMPXCHG64 |
| Martin Schwidefsky | [GIT PULL] kernel message catalog patches |
git: | |
| David Kastrup | Empty directories... |
| Han-Wen Nienhuys | git branch performance problem? |
| Tim Ansell | Whats happening with git-notes? |
| Marco Costalba | [PATCH 11/11] Convert sha1_file.c to use decompress helpers |
| Mayuresh Kathe | Richard Stallman... |
| William Boshuck | Re: Longest Uptime? |
| Sean Hafeez | hostname.pppoe0 with AT&T/SBC debug? |
| new_guy | Re: Code signing in OpenBSD |
| Patrick Ohly | [RFC PATCH 00/13] hardware time stamping + igb example implementation |
| Johannes Berg | mac80211 truesize bugs |
| Denys | r8169 crash |
| Peter Zijlstra | Re: [tbench regression fixes]: digging out smelly deadmen. |
