* stg pop/push -a nitpick: not handling deleted files
@ 2006-09-15 17:19 Auke Kok
2006-09-15 21:41 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Auke Kok @ 2006-09-15 17:19 UTC (permalink / raw)
To: git
Hi,
minor nitpick when working with a patch that deletes a file: stg does not
handle the 'abandoned' file when popping all patches off - essentially it would
have to put the file back over an abandoned file.
I'm not sure what the resolution of this would be, but this problem could very
well be anticipated (after all I just pushed/imported a patch removing the file
to the stack).
Cheers,
Auke
$ stg pop -a
Popping "all_git_versions.patch" - "all_copyright_update.patch"
patches...fatal: Untracked working tree file 'drivers/net/e1000/LICENSE' would
be overwritten by merge.
stg pop: git-read-tree failed (local changes maybe?)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: stg pop/push -a nitpick: not handling deleted files
2006-09-15 17:19 stg pop/push -a nitpick: not handling deleted files Auke Kok
@ 2006-09-15 21:41 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2006-09-15 21:41 UTC (permalink / raw)
To: Auke Kok; +Cc: git
Auke Kok <auke-jan.h.kok@intel.com> wrote:
> minor nitpick when working with a patch that deletes a file: stg does
> not handle the 'abandoned' file when popping all patches off -
> essentially it would have to put the file back over an abandoned file.
[...]
> $ stg pop -a
> Popping "all_git_versions.patch" - "all_copyright_update.patch"
> patches...fatal: Untracked working tree file
> 'drivers/net/e1000/LICENSE' would be overwritten by merge.
> stg pop: git-read-tree failed (local changes maybe?)
I don't think it's an StGIT-specific issue, git-read-tree failed to
switch the working tree from one commit to another because a file
would be overwritten. It is probably safer to fail in this situation.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-15 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 17:19 stg pop/push -a nitpick: not handling deleted files Auke Kok
2006-09-15 21:41 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).