Git development
 help / color / mirror / Atom feed
From: "Коньков Евгений" <kes@reg.ru>
To: git@vger.kernel.org
Subject: git merge problem
Date: Thu, 14 Mar 2013 23:27:17 +0400	[thread overview]
Message-ID: <15610448431.20130314232717@reg.ru> (raw)

Hi

I have started branch from master
then on master were changes in whitespace (code formatting)
in branch on that lines changes were not.

Now when I try to merge branch to master I get lost changes at space on master
So I try to ignore space change

git merge -Xignore-space-change my_branch
 I have lost formatting in master.

I wanna to give priority to changes on branch master:
git merge -Xours my_branch

and now also no results: I get old space formatting which were on
branch master before starting my_branch

Please tell me, how can I fix that problem?
# git --version
git version 1.8.1.5


git diff master...new_function_find Domain.pm
index 7eb8191..5abba1c 100644
--- a/lib/FrontOffice/Controller/API/RegRu2/Domain.pm
+++ b/lib/FrontOffice/Controller/API/RegRu2/Domain.pm
@@ -124,7 +124,7 @@ sub get_prices : Local {
         return;
     }

-    my $show_renew_data  = $p->{show_renew_data}  || 0;
+    my $show_renew_data        = $p->{show_renew_data} || 0;
     my $show_update_data = $p->{show_update_data} || 0;
     my $lang             = $r->{lang};

as you see on branch master right formatting will be replaced by wrong
formatting on branch new_function_find

as I have said: doing #git merge -Xignore-space-change new_finction_find
no result :_-((

the wrong formatting on branch new_function_find are old formatting
that were in branch master, before branch new_function_find were started
no changes were made to that line on branch new_function_find

while on branch new_function_find all new changes from master
were merged as:
#git merge -s recursive -Xignore-space-change master

please help

                 reply	other threads:[~2013-03-14 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=15610448431.20130314232717@reg.ru \
    --to=kes@reg.ru \
    --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