1

Is that possible to add under each node in the git log --graph the list of files affected by the commit?

I always have multiple commits that I need to push, and instead looking one by one in order to see affected files (files that I am going to push), I would love to get a quick overview of the tree with this information.

JohnJohnGa
  • 15,446
  • 19
  • 62
  • 87

4 Answers4

3

git log --graph --stat

Reference: git-log(1) Manual Page

sleske
  • 81,358
  • 34
  • 189
  • 227
  • That's awesome! adding this to the answer here http://stackoverflow.com/questions/1057564/pretty-git-branch-graphs: `git log --graph --stat --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all` – JohnJohnGa Sep 18 '13 at 12:35
1

Solution

Add the --name-only flag. For example:

git log --graph --name-only

Man Page

The git-log(1) man page says:

--name-only
    Show only names of changed files.
Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199
0

Try

git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
TheKojuEffect
  • 20,103
  • 19
  • 89
  • 125
0

I will suggest to use GUI based application to see such thing.

I am currently using "git g" application which gives complete idea of

change file with showing the line which changed,
showing list of files changed,
option to see code in particular commit, etc.

You can installed it using

sudo apt-get install gitg

I am attaching snapshot of application.

enter image description here

Ketan Ghumatkar
  • 720
  • 7
  • 14