git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Merge, rebase and whitespace fixes
@ 2009-06-29 19:18 Giuseppe Bilotta
  2009-06-29 21:30 ` Rogan Dawes
  0 siblings, 1 reply; 5+ messages in thread
From: Giuseppe Bilotta @ 2009-06-29 19:18 UTC (permalink / raw
  To: Git List

Hello all,

recently a tree I've been working on received some thorough whitespace
adjustments (changing indents from spaces to tabs). This results in
annoying conflicts when running merges or rebases with my local
branches. I tried googling around but I couldn't find any helpful
hints on how to make git cope with this. Any suggestions?

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Merge, rebase and whitespace fixes
  2009-06-29 19:18 Merge, rebase and whitespace fixes Giuseppe Bilotta
@ 2009-06-29 21:30 ` Rogan Dawes
  2009-06-30  7:37   ` Giuseppe Bilotta
  0 siblings, 1 reply; 5+ messages in thread
From: Rogan Dawes @ 2009-06-29 21:30 UTC (permalink / raw
  To: Giuseppe Bilotta; +Cc: Git List

Giuseppe Bilotta wrote:
> Hello all,
> 
> recently a tree I've been working on received some thorough whitespace
> adjustments (changing indents from spaces to tabs). This results in
> annoying conflicts when running merges or rebases with my local
> branches. I tried googling around but I couldn't find any helpful
> hints on how to make git cope with this. Any suggestions?
> 

Do the same thing to your own tree?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Merge, rebase and whitespace fixes
  2009-06-29 21:30 ` Rogan Dawes
@ 2009-06-30  7:37   ` Giuseppe Bilotta
  2009-06-30  9:03     ` Rogan Dawes
  0 siblings, 1 reply; 5+ messages in thread
From: Giuseppe Bilotta @ 2009-06-30  7:37 UTC (permalink / raw
  To: Rogan Dawes; +Cc: Git List, Junio C Hamano, Robert Fitzsimons

On Mon, Jun 29, 2009 at 11:30 PM, Rogan Dawes<lists@dawes.za.net> wrote:
> Giuseppe Bilotta wrote:
>> Hello all,
>>
>> recently a tree I've been working on received some thorough whitespace
>> adjustments (changing indents from spaces to tabs). This results in
>> annoying conflicts when running merges or rebases with my local
>> branches. I tried googling around but I couldn't find any helpful
>> hints on how to make git cope with this. Any suggestions?
>>
>
> Do the same thing to your own tree?

I tried doing the whitespace cleanup on top of the last patch, but the
merge still conflicted.

The interesting thing is that there's patchset from Robert Fitzsimons
that goes back to August 2005 (!) that does a couple of git apply
cleanups and in particular adds the --ignore-whitespace option that I
would need ...

http://permalink.gmane.org/gmane.comp.version-control.git/7876

but the patch apparently never made it into mainline ...

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Merge, rebase and whitespace fixes
  2009-06-30  7:37   ` Giuseppe Bilotta
@ 2009-06-30  9:03     ` Rogan Dawes
  2009-06-30  9:18       ` Giuseppe Bilotta
  0 siblings, 1 reply; 5+ messages in thread
From: Rogan Dawes @ 2009-06-30  9:03 UTC (permalink / raw
  To: Giuseppe Bilotta; +Cc: Git List, Junio C Hamano, Robert Fitzsimons

Giuseppe Bilotta wrote:
> On Mon, Jun 29, 2009 at 11:30 PM, Rogan Dawes<lists@dawes.za.net> wrote:
>> Giuseppe Bilotta wrote:
>>> Hello all,
>>>
>>> recently a tree I've been working on received some thorough whitespace
>>> adjustments (changing indents from spaces to tabs). This results in
>>> annoying conflicts when running merges or rebases with my local
>>> branches. I tried googling around but I couldn't find any helpful
>>> hints on how to make git cope with this. Any suggestions?
>>>
>> Do the same thing to your own tree?
> 
> I tried doing the whitespace cleanup on top of the last patch, but the
> merge still conflicted.
> 
> The interesting thing is that there's patchset from Robert Fitzsimons
> that goes back to August 2005 (!) that does a couple of git apply
> cleanups and in particular adds the --ignore-whitespace option that I
> would need ...
> 
> http://permalink.gmane.org/gmane.comp.version-control.git/7876
> 
> but the patch apparently never made it into mainline ...
> 

One thing I have done in the past when trying to merge two diverged
trees was to format each commit in each tree to a common standard.

One of the ways in which the trees had diverged was whitespace
(non-meaningful) changes, so I used the Eclipse formatter as part of a
"git filter-branch" script to make sure that I was ony looking at
meaningful changes between the trees at each point. This significantly
simplified the process.

Rogan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Merge, rebase and whitespace fixes
  2009-06-30  9:03     ` Rogan Dawes
@ 2009-06-30  9:18       ` Giuseppe Bilotta
  0 siblings, 0 replies; 5+ messages in thread
From: Giuseppe Bilotta @ 2009-06-30  9:18 UTC (permalink / raw
  To: Rogan Dawes; +Cc: Git List, Junio C Hamano, Robert Fitzsimons

On Tue, Jun 30, 2009 at 11:03 AM, Rogan Dawes<lists@dawes.za.net> wrote:
>> I tried doing the whitespace cleanup on top of the last patch, but the
>> merge still conflicted.
>>
>> The interesting thing is that there's patchset from Robert Fitzsimons
>> that goes back to August 2005 (!) that does a couple of git apply
>> cleanups and in particular adds the --ignore-whitespace option that I
>> would need ...
>>
>> http://permalink.gmane.org/gmane.comp.version-control.git/7876
>>
>> but the patch apparently never made it into mainline ...
>>
>
> One thing I have done in the past when trying to merge two diverged
> trees was to format each commit in each tree to a common standard.
>
> One of the ways in which the trees had diverged was whitespace
> (non-meaningful) changes, so I used the Eclipse formatter as part of a
> "git filter-branch" script to make sure that I was ony looking at
> meaningful changes between the trees at each point. This significantly
> simplified the process.

I can also reply all the patches manually, of course, but the question
is: why should I be doing something manually when it can be done
programmatically?

BTW, I tried updating Robert's patch to the new code base, but it's
WAY too different ...

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-30  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 19:18 Merge, rebase and whitespace fixes Giuseppe Bilotta
2009-06-29 21:30 ` Rogan Dawes
2009-06-30  7:37   ` Giuseppe Bilotta
2009-06-30  9:03     ` Rogan Dawes
2009-06-30  9:18       ` Giuseppe Bilotta

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).