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

Re: [PATCH] fix vc git

From
Junio C Hamano <junkio@cox.net>
Date
Dec 22, 2006, 04:54 UTC
Message-ID
<7vvek47cph.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<8e745ecf0612212011q26f81d91uce143b4212fc5e8b@mail.gmail.com>
"Duncan Mak" <duncan@a-chinaman.com> writes:
> I don't think vc-git-registered-file will ever be called with a
> filename without a directory, as it is used as a hook on
> vc-next-action, which works on a real file.
I am showing my ignorance, but
 (1) if it works on a real file then can it ever give you a file
     that is in nonexisting directory?
 (2) when it works on a file at the root level of the project
     tree, say, just "Makefile" wouldn't dir which is the result
     of (file-name-directory file) be sometimes nil?  I suspect
     that is the reason of the original (when dir ...)

In either case, your change would not break anything. I am just being curious.

Previous: Duncan MakNext: Alexandre Julliard
Message 6 of 10 in “fix vc git”
  1. fix vc gitDuncan Mak, Dec 21, 2006
  2. Jakub NarebskiDec 21, 2006
  3. Duncan MakDec 21, 2006
  4. Junio C HamanoDec 22, 2006
  5. Duncan MakDec 22, 2006
  6. Junio C HamanoDec 22, 2006
  7. Alexandre JulliardDec 22, 2006
  8. Duncan MakDec 22, 2006
  9. Alexandre JulliardDec 22, 2006
  10. Duncan MakDec 22, 2006

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.