Re: [PATCH 2/2] Add 'stg uncommit' command
- From
- Catalin Marinas <catalin.marinas@gmail.com>
- Date
- Feb 19, 2006, 10:51 UTC
- Message-ID
- <43F84D9A.2010905@gmail.com>
- In-Reply-To
- <20060217043128.14175.60168.stgit@backpacker.hemma.treskal.com>
Karl Hasselström wrote:
> Add an uncommit command, which is exactly the opposite of 'stg > commit'.
Applied with two minor modifications. See below:
Show 11 quoted lines
> --- a/stgit/commands/commit.py > +++ b/stgit/commands/commit.py > @@ -28,8 +28,9 @@ usage = """%prog [options] > Merge the applied patches into the base of the current stack and > remove them from the series while advancing the base. > > -Use this command only if you want to permanently store the applied > -patches and no longer manage them with StGIT.""" > +Use this command if you want to permanently store the applied patches > +and no longer manage them with StGIT. If you should change your mind > +later, use 'stg uncommit'."""
I removed this change because, even if uncommit does the opposite of commit does, the intended use is not to use commit/uncommit in pairs.
Show 8 quoted lines
> diff --git a/stgit/commands/uncommit.py b/stgit/commands/uncommit.py > new file mode 100644 > index 0000000..4ac0dfb > --- /dev/null > +++ b/stgit/commands/uncommit.py > @@ -0,0 +1,80 @@ > +__copyright__ = """ > +Copyright (C) 2006, Catalin Marinas <catalin.marinas@gmail.com>
I added your name on the copyright since this is a new file.
Thanks,
Catalin