git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Caleb Cushing" <xenoterracide@gmail.com>
To: "Andreas Ericsson" <ae@op5.se>
Cc: git@vger.kernel.org
Subject: Re: more merge strategies : feature request
Date: Mon, 1 Dec 2008 21:38:07 -0500	[thread overview]
Message-ID: <81bfc67a0812011838m68100020v727da1c06f0bcee4@mail.gmail.com> (raw)
In-Reply-To: <4933AC03.6050300@op5.se>

>  If you could come up with use-cases where each would be useful, I
>  think you'd have a much easier time to gain acceptance for your
>  suggestions. Right now, you're saying "I want a red button" but
>  you're not explaining what it's for.

conflict: when auto-merging isn't merging the way you want it too, but
you still want to see the diffs and handle them by hand. no commit
won't do this, it just doesn't commit. I've had 2 situations now where
git's fast-forward has overwritten changes in a branch I didn't want
it to, it would have been better if I could handle them by hand
without having to have 1 terminal open to the diff and the other open
to the editor to fix it. and yes git was right by it's perspective,
but the code it created was wrong by what I wanted and needed. I'm not
really sure what more of a use case is needed for this.

no-overwrite: it's basically my way of saying that even though git
thinks it's changes are newer and better than the ones in my branch I
know they aren't. I only want the new stuff from the other branch. In
the second situation mentioned above I have 2 branches that I like to
merge back and forth, each needing a specific set of changes to
certain files however most changes are shared. when I merge them I
often have to change those specific changes back, if it didn't
ovewrite them I wouldn't have a problem.

for example I'm tracking my dot files with git, in my main user
account I set umask 077 however in my web development account I need
umask 027 so apache can read the files I create. when I create a
change in webdev and need to merge it back into master it overwrites
the 077 umask which I then change back. when I create a change in
master that I want in webdev it then changes webdev's umask. very
annoying.

the other problem I had was where I'd overwritten a file in another
branch just for the point of merging it into the master branch so I
could see the differences, and handle them properly (as I see it)
unfortunately git felt that this file was newer and simply overwrote
the changes in master. this was incorrect they were simply different
versions of the same type of file, like comparing an httpd.conf from a
gentoo and another from a fedora system. I was merely trying to figure
the best of both files to get the results I wanted.

technically the conflict strategy I propose would be adequate for both
but the no-overwrite seems like a good idea as well.






-- 
Caleb Cushing

  reply	other threads:[~2008-12-02  2:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-29 16:48 more merge strategies : feature request Caleb Cushing
2008-12-01  9:18 ` Andreas Ericsson
2008-12-02  2:38   ` Caleb Cushing [this message]
2008-12-02  3:30     ` Jeff King
2008-12-02 14:28       ` Caleb Cushing
2008-12-02 15:30         ` Jeff King
2008-12-02  2:49   ` Leo Razoumov
2008-12-02 13:46     ` Caleb Cushing
2008-12-03  1:07       ` Leo Razoumov
2008-12-03 21:27       ` Nanako Shiraishi
2008-12-03 22:59         ` Caleb Cushing
2008-12-04  2:15         ` Junio C Hamano
2008-12-04 10:11       ` Nanako Shiraishi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81bfc67a0812011838m68100020v727da1c06f0bcee4@mail.gmail.com \
    --to=xenoterracide@gmail.com \
    --cc=ae@op5.se \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).