]> granicus.if.org Git - git/commit
Merge branch 'sg/blame-in-bare-start-at-head'
authorJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:21 +0000 (16:41 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:21 +0000 (16:41 +0900)
commitd8620d3ca7a01c1108f3145cc77dbda6e0e970c6
tree26c7106af5727b8b0740eea664da5cedcebbb6e5
parent503f5809e8b32a9f5b0137bf6d1a4cac21818a51
parenta544fb08f8bfa3a9a566d436e5e81dd30fb21c4c
Merge branch 'sg/blame-in-bare-start-at-head'

"git blame -- path" in a non-bare repository starts blaming from
the working tree, and the same command in a bare repository errors
out because there is no working tree by definition.  The command
has been taught to instead start blaming from the commit at HEAD,
which is more useful.

* sg/blame-in-bare-start-at-head:
  blame: default to HEAD in a bare repo when no start commit is given
builtin/blame.c