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

Re: Status of all files (was: Re: How can I tell if a file is ignored by git?

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Apr 9, 2010, 12:11 UTC
Message-ID
<864ojkx1un.fsf@red.stonehenge.com>
In-Reply-To
<20100409113248.GB27353@thyrsus.com>
>>>>> "Eric" == Eric Raymond <esr@thyrsus.com> writes:

Eric> There could be something better. Emacs VC mode, and other similar Eric> front ends, would be greatly aided by a command that lists all files, Eric> each with a status code it can understand. Our canonical list Eric> (omitting two that apply only to locking systems) is:

A lot of these don't make sense for git and other DVCS. How have hg and bzr interpreted these "canonical" states?

For example:

Eric> 'needs-update The file has not been edited by the user, but there is Eric> a more recent version on the current branch stored Eric> in the master file.

This makes sense only with a file-based VCS, not a tree-based VCS like git.

Eric> 'needs-merge The file has been edited by the user, and there is also Eric> a more recent version on the current branch stored in Eric> the master file. This state can only occur if locking Eric> is not used for the file.

Ditto.

Eric> 'removed Scheduled to be deleted from the repository Eric> on next commit.

Not useful in git.

Eric> 'missing The file is not present in the file system, but the VC Eric> system still tracks it.

Not available in git.  (If it's not a real file, it can't be tracked. :)

Eric> 'ignored The file showed up in a dir-status listing with a flag Eric> indicating the version-control system is ignoring it,

Eric>   'unregistered      The file is not under version control.
These two would be identical in git.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Previous: Eric RaymondNext: Eric Raymond
Message 4 of 19 in “How can I tell if a file is ignored by git?”
  1. Eric RaymondApr 9, 2010
  2. Jacob HelwigApr 9, 2010
  3. Status of all files (was: Re: How can I tell if a file is ignored by git?Eric Raymond, Apr 9, 2010
  4. Randal L. SchwartzApr 9, 2010
  5. Eric RaymondApr 9, 2010
  6. Junio C HamanoApr 10, 2010
  7. Jakub NarebskiApr 9, 2010
  8. Eric RaymondApr 9, 2010
  9. Matthieu MoyApr 9, 2010
  10. Eric RaymondApr 9, 2010
  11. Junio C HamanoApr 9, 2010
  12. Jakub NarebskiApr 9, 2010
  13. Paolo BonziniApr 10, 2010
  14. Jeff KingApr 11, 2010
  15. Ramkumar RamachandraApr 9, 2010
  16. Ævar Arnfjörð BjarmasonApr 9, 2010
  17. Eric RaymondApr 9, 2010
  18. Daniel GraceApr 9, 2010
  19. Eric RaymondApr 10, 2010

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.