From: Michael Wild <hidden> Date: 2016-06-15 22:47:08
Hi all
I'm merging two branches with a large number of conflicts.
Fortunately, there are many modified/deleted conflicts (locally
modified, remotely deleted), and I know that for those I want to pick
the deleted version. However, I can't seem to motivate GIT into
telling me for which of the conflicting files this is the case. I know
that git-mergetool somehow extracts this information, but looking at
the code, it seems to me that there must be an easier, user-level
method of obtaining this information.
Generally speaking, I would like to know for each file with a conflict
what it's status is, similar to what SVN does:
- locally modified/created/deleted/...
- remotely modified/created/deleted/...
Please excuse me if this is either trivial or has been answered many
times before, but neither perusing the man-pages, nor asking google
turned up anything remotely useful.
Thanks for the help
Michael
Heya,
On Mon, Aug 3, 2009 at 08:14, Michael Wild[off-list ref] wrote:
Generally speaking, I would like to know for each file with a conflict what
it's status is, similar to what SVN does:
- locally modified/created/deleted/...
- remotely modified/created/deleted/...
From: Thomas Rast <hidden> Date: 2016-06-15 22:47:08
You wrote:
Heya,
On Mon, Aug 3, 2009 at 08:14, Michael Wild[off-list ref] wrote:
quoted
Generally speaking, I would like to know for each file with a conflict what
it's status is, similar to what SVN does:
- locally modified/created/deleted/...
- remotely modified/created/deleted/...
Try 'git status' :),
That only shows 'unmerged: foo' for me...
The closest to porcelain I can get while still having all the
information is
$ git ls-files -s foo
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 1 foo
100644 d00491fd7e5bb6fa28c517a0bb32b8b506539d4d 2 foo
In other words, not porcelain at all.
The third column is the stage: 1 for base, 2 for ours, 3 for theirs.
So the above means that the file was changed between base and ours,
and removed between base and theirs (as the entry is missing).
--
Thomas Rast
trast@{inf,student}.ethz.ch