summaryrefslogtreecommitdiff
path: root/hashmap.h
diff options
context:
space:
mode:
authorLibravatar David Turner <dturner@twopensource.com>2015-05-18 14:08:46 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-18 14:04:15 -0700
commit838d6a928fc3aef3827d9a45e6aac044fea7451e (patch)
treef64afc9d14ae6cabf55d946765600071eddea6f0 /hashmap.h
parentMerge branch 'maint-1.9' into maint-2.0 (diff)
downloadtgif-838d6a928fc3aef3827d9a45e6aac044fea7451e.tar.xz
clean: only lstat files in pathspec
Even though "git clean" takes pathspec to limit the part of the working tree to be cleaned, it checked the paths it encounters during its directory traversal with lstat(2), before checking if the path is within the pathspec. Ignore paths outside pathspec and proceed without checking with lstat(2). Even if such a path is unreadable due to e.g. EPERM, "git clean" should not care. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hashmap.h')
0 files changed, 0 insertions, 0 deletions