What does this git log mean? -


this recent log of git.

commit 608991c merge: 5c0c062 1fe65f9 author: foo date:   mon jul 2       merge branch 'mybranch' of xxx.xxx.xxx.xxx:/myproject mybranch      conflicts:         bar.c 

does log mean user foo merge operation?

as described in "merging conflict: conflicts , resolutions", automatic log message generated after resolution of merge conflicts.

you can see message built in git source file builtin/merge.c, in suggest_conflicts() function

static int suggest_conflicts(int renormalizing) {     const char *filename;     file *fp;     int pos;      filename = git_path("merge_msg");     fp = fopen(filename, "a");     if (!fp)         die_errno(_("could not open '%s' writing"), filename);     fprintf(fp, "\nconflicts:\n"); 

from user point of view:

resolve conflict

after have resolved conflict (by changing readme file way want git merge), have tell git conflict resolved adding conflicted file index.

in case, need add readme git index.
git status no longer complain readme file having conflict:

$ git add readme $ git status # on branch master # changes committed: # #   modified:   readme #   new file:   plan # 

we're ready commit merge:

$ git commit [master 368a14a] merge branch 'test' 

the git log command shows resolved conflict:

$ git log commit 368a14a034eda95ee401bb56b3bb8df04b84ab0c merge: 3330113 c406564 author: tim flagg  date:   fri mar 25 13:26:10 2011 -0700      merge branch 'test'      conflicts:         readme 

gitg --all shows merge:

merge in logs


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -