<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-log.txt, branch v2.32.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.32.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.32.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-02-06T00:40:44Z</updated>
<entry>
<title>Merge branch 'so/log-diff-merge'</title>
<updated>2021-02-06T00:40:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-06T00:40:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aac006aa99fd94ac1665d6daa31b9e289914bfe7'/>
<id>urn:sha1:aac006aa99fd94ac1665d6daa31b9e289914bfe7</id>
<content type='text'>
"git log" learned a new "--diff-merges=&lt;how&gt;" option.

* so/log-diff-merge: (32 commits)
  t4013: add tests for --diff-merges=first-parent
  doc/git-show: include --diff-merges description
  doc/rev-list-options: document --first-parent changes merges format
  doc/diff-generate-patch: mention new --diff-merges option
  doc/git-log: describe new --diff-merges options
  diff-merges: add '--diff-merges=1' as synonym for 'first-parent'
  diff-merges: add old mnemonic counterparts to --diff-merges
  diff-merges: let new options enable diff without -p
  diff-merges: do not imply -p for new options
  diff-merges: implement new values for --diff-merges
  diff-merges: make -m/-c/--cc explicitly mutually exclusive
  diff-merges: refactor opt settings into separate functions
  diff-merges: get rid of now empty diff_merges_init_revs()
  diff-merges: group diff-merge flags next to each other inside 'rev_info'
  diff-merges: split 'ignore_merges' field
  diff-merges: fix -m to properly override -c/--cc
  t4013: add tests for -m failing to override -c/--cc
  t4013: support test_expect_failure through ':failure' magic
  diff-merges: revise revs-&gt;diff flag handling
  diff-merges: handle imply -p on -c/--cc logic for log.c
  ...
</content>
</entry>
<entry>
<title>doc/git-show: include --diff-merges description</title>
<updated>2020-12-21T21:47:32Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d24509b7b865115836982267a5e54b2f7d77c42'/>
<id>urn:sha1:1d24509b7b865115836982267a5e54b2f7d77c42</id>
<content type='text'>
Move description of --diff-merges option from git-log.txt to
diff-options.txt so that it is included in the git-show help.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/git-log: describe new --diff-merges options</title>
<updated>2020-12-21T21:47:32Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5ffa9ec10a3b82a1530d6f7628bd3ef9e8dd037'/>
<id>urn:sha1:b5ffa9ec10a3b82a1530d6f7628bd3ef9e8dd037</id>
<content type='text'>
Describe all the new --diff-merges options in the git-log.txt and
adopt description of originals accordingly.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: log, gitk: move '-L' description to 'line-range-options.txt'</title>
<updated>2020-11-01T23:54:14Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2020-11-01T17:28:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9c8d8cbbea9cc55d26058a1de767731600ded44'/>
<id>urn:sha1:f9c8d8cbbea9cc55d26058a1de767731600ded44</id>
<content type='text'>
The description of the '-L' option for `git log` and `gitk` is almost
the same, but is repeated in both 'git-log.txt' and 'gitk.txt' (the
difference being that 'git-log.txt' lists the option with a space
after '-L', while 'gitk.txt' lists it as stuck and notes that `gitk`
only understands the stuck form).

Reduce duplication by creating a new file, 'line-range-options.txt',
and include it in both files.

To simplify the presentation, only list the stuck form for both
commands, and remove the note about `gitk` only understanding the stuck
form.

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'so/log-diff-merges-opt'</title>
<updated>2020-08-18T00:02:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-18T00:02:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a555b514cd47f59b43f571eaff6b8cd7c01f0d11'/>
<id>urn:sha1:a555b514cd47f59b43f571eaff6b8cd7c01f0d11</id>
<content type='text'>
Earlier, to countermand the implicit "-m" option when the
"--first-parent" option is used with "git log", we added the
"--[no-]diff-merges" option in the jk/log-fp-implies-m topic.  To
leave the door open to allow the "--diff-merges" option to take
values that instructs how patches for merge commits should be
computed (e.g. "cc"? "-p against first parent?"), redefine
"--diff-merges" to take non-optional value, and implement "off"
that means the same thing as "--no-diff-merges".

* so/log-diff-merges-opt:
  t/t4013: add test for --diff-merges=off
  doc/git-log: describe --diff-merges=off
  revision: change "--diff-merges" option to require parameter
</content>
</entry>
<entry>
<title>Merge branch 'jk/log-fp-implies-m'</title>
<updated>2020-08-18T00:02:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-18T00:02:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eca8c62a50e033ce6a4f4e065bb507ca3d98e75c'/>
<id>urn:sha1:eca8c62a50e033ce6a4f4e065bb507ca3d98e75c</id>
<content type='text'>
"git log --first-parent -p" showed patches only for single-parent
commits on the first-parent chain; the "--first-parent" option has
been made to imply "-m".  Use "--no-diff-merges" to restore the
previous behaviour to omit patches for merge commits.

* jk/log-fp-implies-m:
  doc/git-log: clarify handling of merge commit diffs
  doc/git-log: move "-t" into diff-options list
  doc/git-log: drop "-r" diff option
  doc/git-log: move "Diff Formatting" from rev-list-options
  log: enable "-m" automatically with "--first-parent"
  revision: add "--no-diff-merges" option to counteract "-m"
  log: drop "--cc implies -m" logic
</content>
</entry>
<entry>
<title>doc/git-log: describe --diff-merges=off</title>
<updated>2020-08-11T21:20:27Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-08-05T22:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=405a2fdf998d42469634efeff8461f221bb9398b'/>
<id>urn:sha1:405a2fdf998d42469634efeff8461f221bb9398b</id>
<content type='text'>
Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/git-log: clarify handling of merge commit diffs</title>
<updated>2020-07-29T20:44:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-07-29T20:12:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5fbb4bc1910f76b344fcb88df2544701b6030435'/>
<id>urn:sha1:5fbb4bc1910f76b344fcb88df2544701b6030435</id>
<content type='text'>
It can be surprising that git-log doesn't show any diff for merge
commits by default. Arguably "--cc" would be a reasonable default, but
it's very expensive (which is why we turn it on for "git show" but not
for "git log"). Let's at least document the current behavior, including
the recent "--first-parent implies -m" case

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/git-log: move "-t" into diff-options list</title>
<updated>2020-07-29T20:44:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-07-29T20:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a6d515fc38abc36a94228f2b96813e1b07c0059'/>
<id>urn:sha1:9a6d515fc38abc36a94228f2b96813e1b07c0059</id>
<content type='text'>
The "-t" option is infrequently used; it doesn't deserve a spot near the
top of the options list. Let's push it down into the diff-options
include, near the definition of --raw.

We'll protect it with a git-log ifdef, since it doesn't make any sense
for non-tree diff commands. Note that this means it also shows up in
git-show, but that's a good thing; it applies equally well there.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/git-log: drop "-r" diff option</title>
<updated>2020-07-29T20:44:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-07-29T20:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6cea104b2c0266d61fbce7e9ba485dc6d13c0c8f'/>
<id>urn:sha1:6cea104b2c0266d61fbce7e9ba485dc6d13c0c8f</id>
<content type='text'>
This has been the default since 170c04383b (Porcelain level "log" family
should recurse when diffing., 2007-08-27). There's not even a way to
turn it off, so you'd never even want "-r" to override that.

It's not the default for plumbing like diff-tree, of course, but the
option is documented separately there.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
