Staging
v0.5.1
v0.5.1
Revision a8db80c22494396a81d2b4b7f4082c369fc0f78d authored by Jeff King on 12 January 2008, 09:04:32 UTC, committed by Junio C Hamano on 12 January 2008, 19:10:09 UTC
The "seen" variable is used by match_pathspec, and must have as many elements as there are in the given pathspec. We create the pathspec either from the command line arguments _or_ from just the current prefix. Thus allocating "seen" based upon just argc is wrong, since if argc == 0, then we still have one pathspec, the prefix, but we don't allocate any space in "seen". Signed-off-by: Jeff King <peff@peff.net> Tested-by: İsmail Dönmez <ismail@pardus.org.tr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 98fa5b6
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-- | 780 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--update | -rw-r--r-- | 2.9 KB |
info--exclude | -rw-r--r-- | 240 bytes |
this--description | -rw-r--r-- | 58 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...