# RFH: is the current file available to a custom merge driver?

1 messages from 2010-08-26 to 2010-08-26. Participants: Eric Raible.
Thread: https://gitlist.dev/t/24874

## Eric Raible, 2010-08-26 22:13

Subject: RFH: is the current file available to a custom merge driver?
Message-ID: <AANLkTi=mrO_6mv6vacE2sUq=fiJnzb-yS7yT3gHvO61H@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DmrO_6mv6vacE2sUq%3DfiJnzb-yS7yT3gHvO61H%40mail.gmail.com

```
In writing a custom merge driver to support $dayjob
requirements I've failed to find a simple way of getting
the current file name that the driver is supposed to
be merging.

I of course have the "ancestor", "ours", and "theirs"
temporary files, but for Ui purposes I'd like to know
the filename as well.

As a workaround, I'm grepping for the git-hash-object
of %A (aka "ours) from the output of "git ls-tree -r HEAD".

I've examined the environment, and saw nothing relevant.
"git-ls-files -u" isn't useful, since the items aren't
unmerged yet.

Can anyone offer hints/help/tips?

Thanks - Eric

git version 1.7.0.2.msysgit.0

```
