]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Fix filename verification when in a subdirectory
authorLinus Torvalds <torvalds@osdl.org>
Wed, 26 Apr 2006 17:15:54 +0000 (10:15 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 26 Apr 2006 19:16:21 +0000 (12:16 -0700)
commite23d0b4a4a55cc07e133905f0e9526b3550dd61b
tree515672854c5dd676564edf9d73792129d62f9ecc
parentb176e6ba5bc37466ffcb6c8c0f38c47ec6e9e73a
Fix filename verification when in a subdirectory

When we are in a subdirectory of a git archive, we need to take the prefix
of that subdirectory into accoung when we verify filename arguments.

Noted by Matthias Lederhofer

This also uses the improved error reporting for all the other git commands
that use the revision parsing interfaces, not just git-rev-parse. Also, it
makes the error reporting for mixed filenames and argument flags clearer
(you cannot put flags after the start of the pathname list).

[jc: with fix to a trivial typo noticed by Timo Hirvonen]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h
rev-parse.c
revision.c
setup.c