* stgit: command to remove file from patch
@ 2010-08-19 16:29 av78us vaal
2010-08-20 0:27 ` Chris Packham
0 siblings, 1 reply; 2+ messages in thread
From: av78us vaal @ 2010-08-19 16:29 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: stgit: command to remove file from patch
2010-08-19 16:29 stgit: command to remove file from patch av78us vaal
@ 2010-08-20 0:27 ` Chris Packham
0 siblings, 0 replies; 2+ messages in thread
From: Chris Packham @ 2010-08-20 0:27 UTC (permalink / raw)
To: av78us vaal; +Cc: git
On 19/08/10 09:29, av78us vaal wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-20 0:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-19 16:29 stgit: command to remove file from patch av78us vaal
2010-08-20 0:27 ` Chris Packham
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).