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

Re: wishlist: git info

From
TNThomas Neumann <tneumann@users.sourceforge.net>
Date
Nov 13, 2007, 11:32 UTC
Message-ID
<47398B43.30408@users.sourceforge.net>
In-Reply-To
<Pine.LNX.4.64.0711131111220.4362@racer.site>
> Is slightly troubles me that you put so much emphasis on what I would call 
> "remote information".  I understand that in svn, your working directory 
> without the server is not very useful.  But we do not have that problem.

that is true. My usage pattern probably stems from the fact that I am a long term svn user :) And I use git for work now, where there is indeed some kind of central repository just as in a Subversion setting. In a fully decentralized setting the remote information is probably not as important, although you might still want to know what happens if you issue "git pull".

> FWIW I think a much better idea is to have that bash prompt that was 
> posted some months ago; there's not even a need to run a program manually 
> then!

a bash prompt is nice too, of course. But there is only so much information you can reasonably encode in the prompt. When you know the remote url (ok, this assumes a "centralized" model), branch, head commit and date of the head commit (this is just for humans), you know very precisely what you are looking at. For the more decentralized users some other information might be relevant, I don't know.

While the head commit hash is enough to identify a point in the revision history, the other information allows a human to identify the point in the revision history easily. So I can see what is checked out, how old the checkout is etc.

> His name is "Riesen", just like in the German translation of the famous 
> Newton statement.

sorry for the typo, I noticed it just the moment I had pressed send... Sometimes I really wish I could edit mails after sending them.

Thomas
Previous: Johannes SchindelinNext: Jan Hudec
Message 10 of 17 in “wishlist: git info”
  1. Thomas NeumannNov 12, 2007
  2. Alex RiesenNov 12, 2007
  3. Thomas NeumannNov 12, 2007
  4. Alex RiesenNov 12, 2007
  5. Jakub NarebskiNov 12, 2007
  6. Thomas NeumannNov 13, 2007
  7. Jakub NarebskiNov 13, 2007
  8. Jakub NarebskiNov 13, 2007
  9. Johannes SchindelinNov 13, 2007
  10. Thomas NeumannNov 13, 2007
  11. Jan HudecNov 17, 2007
  12. Junio C HamanoNov 13, 2007
  13. Thomas NeumannNov 13, 2007
  14. Andreas EricssonNov 13, 2007
  15. Junio C HamanoNov 13, 2007
  16. Alex RiesenNov 13, 2007
  17. Andreas EricssonNov 13, 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.