git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: stg pop/push -a nitpick: not handling deleted files

From
CMCatalin Marinas <catalin.marinas@arm.com>
Date
Sep 15, 2006, 21:41 UTC
Message-ID
<tnxzmd03j0q.fsf@arm.com>
In-Reply-To
<450AE0AC.7060806@intel.com>
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.
[...]
Show 5 quoted lines
> $ 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
Previous: Auke Kok
Message 2 of 2 in “stg pop/push -a nitpick: not handling deleted files”
  1. Auke KokSep 15, 2006
  2. Catalin MarinasSep 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.