From: Pat Notz Date: Wed, 22 Sep 2010 18:01:13 GMT Subject: Re: [PATCHv2 1/4] commit: --fixup option for use with rebase --autosquash Message-ID: In-Reply-To: <1285100703-49087-2-git-send-email-patnotz@gmail.com> On Tue, Sep 21, 2010 at 2:25 PM, Pat Notz wrote: > This option makes it convenient to construct commit messages for use > with 'rebase --autosquash'.  The resulting commit message will be > "fixup! ..." where "..." is the subject line of the specified commit > message. > > Example usage: >  $ git commit --fixup HEAD~2 > > Signed-off-by: Pat Notz > --- >  Documentation/git-commit.txt |   13 +++++++++---- >  builtin/commit.c             |   23 +++++++++++++++++++---- >  2 files changed, 28 insertions(+), 8 deletions(-) > > diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt > index 42fb1f5..3367f8f 100644 > --- a/Documentation/git-commit.txt > +++ b/Documentation/git-commit.txt > @@ -9,10 +9,10 @@ SYNOPSIS >  -------- >  [verse] >  'git commit' [-a | --interactive] [-s] [-v] [-u] [--amend] [--dry-run] > -          [(-c | -C) ] [-F | -m ] [--reset-author] > -          [--allow-empty] [--allow-empty-message] [--no-verify] [-e] [--author=] > -          [--date=] [--cleanup=] [--status | --no-status] [--] > -          [[-i | -o ]...] > +          [(-c | -C | --fixup) ] [-F | -m ] > +          [--reset-author] [--allow-empty] [--allow-empty-message] [--no-verify] > +          [-e] [--author=] [--date=] [--cleanup=] > +          [--status | --no-status] [--] [[-i | -o ]...] > >  DESCRIPTION >  ----------- > @@ -70,6 +70,11 @@ OPTIONS >        Like '-C', but with '-c' the editor is invoked, so that >        the user can further edit the commit message. > > +--fixup=:: > +       Construct a commit message for use with `rebase --autosquash`. > +       The commit message will be the subject line from the specified > +       commit with a prefix of "fixup! ". > + I should add links to the git-rebase man page here.