JohnJohnGa
JohnJohnGa

Reputation: 15685

Git log --graph file list per commit

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.

Upvotes: 1

Views: 961

Answers (4)

Ketan Ghumatkar
Ketan Ghumatkar

Reputation: 730

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

Upvotes: 0

TheKojuEffect
TheKojuEffect

Reputation: 21081

Try

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

Upvotes: 0

Todd A. Jacobs
Todd A. Jacobs

Reputation: 84343

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.

Upvotes: 1

sleske
sleske

Reputation: 83577

git log --graph --stat

Reference: git-log(1) Manual Page

Upvotes: 3

Related Questions