Git development
 help / color / mirror / Atom feed
* git merge problem
@ 2013-03-14 19:27 Коньков Евгений
  0 siblings, 0 replies; only message in thread
From: Коньков Евгений @ 2013-03-14 19:27 UTC (permalink / raw)
  To: git

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-14 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14 19:27 git merge problem Коньков Евгений

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox