git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rename conflicts in the index
@ 2013-03-13 14:08 Edward Thomson
  2013-03-13 18:05 ` Junio C Hamano
  0 siblings, 1 reply; 16+ messages in thread
From: Edward Thomson @ 2013-03-13 14:08 UTC (permalink / raw)
  To: git@vger.kernel.org

When a rename conflict occurs, the information about the conflict is
written to stdout and the index is updated as if the conflict were a
simpler conflict that did not involve renames.  This doesn't give a lot of
information to users after the fact - a status of "added in ours" does not
provide a lot of details about what occurred.

In reimplementations, we face a similar challenge.  Unfortunately, we can't
simply print the output to the console, we would like to provide this
information back to the caller by some mechanism.  My preference would be to
return this information in the index - so that the results of "unpack trees"
(if you will) was a single data structure (the index) and so that we could
persist this information to disk.  I've been considering the idea of an
extension that contains more detailed data about conflicts, but I certainly
wouldn't want to proceed without discussing this here further.

I would propose that we store the data about the file in conflict as it
occurred through the renames.  For example, in a rename 1->2 conflict where
A was renamed to both B and C, you would have a single conflict entry
containing the data for A, B and C.  This would allow us to provide more
detailed information to the user - and allow them to (say) choose a single
name to proceed with.

Is this something that has value to core git as well?  Alternately, is
there something particularly stupid about this proposal?

Thanks-
-ed

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-04-03  0:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 14:08 Rename conflicts in the index Edward Thomson
2013-03-13 18:05 ` Junio C Hamano
2013-03-13 20:44   ` Edward Thomson
2013-03-26 18:30   ` Edward Thomson
2013-03-26 19:24     ` Junio C Hamano
2013-03-26 20:40       ` Edward Thomson
2013-03-27 17:03       ` Edward Thomson
2013-03-27 17:34         ` Junio C Hamano
2013-03-27 18:53           ` Edward Thomson
2013-03-27 19:44             ` Junio C Hamano
2013-04-01 16:14               ` Edward Thomson
2013-04-02 20:55                 ` Edward Thomson
2013-04-02 21:20                   ` Junio C Hamano
2013-04-02 21:29                     ` Edward Thomson
     [not found]                     ` <A54CE3E330039942B33B670D971F857403A0F593@TK5EX14MBXC253.redmond.cor p.microsoft.com>
2013-04-03  0:53                       ` Junio C Hamano
2013-04-03  0:57                         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).