Thread (1 message) 1 message, 1 author, 2026-03-10

Re: [PATCH v2] diff: document -U without <n> as using default context

From: Junio C Hamano <hidden>
Date: 2026-03-10 13:14:26

Oswald Buddenhagen [off-list ref] writes:
quoted
Since we are retaining this fallback behavior for backward compatibility,
update the documentation to explicitly state that '<n>' can be omitted
for the short option '-U'.
i'd replace that with:

Hence we retain this fallback behavior for backward compatibility, but 
document it as such.
quoted
+	(`-U` without `<n>` is accepted as a silent synonym for `-p` due
+	to a historical accident).
"silently accepted as a synonym" would be much more natural.
An excellent suggestion.  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help