Re:A better git log
by Domenic_S on Friday June 07, 2013 @02:51PM
(#5840875)
I'm so annoyed. I've heard "tig is amazing" so I go to github... hmm, no screenshots or examples. Oh, there's a homepage. Compile instructions but also no screenshots or examples.
"Tig is a git repository browser that additionally can act as a pager for output from various git commands."
It happens all over github. Even UI projects fall prey to this problem, which is especially egregious. I want to grab these project owners by the shoulders, shake them, and yell DON'T YOU WANT ME TO USE YOUR PROJECT? THEN SHOW ME WTF IT DOES!!
Re:A better git log
by MetaCosm on Friday June 07, 2013 @11:58AM
(#5839656)
Everytime I think a feature doesn't exist in tig, I search the docs for it... facepalm that I didn't realize it could do that and love it ever so much more.
Re:A better git log
by john2x on Friday June 07, 2013 @07:00AM
(#5838213)
Off topic, but what's with the trend of not showing dates on blogs/blogging services? Just overlooked or hidden on purpose? Even the comments don't have dates.
Re:A better git log
by taeric on Friday June 14, 2013 @11:59AM
(#5880626)
Apologies for not responding on this. I am not aware of anything that does this right off... Would probably be pretty easy to script. If you are still interested, I could probably get the basics of this rolling.
Re:A better git log
by chalst on Friday June 07, 2013 @06:20AM
(#5838121)
Yes, or at least the basename of the file that changed most. I think you can't include filenames using --pretty though, you'd have to write a new script.
Re:A better git log
by jakub_g on Friday June 07, 2013 @09:37AM
(#5838762)
My preferences: http://i.imgur.com/UtxK6LZ.png (source in my github/dotfiles; this is suitable mostly for linear history without merges). Displays 10 items by default, for more, I write explicitly from command line.
Not only is this a repost, I have seen it on Hacker News several times over the past year. Anyone who is searching for a better Git log will find one without the help of free advertisement on the front page.
Re:A better git log
by ChiperSoft on Friday June 07, 2013 @10:01AM
(#5838919)
Many git novices don't know that the log output can even be changed, and aren't likely to be searching for an alternative syntax. Don't assume that just because you know something, everyone else does, an that the training is useless.
Additionally, the discussions that this post created here in the comments have already given me three new aliases that I didn't know we're possible.
Re:A better git log
by troll2 on Friday June 07, 2013 @08:01PM
(#5842919)
clearly you're not very imaginative. not thinking or realizing you can change the output is naive. there are so many people writing up the same hints it's almost impossible not to run into something like this daily. if you seriously rely on 'discussions' to improve your knowledge you're not really thinking for yourself, are you?
"Tig is a git repository browser that additionally can act as a pager for output from various git commands."
It happens all over github. Even UI projects fall prey to this problem, which is especially egregious. I want to grab these project owners by the shoulders, shake them, and yell DON'T YOU WANT ME TO USE YOUR PROJECT? THEN SHOW ME WTF IT DOES!!
Source: https://github.com/mitsuhiko/dotfiles/blob/master/git/gitcon...
https://gist.github.com/fishman/091d32da731c8b841c94
EDIT: I either already did many many moons ago, or we would had the same master :p
1. Graph showing commits on all branches, decorated with branch and tag names, short commit hashes, committer name and commit comment:
2. List commits in HEAD that aren't in master:By one line per commit, I mean something along the lines of:
As noted below, tig is well worth the install for getting around your logs/diffs on the command line.
Which is almost the same as mentioned in this post.
The only problem is that this breaks git tabcomp. Haave you (or anyone else) dealt with this?
> git co > git st > git ci
Really??
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold white)%s%Creset %Cgreen(%cr) %C(blue)@%an%Creset' --abbrev-commit --date=relative
tig is neat, i need to port it
Additionally, the discussions that this post created here in the comments have already given me three new aliases that I didn't know we're possible.