How to list conflicted files (files with changes in both parents) in a git merge commit? -


qgit has nice option of seeing "interesting" files in merge commit, interesting file defined file has changes in both parents. corresponding command line see such files?

git show --name-status sha1_of_merge 

will show commit message , files modified in both parents (mm).

e.g. git.git repository in commit d907bf8ef32: merge branch 'jc/index-pack' see:

$ git show --name-status d907bf8ef327cd47433d4a4bb0a1bb4e96b6e340 commit d907bf8ef327cd47433d4a4bb0a1bb4e96b6e340 merge: 54dbc1f 3de89c9 …  mm      builtin/index-pack.c mm      builtin/pack-objects.c mm      cache.h mm      csum-file.c mm      fast-import.c mm      sha1_file.c 

if don't care commit message , such, git show manpage points format used merge commits: git diff-tree --cc. so, if want see commit hash , "interesting files" use:

$git diff-tree --cc --name-status d907bf8ef327cd47433d4a4bb0a1bb4e96b6e340 d907bf8ef327cd47433d4a4bb0a1bb4e96b6e340 mm  builtin/index-pack.c mm  builtin/pack-objects.c mm  cache.h mm  csum-file.c mm  fast-import.c mm  sha1_file.c 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -