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"?