* RFH: is the current file available to a custom merge driver?
@ 2010-08-31 18:52 Eric Raible
2010-08-31 18:57 ` Jonathan Nieder
0 siblings, 1 reply; 4+ messages in thread
From: Eric Raible @ 2010-08-31 18:52 UTC (permalink / raw)
To: Git Mailing List
[Note: this is a resend - the initial attempt got no responses]
Hello All -
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RFH: is the current file available to a custom merge driver?
2010-08-31 18:52 RFH: is the current file available to a custom merge driver? Eric Raible
@ 2010-08-31 18:57 ` Jonathan Nieder
2010-08-31 19:07 ` Eric Raible
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Nieder @ 2010-08-31 18:57 UTC (permalink / raw)
To: Eric Raible; +Cc: Git Mailing List
Hi Eric,
Eric Raible wrote:
> 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.
It's not available. You can try modifying ll-merge.c to
expose it if you have an idea about how that should work.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RFH: is the current file available to a custom merge driver?
2010-08-31 18:57 ` Jonathan Nieder
@ 2010-08-31 19:07 ` Eric Raible
0 siblings, 0 replies; 4+ messages in thread
From: Eric Raible @ 2010-08-31 19:07 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: Git Mailing List
On 8/31/2010 11:57 AM, Jonathan Nieder wrote:
> Hi Eric,
>
> Eric Raible wrote:
>
>> 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.
>
> It's not available. You can try modifying ll-merge.c to
> expose it if you have an idea about how that should work.
> .
Thanks Jonathan for the (very!) quick response, but since
time is short I think I'll stick with my current technique
(grepping $(git ls-tree -r HEAD) for $(git hash-object %A))
^ permalink raw reply [flat|nested] 4+ messages in thread
* RFH: is the current file available to a custom merge driver?
@ 2010-08-26 22:13 Eric Raible
0 siblings, 0 replies; 4+ messages in thread
From: Eric Raible @ 2010-08-26 22:13 UTC (permalink / raw)
To: Git Mailing List
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-31 19:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 18:52 RFH: is the current file available to a custom merge driver? Eric Raible
2010-08-31 18:57 ` Jonathan Nieder
2010-08-31 19:07 ` Eric Raible
-- strict thread matches above, loose matches on Subject: below --
2010-08-26 22:13 Eric Raible
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.