【发布时间】:2011-08-05 12:55:57
【问题描述】:
可能重复:
git whitespace woes
如何设置 get 以不报告纯粹由于合并中的空白而导致的冲突,如下所示?
<<<<<<< HEAD
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
=======
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
>>>>>>> origin/stable
【问题讨论】:
-
如果不报,怎么合并?随便挑一个用?
-
@Andy 很好的问题!根据docs 的
ignore-all-space选项:“如果their 版本只对一行引入空白更改,则使用our 版本。如果our 版本引入了空白更改,但 他们的 版本包含了实质性的更改,他们的 版本被使用。"