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

Re: wishlist: git info

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 12, 2007, 22:21 UTC
Message-ID
<20071112222106.GE2918@steel.home>
In-Reply-To
<fhad5q$iia$1@ger.gmane.org>
Thomas Neumann, Mon, Nov 12, 2007 21:30:56 +0100:
Show 11 quoted lines
> while git is pleasant to use in everyday work, there is one svn feature
> which is miss dearly, namely "svn info". svn info can give information
> about specific file objects, but I think its main feature is to use it
> without any path and thus just describe the current project.
> I use this a lot to quickly find out to which remote repository the
> current directory belongs (yes, some work projects tend to look very
> similar...) and what is the current state of the directory.
> 
> As a crude approximation, "git info" should print something like:
> cat .git/config | grep url
> git show | head -3

you're better of just running "gitk --all" at this point. It'll show remote branches (with the names of remote repos prepended) and their relations to the local repo.

> Probably not the most intelligent way to compute it, but you get the
> idea. git info should give a brief overview over the current working
> directory.

Like what? None of the commands you suggested even touch it. Would

    git remote -r -v && git log --max-count=1 --pretty=format:'%h %s'
do what you think is what you need?
May I suggest you to consider just running "git fetch -v"?
Previous: Thomas NeumannNext: Thomas Neumann
Message 2 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.