From: Thomas Glanzmann Date: Sun, 01 May 2005 08:47:10 GMT Subject: Re: update-cache ./test.c Message-ID: <20050501084710.GJ26663@cip.informatik.uni-erlangen.de> In-Reply-To: <20050501084145.GA30692@xi.wantstofly.org> Hello, > update-cache seems to ignore paths containing path components > starting with a dot: > pi% update-cache --add ./test.c > Ignoring path ./test.c > pi% update-cache --add test.c > pi% > This is slightly annoying as 'find -type f | xargs update-cache --add' > doesn't work because of this. ('find * -type f | ...` does.) Instead > of ignoring the file, can we just strip off the leading "./" ? just use a shell script to obtain that: find -type f | sed "s#^./##" | xargs update-cache --add Greetings, Thomas