Staging
v0.8.1
v0.8.1
Revision f2d0df7148a1b9ee69bd69a365ffcd1965872451 authored by Shawn Bohrer on 15 April 2008, 03:14:09 UTC, committed by Junio C Hamano on 15 April 2008, 06:14:58 UTC
When git clean is run from a subdirectory it should follow the normal policy and only remove directories if they are passed in as a pathspec, or -d is specified. The fix is to send len which could be shorter than ent->len because we have stripped the trailing '/' that read_directory adds. Additionaly match_one() was modified to allow a name[] that is not NUL terminated. This allows us to check if the name matched the pathspec exactly instead of recursively. Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f669ac0
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 22 bytes |
Makefile | -rw-r--r-- | 1.3 KB |
branches-- | -rw-r--r-- | 47 bytes |
hooks--applypatch-msg | -rw-r--r-- | 441 bytes |
hooks--commit-msg | -rw-r--r-- | 887 bytes |
hooks--post-commit | -rw-r--r-- | 152 bytes |
hooks--post-receive | -rw-r--r-- | 510 bytes |
hooks--post-update | -rw-r--r-- | 207 bytes |
hooks--pre-applypatch | -rw-r--r-- | 387 bytes |
hooks--pre-commit | -rw-r--r-- | 1.7 KB |
hooks--pre-rebase | -rw-r--r-- | 4.2 KB |
hooks--prepare-commit-msg | -rw-r--r-- | 1.2 KB |
hooks--update | -rw-r--r-- | 2.8 KB |
info--exclude | -rw-r--r-- | 240 bytes |
this--description | -rw-r--r-- | 58 bytes |
Computing file changes ...