From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Thomas Hochstein <thh@inter.net>
Cc: git@vger.kernel.org
Subject: Re: Trouble with file specific merge strategies
Date: Sun, 11 Mar 2012 19:01:43 +0100 [thread overview]
Message-ID: <CAMXnza2vD+XOstbNbt+wJgAGE7OEDpQTqGL8NWjWd0fYkWbJ2w@mail.gmail.com> (raw)
In-Reply-To: <gcvg.1203111617.379@landroval.ancalagon.de>
Hello Thomas,
On Sun, Mar 11, 2012 at 16:17, Thomas Hochstein <thh@inter.net> wrote:
> Junio C Hamano wrote:
>
>> suvayu ali <fatkasuvayu+linux@gmail.com> writes:
>>
>>> ... is that discussion on progit talking about
>>> something else?
>>
>> Sorry, I do not read or write progit, so I do not know offhand what
>> it says in the section you read and I cannot judge if it was you who
>> misread, or if it was book that misspoke.
>
> The book says:
>> You can also use Git attributes to tell Git to use different merge
>> strategies for specific files in your project. One very useful option
>> is to tell Git to not try to merge specific files when they have
>> conflicts, but rather to use your side of the merge over someone
>> else’s.
>>
>> This is helpful if a branch in your project has diverged or is
>> specialized, but you want to be able to merge changes back in from
>> it, and you want to ignore certain files. Say you have a database
>> settings file called database.xml that is different in two branches,
>> and you want to merge in your other branch without messing up the
>> database file. You can set up an attribute like this:
>>
>>| database.xml merge=ours
>>
>> If you merge in the other branch, instead of having merge conflicts
>> with the database.xml file, you see something like this:
>>
>>| $ git merge topic
>>| Auto-merging database.xml
>>| Merge made by recursive.
>>
>> In this case, database.xml stays at whatever version you originally had.
>
> That seems to be incorrect, as far as I understand the gitattributes
> man page.
>
Thank you for confirming the error. I have opened a ticket on the progit
repo on github. If you are interested, you can follow it on the page
linked below.
<https://github.com/progit/progit.github.com/issues/5>
Cheers,
--
Suvayu
Open source is the future. It sets us free.
prev parent reply other threads:[~2012-03-11 18:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-10 23:47 Trouble with file specific merge strategies suvayu ali
2012-03-11 8:57 ` Junio C Hamano
2012-03-11 10:10 ` suvayu ali
2012-03-11 11:18 ` Junio C Hamano
2012-03-11 11:27 ` suvayu ali
2012-03-11 15:17 ` Thomas Hochstein
2012-03-11 18:01 ` suvayu ali [this message]
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=CAMXnza2vD+XOstbNbt+wJgAGE7OEDpQTqGL8NWjWd0fYkWbJ2w@mail.gmail.com \
--to=fatkasuvayu+linux@gmail.com \
--cc=git@vger.kernel.org \
--cc=thh@inter.net \
/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).