<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-commit.txt, branch v2.16.3</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v2.16.3</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v2.16.3'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2017-12-22T21:10:24Z</updated>
<entry>
<title>commit: add support for --fixup &lt;commit&gt; -m"&lt;extra message&gt;"</title>
<updated>2017-12-22T21:10:24Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2017-12-22T20:41:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=30884c9afcd03aa7d9a0524fde3c96d2e29cf9a9'/>
<id>urn:sha1:30884c9afcd03aa7d9a0524fde3c96d2e29cf9a9</id>
<content type='text'>
Add support for supplying the -m option with --fixup. Doing so has
errored out ever since --fixup was introduced. Before this, the only
way to amend the fixup message while committing was to use --edit and
amend it in the editor.

The use-case for this feature is one of:

 * Leaving a quick note to self when creating a --fixup commit when
   it's not self-evident why the commit should be squashed without a
   note into another one.

 * (Ab)using the --fixup feature to "fix up" commits that have already
   been pushed to a branch that doesn't allow non-fast-forwards,
   i.e. just noting "this should have been part of that other commit",
   and if the history ever got rewritten in the future the two should
   be combined.

   In such a case you might want to leave a small message,
   e.g. "forgot this part, which broke XYZ".

With this, --fixup &lt;commit&gt; -m"More" -m"Details" will result in a
commit message like:

    !fixup &lt;subject of &lt;commit&gt;&gt;

    More

    Details

The reason the test being added here seems to squash "More" at the end
of the subject line of the commit being fixed up is because the test
code is using "%s%b" so the body immediately follows the subject, it's
not a bug in this code, and other tests t7500-commit.sh do the same
thing.

When the --fixup option was initially added the "Option -m cannot be
combined" error was expanded from -c, -C and -F to also include
--fixup[1]

Those options could also support combining with -m, but given what
they do I can't think of a good use-case for doing that, so I have not
made the more invasive change of splitting up the logic in commit.c to
first act on those, and then on -m options.

1. d71b8ba7c9 ("commit: --fixup option for use with rebase
   --autosquash", 2010-11-02)

Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit doc: document that -c, -C, -F and --fixup with -m error</title>
<updated>2017-12-22T19:20:47Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2017-12-22T16:00:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f55e84fff9b53e532a874f39384a3bcbb9292f28'/>
<id>urn:sha1:f55e84fff9b53e532a874f39384a3bcbb9292f28</id>
<content type='text'>
Document that providing any of -c, -C, -F and --fixup along with -m
will result in an error. Some variant of this has been errored about
explicitly since 0c091296c0 ("git-commit: log parameter updates.",
2005-08-08), but the documentation was never updated to reflect this.

Wording-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: reformat the paragraph containing the 'cut-line'</title>
<updated>2017-07-18T22:04:49Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaarticsivaraam91196@gmail.com</email>
</author>
<published>2017-07-18T14:34:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3a33fe5c97c0556303367bfd94411448113b1332'/>
<id>urn:sha1:3a33fe5c97c0556303367bfd94411448113b1332</id>
<content type='text'>
The paragraph that describes the 'scissors' cleanup mode of
'commit' had the 'cut-line' in the middle of a sentence. This
made it possible for the line to get wrapped on smaler windows.
This shouldn't be the case as it makes it hard for the user to
understand the structure of the cut-line.

Reformat the pragraph to make the 'cut-line' stand on a line of
it's own thus distinguishing it from the rest of the paragraph.
This further prevents it from getting wrapped to some extent.

Signed-off-by: Kaartic Sivaraam &lt;kaarticsivaraam91196@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fix minor typos</title>
<updated>2017-05-01T02:01:52Z</updated>
<author>
<name>René Genz</name>
<email>liebundartig@freenet.de</email>
</author>
<published>2017-04-30T15:48:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5621760f59c0655e41045c3141deef9791858916'/>
<id>urn:sha1:5621760f59c0655e41045c3141deef9791858916</id>
<content type='text'>
Helped-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: René Genz &lt;liebundartig@freenet.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/commit-hook-doc-fix'</title>
<updated>2017-03-21T22:07:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-21T22:07:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=fbcfbc4d5de6b307a9a7dc12fb6e969914abd17c'/>
<id>urn:sha1:fbcfbc4d5de6b307a9a7dc12fb6e969914abd17c</id>
<content type='text'>
Doc fix.

* nd/commit-hook-doc-fix:
  git-commit.txt: list post-rewrite in HOOKS section
</content>
</entry>
<entry>
<title>git-commit.txt: list post-rewrite in HOOKS section</title>
<updated>2017-03-20T17:53:29Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2017-03-19T09:01:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=baced9e4e5f0206f76f538ea1517c5097443359d'/>
<id>urn:sha1:baced9e4e5f0206f76f538ea1517c5097443359d</id>
<content type='text'>
The hook was added in a86ed83cce (Merge branch 'tr/notes-display' -
2010-03-24), which updated githooks.txt but not git-commit.txt.

git-commit.txt was later updated in e858af6d50 (commit: document a
couple of options - 2012-06-08). Since this commit focused on command
line options, this section was probably forgotten.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: improve description for core.quotePath</title>
<updated>2017-03-02T19:40:51Z</updated>
<author>
<name>Andreas Heiduk</name>
<email>asheiduk@gmail.com</email>
</author>
<published>2017-03-02T19:03:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=860cd699c285f02937a2edbdb78e8231292339a5'/>
<id>urn:sha1:860cd699c285f02937a2edbdb78e8231292339a5</id>
<content type='text'>
Linking the description for pathname quoting to the configuration
variable "core.quotePath" removes inconstistent and incomplete
sections while also giving two hints how to deal with it: Either with
"-c core.quotePath=false" or with "-z".

Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ak/commit-only-allow-empty'</title>
<updated>2016-12-19T22:45:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-12-19T22:45:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3aead1cad7a9a35534b86763bbe8c97dfd3f1a03'/>
<id>urn:sha1:3aead1cad7a9a35534b86763bbe8c97dfd3f1a03</id>
<content type='text'>
"git commit --allow-empty --only" (no pathspec) with dirty index
ought to be an acceptable way to create a new commit that does not
change any paths, but it was forbidden, perhaps because nobody
needed it so far.

* ak/commit-only-allow-empty:
  commit: remove 'Clever' message for --only --amend
  commit: make --only --allow-empty work without paths
</content>
</entry>
<entry>
<title>commit: make --only --allow-empty work without paths</title>
<updated>2016-12-05T20:41:06Z</updated>
<author>
<name>Andreas Krey</name>
<email>a.krey@gmx.de</email>
</author>
<published>2016-12-02T22:15:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=319d835240b752b94ccb67f6515759824955937b'/>
<id>urn:sha1:319d835240b752b94ccb67f6515759824955937b</id>
<content type='text'>
--only is implied when paths are present, and required
them unless --amend. But with --allow-empty it should
be allowed as well - it is the only way to create an
empty commit in the presence of staged changes.

Signed-off-by: Andreas Krey &lt;a.krey@gmx.de&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/commit-p-doc'</title>
<updated>2016-10-17T20:25:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-17T20:25:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=af9a70c8de7b1d45ecd0bbb1379c5c3e911a9dcd'/>
<id>urn:sha1:af9a70c8de7b1d45ecd0bbb1379c5c3e911a9dcd</id>
<content type='text'>
Documentation for "git commit" was updated to clarify that "commit
-p &lt;paths&gt;" adds to the current contents of the index to come up
with what to commit.

* nd/commit-p-doc:
  git-commit.txt: clarify --patch mode with pathspec
</content>
</entry>
</feed>
