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.

4 Answers 4

3

git log --graph --stat

Reference: git-log(1) Manual Page

Sign up to request clarification or add additional context in comments.

1 Comment

That's awesome! adding this to the answer here 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
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.

Comments

0

Try

git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.