Re: wishlist: git info

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Neumann
Date: Monday, November 12, 2007 - 3:50 pm

> you're better of just running "gitk --all" at this point. It'll show
hm, this is not what I am after. I do not want to inspect the history, I
want to see where this repository "belongs" to. Gitk shows me the name
(which is reasonable, of course), but not the URL. And it is a GUI
application, which is not so perfect.

probably "current working directory" was not the best way to phrase it.
I mean state of the repository, which in my case is a clone of a central
repository.
My commands show (ignoring formatting): 1. the remote repositories with
URL 2. the current head commit hash 3. the date of the head commit.
Which gives a pretty decent idea about the state of the repository.

perhaps, the first command gives me an error (git 1.5.2.5). This here is
nearly ok

git remote && git log --max-count=1 --pretty=format:'%H %cD'

except the missing URL from git remote (but perhaps your options include
it with a newer git version, will test).

this is has side effects, and is quite slow. Your command sequence above
  is more handy (and faster).

So I can emulate git info with an alias, and this is good enough for mew
now, thanks for the hints. Perhaps a somewhat more elaborate version of
git info might be useful for others, too, but this is not urgent.

Thomas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
wishlist: git info, Thomas Neumann, (Mon Nov 12, 1:30 pm)
Re: wishlist: git info, Alex Riesen, (Mon Nov 12, 3:21 pm)
Re: wishlist: git info, Thomas Neumann, (Mon Nov 12, 3:50 pm)
Re: wishlist: git info, Alex Riesen, (Mon Nov 12, 4:41 pm)