From: Junio C Hamano Date: Wed, 15 Feb 2006 06:20:23 GMT Subject: Re: StGIT refreshes all added files - limitation of git-write-tree? Message-ID: <7vacctnnx4.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <1139978528.28292.41.camel@dv> Pavel Roskin writes: > Or maybe git-write-tree and other utilities could be changed to work on > a copy of the index file? I would prefer not to move the > actual .git/index away, but to make a copy for the current "stg refresh" > operation. There is no need to change the core side. GIT_INDEX_FILE=temporary-index git-write-tree would do the job. See the current round of git-commit and how it handles "git commit --only these files" case.