]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'rs/tighten-alias-help'
authorJunio C Hamano <gitster@pobox.com>
Tue, 5 Aug 2025 18:53:55 +0000 (11:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Aug 2025 18:53:56 +0000 (11:53 -0700)
commit2823d928b4adf4083e846385a7045bdd24eb926b
tree06c2f96a83ccc228c7fdd651081d44721d3d6af8
parent4ce0caa7cc27d50ee1bedf1dff03f13be4c54c1f
parent161e895e42f4fad83828c1c954adb9375f4b0092
Merge branch 'rs/tighten-alias-help'

"git -c alias.foo=bar foo -h baz" reported "'foo' is aliased to
'bar'" and then went on to run "git foo -h baz", which was
unexpected.  Tighten the rule so that alias expansion is reported
only when "-h" is the sole option.

* rs/tighten-alias-help:
  git: show alias info only with lone -h