Re: merging .gitignore

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: martin f krafft <madduck@...>
Date: Monday, October 1, 2007 - 9:48 am

On Monday 2007 October 01, martin f krafft wrote:


But it _is_ a conflict.  Conflicts have to be resolved.  I'm having difficulty 
understanding what you think git should be doing in these cases?


I don't see that that would help.  All you are doing with a gitignore.d is 
swapping lines for files, the conflicts would still exist.  Presumably you 
are hoping that the separate branches will make different files in 
gitignore.d and hence can't conflict; but then you've just pushed the 
conflict to a place where it won't be seen (and also made a terrible mess of 
the merged branch gitignore.d).

 branchA:.gitignore.d/branchAignores
 branchB:.gitignore.d/branchBignores

Over time you would get:

 master:.gitignore.d/branchAignores
 master:.gitignore.d/branchBignores
 master:.gitignore.d/branchCignores
 master:.gitignore.d/branchDignores
 master:.gitignore.d/branchEignores
 master:.gitignore.d/branchFignores

Then, assuming the conflicts you get now occur for a reason, you will get 
conflicts within the .gitignore.d/ directory.  Let's say branchCignores adds 
*.o and branchFignores removes *.o from the ignores.  Who is right?  Who 
knows, and worse than that you didn't see the conflict when it happened so it 
wasn't resolved and the master branch was left with conflicts in it.

Of course the conflicts in that case aren't in the form of "<<<<<" markers, 
but they are no less conflicts just because they're invisible.

Eventually someone is going to want to combine this ever-increasing set of 
ignore files into one.  i.e. they'll merge them.  In which case why couldn't 
you do the merge at the correct time - when the branch was merged?



Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
-
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:
merging .gitignore, martin f krafft, (Mon Oct 1, 9:03 am)
Re: merging .gitignore, Johannes Schindelin, (Mon Oct 1, 9:57 am)
Re: merging .gitignore, Andy Parkins, (Mon Oct 1, 9:48 am)
Re: merging .gitignore, martin f krafft, (Tue Oct 2, 3:51 pm)
Re: merging .gitignore, Andy Parkins, (Wed Oct 3, 4:23 am)
Re: merging .gitignore, Johan Herland, (Wed Oct 3, 5:28 am)
Re: merging .gitignore, Johannes Schindelin, (Wed Oct 3, 8:41 am)
Re: merging .gitignore, Johan Herland, (Wed Oct 3, 9:06 am)
Re: merging .gitignore, Junio C Hamano, (Wed Oct 3, 3:38 pm)
Re: merging .gitignore, Pierre Habouzit, (Tue Oct 2, 4:13 pm)
Re: merging .gitignore, Pierre Habouzit, (Tue Oct 2, 4:47 pm)
Re: merging .gitignore, Pierre Habouzit, (Tue Oct 2, 5:02 pm)
Re: merging .gitignore, martin f krafft, (Tue Oct 2, 4:56 pm)
Re: merging .gitignore, Pierre Habouzit, (Tue Oct 2, 5:07 pm)
Re: merging .gitignore, martin f krafft, (Tue Oct 2, 5:49 pm)
Re: merging .gitignore, Pierre Habouzit, (Tue Oct 2, 6:07 pm)
Re: merging .gitignore, martin f krafft, (Wed Oct 3, 4:42 am)
Re: merging .gitignore, Pierre Habouzit, (Wed Oct 3, 4:58 am)
Re: merging .gitignore, Junio C Hamano, (Tue Oct 2, 3:55 pm)
Re: merging .gitignore, martin f krafft, (Tue Oct 2, 4:20 pm)