Skip to contentSkip to conversation

merge --no-commit not able to report stats more verbosely?

DISCUSSION Scott R. Godin 3 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

As you can see from the below, I can't seem to get it to give me more verbose results of what's being merged (as in the actual merge below) with --stat or -v .. is it supposed to do that?

(develop)>$ git merge --no-commit --stat -v widget_twitter Automatic merge went well; stopped before committing as requested (develop|MERGING)>$ git merge --abort

(develop)>$ git merge widget_twitter
Merge made by the 'recursive' strategy.

 .../code/community/Dnd/Magentweet/Model/User.php   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

(develop)>$ git --version
git version 1.7.7.6

Signature · 3 lines
(please respond to the list as opposed to my email box directly,
unless you are supplying private information you don't want public
on the list)
#1 lore raw

Looks like I got lost in the press of other issues. anyone?

Quoted 19 lines · Scott R. Godin

As you can see from the below, I can't seem to get it to give me more verbose results of what's being merged (as in the actual merge below) with --stat or -v .. is it supposed to do that?

(develop)>$ git merge --no-commit --stat -v widget_twitter Automatic merge went well; stopped before committing as requested (develop|MERGING)>$ git merge --abort

(develop)>$ git merge widget_twitter
Merge made by the 'recursive' strategy.

 .../code/community/Dnd/Magentweet/Model/User.php   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

(develop)>$ git --version
git version 1.7.7.6

Signature · 3 lines
(please respond to the list as opposed to my email box directly,
unless you are supplying private information you don't want public
on the list)
#2 lore raw
In reply to Scott R. Godin
Quoted 3 lines · Scott R. Godin

As you can see from the below, I can't seem to get it to give me more verbose results of what's being merged (as in the actual merge below) with --stat or -v .. is it supposed to do that?

Yes. The diffstat is shown for the completed merge, but here:

Quoted 2 lines

(develop)>$ git merge --no-commit --stat -v widget_twitter Automatic merge went well; stopped before committing as requested

You do not complete the merge.

Quoted 6 lines

(develop|MERGING)>$ git merge --abort

(develop)>$ git merge widget_twitter
Merge made by the 'recursive' strategy.

 .../code/community/Dnd/Magentweet/Model/User.php   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Whereas here you do, and you get a diffstat.

When you are in the middle of an uncompleted merge and want to know what is happening, you should look at the index using "git status" (to get an overview of what is ready to be committed and what is unmerged), "git diff --cached" (to see what was automatically merged and is ready for commit), and "git diff" (to see conflicted entries that still need to be resolved).

-Peff

#3 lore raw
Quoted 20 lines · Jeff King
Quoted 3 lines · Scott R. Godin

As you can see from the below, I can't seem to get it to give me more verbose results of what's being merged (as in the actual merge below) with --stat or -v .. is it supposed to do that?

Yes. The diffstat is shown for the completed merge, but here:

Quoted 2 lines

(develop)>$ git merge --no-commit --stat -v widget_twitter Automatic merge went well; stopped before committing as requested

You do not complete the merge.

Quoted 6 lines

(develop|MERGING)>$ git merge --abort

(develop)>$ git merge widget_twitter
Merge made by the 'recursive' strategy.

 .../code/community/Dnd/Magentweet/Model/User.php   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 8 lines

Whereas here you do, and you get a diffstat.

When you are in the middle of an uncompleted merge and want to know what is happening, you should look at the index using "git status" (to get an overview of what is ready to be committed and what is unmerged), "git diff --cached" (to see what was automatically merged and is ready for commit), and "git diff" (to see conflicted entries that still need to be resolved).

I think he is looking for this bit
"Merge made by the 'recursive' strategy."

But he is seeing this instead:
"Automatic merge went well; stopped before committing as requested"

Should the "what happened" output be silenced on --no-commit?

Phil

#4 lore raw
Quoted 14 lines · Phil Hord
Quoted 5 lines
Quoted 4 lines

(develop)>$ git merge widget_twitter
Merge made by the 'recursive' strategy.

 .../code/community/Dnd/Magentweet/Model/User.php   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 8 lines

Whereas here you do, and you get a diffstat.

When you are in the middle of an uncompleted merge and want to know what is happening, you should look at the index using "git status" (to get an overview of what is ready to be committed and what is unmerged), "git diff --cached" (to see what was automatically merged and is ready for commit), and "git diff" (to see conflicted entries that still need to be resolved).

Quoted 7 lines

I think he is looking for this bit
"Merge made by the 'recursive' strategy."

But he is seeing this instead:
"Automatic merge went well; stopped before committing as requested"

Should the "what happened" output be silenced on --no-commit?

Ah. Yeah, we should not print "Merge made by the..." because we did not make a merge (and that message is part of the process to update the ref). But in verbose mode, we could probably say more about the on-going process (like which strategies we are trying). Patches welcome.

-Peff