]> git.eshelyaron.com Git - emacs.git/commit
Improve handling of the first Git revision
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 18 May 2015 12:49:13 +0000 (15:49 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 18 May 2015 12:50:57 +0000 (15:50 +0300)
commit69d24b40d2ed3cdfa7e79da4c729bddd381c8231
treec48c2877459e95f1542663d546ec11682cceec2c
parentd3d50a9c99ef42a270127fe0f5a9e435eb760079
Improve handling of the first Git revision

* lisp/vc/log-view.el (log-view-toggle-entry-display): When
there's no next entry, delete until the end of the buffer.
(log-view-end-of-defun-1): Stop at eob.

* lisp/vc/vc-annotate.el
(vc-annotate-show-diff-revision-at-line-internal): Don't give up
when previous-revision is nil.

* lisp/vc/vc-git.el (vc-git-expanded-log-entry): End the arguments
with `--' to avoid ambiguity.
(vc-git-annotate-extract-revision-at-line): Exclude `^' from the
returned revision string.
(vc-git-annotate-time): Expect `^' before the first revision.

* lisp/vc/vc-git.el (vc-git-diff): Diff against an empty tree if
REV1 is nil, and REV2 is not.

* lisp/vc/vc.el: Update the description of the `diff' function.
lisp/vc/log-view.el
lisp/vc/vc-annotate.el
lisp/vc/vc-git.el
lisp/vc/vc.el