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

Re: Documentation problems

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 20, 2009, 18:45 UTC
Message-ID
<vpqeiq1zc9f.fsf@bauges.imag.fr>
In-Reply-To
<4AB67665.10402@gmail.com>
Bruce Korb <bruce.korb@gmail.com> writes:
> Since I haven't created any any branches (to my knowledge), it seems
> that "master" is the magic branch name.
I wouldn't say "magic", but surely the default ;-).
> My goal was just to get a list of managed files.

Just cd /where/your/repo/is git ls-files

> Is "master" going to remain my "HEAD" now?
Yes.
Show 10 quoted lines
>> git-ls-tree is the old way to
>> refer to the command name. Normally, any reference to dashed names
>> should have been removed from the documentation by now (so most likely
>> you see it in your distro because it's an old enough version,
>> otherwise, it's a bug in the doc).
>
> $ git --version
> git version 1.6.0.2
>
> I guess the man pages and installation were out of sync for that release.

Well, actually, a few more instances of dashed commands were removed more recently. That said, to get the doc for "git foo", you still have to type "man git-foo" (or git foo --help indeed), but that's because "man git foo" means something different to man.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Bruce KorbNext: Andreas Schwab
Message 4 of 5 in “Documentation problems”
  1. Bruce KorbSep 20, 2009
  2. Matthieu MoySep 20, 2009
  3. Bruce KorbSep 20, 2009
  4. Matthieu MoySep 20, 2009
  5. Andreas SchwabSep 20, 2009

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.