]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/blame.c
line-log: mention both modes in 'blame' and 'log' short help
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Sun, 1 Nov 2020 17:28:44 +0000 (17:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Nov 2020 23:54:14 +0000 (15:54 -0800)
commit180d641d7d71ba45a140e9c83777d30be59c4274
tree3d80f94b4d7e3882f263b5720218494a25aeef26
parent0cce88f1e4b0ccbdc804db8b522aeb11b0f2b199
line-log: mention both modes in 'blame' and 'log' short help

'git blame -h' and 'git log -h' both show '-L <n,m>' and describe this
option as "Process only line range n,m, counting from 1". No hint is
given that a function name regex can also be used.

Use <range> instead, and expand the description of the option to mention
both modes. Remove "counting from 1" as it's uneeded; it's uncommon to
refer to the first line of a file as "line 0".

Also, for 'git log', improve the wording to better reflect the long help.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
builtin/log.c