From: Chris Packham <judge.packham@gmail.com>
To: av78us vaal <av78us@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: stgit: command to remove file from patch
Date: Thu, 19 Aug 2010 17:27:54 -0700 [thread overview]
Message-ID: <4C6DCC0A.5040006@gmail.com> (raw)
In-Reply-To: <829548.96589.qm@web45501.mail.sp1.yahoo.com>
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.
prev parent reply other threads:[~2010-08-20 0:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-19 16:29 stgit: command to remove file from patch av78us vaal
2010-08-20 0:27 ` Chris Packham [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C6DCC0A.5040006@gmail.com \
--to=judge.packham@gmail.com \
--cc=av78us@yahoo.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).