Re: StGIT refreshes all added files - limitation of git-write-tree?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: StGIT refreshes all added files - limitation of git-write-tree?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:19

Pavel Roskin [off-list ref] 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.

Re: StGIT refreshes all added files - limitation of git-write-tree?

From: Pavel Roskin <hidden>
Date: 2016-06-15 22:42:19

On Tue, 2006-02-14 at 22:20 -0800, Junio C Hamano wrote:
Pavel Roskin [off-list ref] writes:
quoted
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.
Thank you!  It's comforting to know that the issue is not unique to
StGIT.

-- 
Regards,
Pavel Roskin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help