GNU bug report logs - #32400
Context and unified hunk formats not fully documented - no mention of --show-c-function / --show-function-line effect on headers

Previous Next

Package: diffutils;

Reported by: Philippe Cloutier <chealer <at> gmail.com>

Date: Wed, 8 Aug 2018 14:44:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philippe Cloutier <chealer <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: Context and unified hunk formats not fully documented - no mention of
 --show-c-function / --show-function-line effect on headers
Date: Wed, 8 Aug 2018 10:43:17 -0400
Severity: normal

The info documentation describes headers of these formats:
Context: https://www.gnu.org/software/diffutils/manual/html_node/Context-Format.html
Unified: https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html
It assumes that none of the following options was activated:
--show-c-function:
https://www.gnu.org/software/diffutils/manual/html_node/C-Function-Headings.html
--show-function-line:
https://www.gnu.org/software/diffutils/manual/html_node/Specified-Headings.html
When they are activated, the format of the header of some hunks is not
documented.

For example, a unified format hunk header can be "@@ -5,8 +5,10 @@
defmodule Quicksort do", as shown in the second diff on
https://kennyballou.com/blog/2015/10/art-manually-edit-hunks/

This is confusing, and may cause users to think a patch generated by
diff is broken.




This bug report was last modified 6 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.