Re: detecting rename->commit->modify->commit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Thursday, May 1, 2008 - 8:34 am

On Thu, May 01, 2008 at 11:27:34AM -0400, Avery Pennarun wrote:


Sure. But we've also had the exact case of:

  - there are some files in subdir/, but that is not a good name, and
    there is something else that you are going to add that would be
    better named as subdir/.
  - you rename subdir/ to bettername/
  - you create subdir/newfile

but you _don't_ want newfile to go into bettername/. It's _replacing_
what went into bettername/.

So I don't think you can always track the intent automatically.

Though if you could specify the intent to the SCM, you could
differentiate at the time of move between these two cases, and the merge
could do the right thing later. Or alternatively, you could specify at
time of merge which to do.  It's just that nobody has implemented it.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
detecting rename->commit->modify->commit, Ittay Dror, (Thu May 1, 7:10 am)
Re: detecting rename->commit->modify->commit, Avery Pennarun, (Thu May 1, 8:27 am)
Re: detecting rename->commit->modify->commit, Jeff King, (Thu May 1, 8:34 am)
Re: detecting rename->commit->modify->commit, Jakub Narebski, (Thu May 1, 8:47 am)
Re: detecting rename->commit->modify->commit, Avery Pennarun, (Thu May 1, 8:50 am)
Re: detecting rename->commit->modify->commit, Sitaram Chamarty, (Thu May 1, 9:39 am)
Re: detecting rename->commit->modify->commit, Steven Grimm, (Thu May 1, 12:12 pm)
Re: detecting rename->commit->modify->commit, Avery Pennarun, (Thu May 1, 12:45 pm)
Re: detecting rename->commit->modify->commit, Teemu Likonen, (Thu May 1, 1:39 pm)
Re: detecting rename->commit->modify->commit, Sitaram Chamarty, (Thu May 1, 7:06 pm)
Re: detecting rename->commit->modify->commit, Junio C Hamano, (Thu May 1, 7:38 pm)
Re: detecting rename->commit->modify->commit, Sitaram Chamarty, (Fri May 2, 9:59 am)
Re: merge renamed files/directories?, Ittay Dror, (Sat May 3, 11:08 pm)
Re: merge renamed files/directories?, Jakub Narebski, (Sun May 4, 2:34 am)
Re: merge renamed files/directories?, Avery Pennarun, (Mon May 5, 9:40 am)
Re: merge renamed files/directories?, Robin Rosenberg, (Mon May 5, 2:49 pm)
Re: merge renamed files/directories?, Linus Torvalds, (Mon May 5, 3:20 pm)
Re: merge renamed files/directories?, Steven Grimm, (Mon May 5, 4:07 pm)
Re: merge renamed files/directories?, Linus Torvalds, (Mon May 5, 5:29 pm)
Re: merge renamed files/directories?, Linus Torvalds, (Mon May 5, 5:40 pm)
Re: merge renamed files/directories?, Avery Pennarun, (Mon May 5, 6:38 pm)
Re: merge renamed files/directories?, Shawn O. Pearce, (Mon May 5, 6:46 pm)
Re: merge renamed files/directories?, Avery Pennarun, (Mon May 5, 6:58 pm)
Re: merge renamed files/directories?, Shawn O. Pearce, (Mon May 5, 7:12 pm)
Re: merge renamed files/directories?, Linus Torvalds, (Mon May 5, 7:19 pm)
Re: merge renamed files/directories?, Theodore Tso, (Tue May 6, 8:47 am)
Re: merge renamed files/directories?, Linus Torvalds, (Tue May 6, 9:10 am)
Re: merge renamed files/directories?, Linus Torvalds, (Tue May 6, 9:15 am)
Re: merge renamed files/directories?, Ittay Dror, (Tue May 6, 9:32 am)
Re: merge renamed files/directories?, Linus Torvalds, (Tue May 6, 9:39 am)