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

Re: stgit: command to remove file from patch

From
Chris Packham <judge.packham@gmail.com>
Date
Aug 20, 2010, 00:27 UTC
Message-ID
<4C6DCC0A.5040006@gmail.com>
In-Reply-To
<829548.96589.qm@web45501.mail.sp1.yahoo.com>
On 19/08/10 09:29, av78us vaal wrote:
Show 12 quoted lines
> Hi, 
> 
> Is there a command to remove a file from a patch in stgit? I mean, something like "quilt remove". 
> 
> I searched a lot but I couldn't find any. 
> 
> If such a command is not available, is there an easy way to achieve this by other means. I tried this by changing the git commit and using "stg repair". That didn't work for me.
> 
> I would like to propose "stg remove" to be placed very high on stgit wish-list. 
> 
> Thanks,
> Aneesh
What do you mean by remove?

If you want to undo changes that are in the current patch you can do something like:

  git checkout HEAD~1 filename
  stg refresh
If you want to retain the changes but move them to another patch:
   git reset HEAD filename
   stg refresh -i

I regularly use the first method, the second method I _think_ will work but haven't tried it.

Previous: av78us vaal
Message 2 of 2 in “stgit: command to remove file from patch”
  1. av78us vaalAug 19, 2010
  2. Chris PackhamAug 20, 2010

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.