git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] contrib/emacs/vc-git.el: various improvements.

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 16, 2007, 03:20 UTC
Message-ID
<7vejj9avaf.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<403842ba71506c7b194812cd9a4f669c847eb7bc.1184548803.git.dak@gnu.org>
David Kastrup <dak@gnu.org> writes:
> (vc-git-symbolic-commit): Simplify and make it return
> something useful in almost all cases.

It would be easier to review and understand if "something useful" were more specific.

It appears that the previous version of this function tried not to barf if it got nil or false as input but now it does not seem to worry about that case. Also the option given to name-rev is different which would lead to different behaviour -- arguably a better one, but that needs to be documented in the log message.

> (vc-git-previous-version): Simplify.
> (vc-git-next-version): Simplify and make more efficient.

If you make the result symbolic using vc-git-symbolic-commit, do you need to add --abbrev/--abbrev-commit to these functions? These options have very small but still non zero cost.

> (vc-git-annotate-command): heed REV argument.
> (vc-annotate-extract-revision-at-line): Activate.
Ok.
Previous: David KastrupNext: David Kastrup
Message 11 of 12 in “contrib/emacs/vc-git.el: various improvements.”
  1. contrib/emacs/vc-git.el: various improvements.David Kastrup, Jul 16, 2007
  2. contrib/emacs/Makefile: Also install .el files.David Kastrup, Jul 15, 2007
  3. David KastrupJul 16, 2007
  4. Junio C HamanoJul 16, 2007
  5. Make several improvements and get annotations to work (Emacs support pending).David Kastrup, Jul 15, 2007
  6. vc-git: support asynchronous annotations, and improve versioning.David Kastrup, Jul 15, 2007
  7. Junio C HamanoJul 16, 2007
  8. David KastrupJul 16, 2007
  9. Junio C HamanoJul 16, 2007
  10. (vc-git-annotate-command): Make synchronous for now.David Kastrup, Jul 16, 2007
  11. Junio C HamanoJul 16, 2007
  12. David KastrupJul 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.