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
To reply to this bug, email your comments to 32400 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-diffutils <at> gnu.org
:
bug#32400
; Package
diffutils
.
(Wed, 08 Aug 2018 14:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Philippe Cloutier <chealer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-diffutils <at> gnu.org
.
(Wed, 08 Aug 2018 14:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.