author | Junio C Hamano <gitster@pobox.com> | |
Fri, 17 Feb 2012 18:11:05 +0000 (10:11 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 17 Feb 2012 18:11:05 +0000 (10:11 -0800) | ||
commit | 3d1f148c3381de410a9b02a05bde05cd0fb17a0c | |
tree | c853d1e06f704cdc1343322f1684095f9b073312 | tree | snapshot |
parent | d1ba7a4cb77b64993a56b06c1497d1ab78094cc4 | commit | diff |
refresh_index: do not show unmerged path that is outside pathspec
When running "git add --refresh <pathspec>", we incorrectly showed the
path that is unmerged even if it is outside the specified pathspec, even
though we did honor pathspec and refreshed only the paths that matched.
Note that this cange does not affect "git update-index --refresh"; for
hysterical raisins, it does not take a pathspec (it takes real paths) and
more importantly itss command line options are parsed and executed one by
one as they are encountered, so "git update-index --refresh foo" means
"first refresh the index, and then update the entry 'foo' by hashing the
contents in file 'foo'", not "refresh only entry 'foo'".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When running "git add --refresh <pathspec>", we incorrectly showed the
path that is unmerged even if it is outside the specified pathspec, even
though we did honor pathspec and refreshed only the paths that matched.
Note that this cange does not affect "git update-index --refresh"; for
hysterical raisins, it does not take a pathspec (it takes real paths) and
more importantly itss command line options are parsed and executed one by
one as they are encountered, so "git update-index --refresh foo" means
"first refresh the index, and then update the entry 'foo' by hashing the
contents in file 'foo'", not "refresh only entry 'foo'".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c | diff | blob | history | |
t/t3700-add.sh | diff | blob | history |