@@ -1578,30 +1578,30 @@ static int build_fake_ancestor(const struct am_state *state, const char *index_f
1578
1578
}
1579
1579
1580
1580
/**
1581
- * Do the three-way merge using fake ancestor, his tree constructed
1581
+ * Do the three-way merge using fake ancestor, their tree constructed
1582
1582
* from the fake ancestor and the postimage of the patch, and our
1583
1583
* state.
1584
1584
*/
1585
1585
static int run_fallback_merge_recursive (const struct am_state * state ,
1586
1586
unsigned char * orig_tree ,
1587
1587
unsigned char * our_tree ,
1588
- unsigned char * his_tree )
1588
+ unsigned char * their_tree )
1589
1589
{
1590
1590
struct child_process cp = CHILD_PROCESS_INIT ;
1591
1591
int status ;
1592
1592
1593
1593
cp .git_cmd = 1 ;
1594
1594
1595
1595
argv_array_pushf (& cp .env_array , "GITHEAD_%s=%.*s" ,
1596
- sha1_to_hex (his_tree ), linelen (state -> msg ), state -> msg );
1596
+ sha1_to_hex (their_tree ), linelen (state -> msg ), state -> msg );
1597
1597
if (state -> quiet )
1598
1598
argv_array_push (& cp .env_array , "GIT_MERGE_VERBOSITY=0" );
1599
1599
1600
1600
argv_array_push (& cp .args , "merge-recursive" );
1601
1601
argv_array_push (& cp .args , sha1_to_hex (orig_tree ));
1602
1602
argv_array_push (& cp .args , "--" );
1603
1603
argv_array_push (& cp .args , sha1_to_hex (our_tree ));
1604
- argv_array_push (& cp .args , sha1_to_hex (his_tree ));
1604
+ argv_array_push (& cp .args , sha1_to_hex (their_tree ));
1605
1605
1606
1606
status = run_command (& cp ) ? (-1 ) : 0 ;
1607
1607
discard_cache ();
@@ -1614,7 +1614,7 @@ static int run_fallback_merge_recursive(const struct am_state *state,
1614
1614
*/
1615
1615
static int fall_back_threeway (const struct am_state * state , const char * index_path )
1616
1616
{
1617
- unsigned char orig_tree [GIT_SHA1_RAWSZ ], his_tree [GIT_SHA1_RAWSZ ],
1617
+ unsigned char orig_tree [GIT_SHA1_RAWSZ ], their_tree [GIT_SHA1_RAWSZ ],
1618
1618
our_tree [GIT_SHA1_RAWSZ ];
1619
1619
1620
1620
if (get_sha1 ("HEAD" , our_tree ) < 0 )
@@ -1651,7 +1651,7 @@ static int fall_back_threeway(const struct am_state *state, const char *index_pa
1651
1651
return error (_ ("Did you hand edit your patch?\n"
1652
1652
"It does not apply to blobs recorded in its index." ));
1653
1653
1654
- if (write_index_as_tree (his_tree , & the_index , index_path , 0 , NULL ))
1654
+ if (write_index_as_tree (their_tree , & the_index , index_path , 0 , NULL ))
1655
1655
return error ("could not write tree" );
1656
1656
1657
1657
say (state , stdout , _ ("Falling back to patching base and 3-way merge..." ));
@@ -1661,13 +1661,13 @@ static int fall_back_threeway(const struct am_state *state, const char *index_pa
1661
1661
1662
1662
/*
1663
1663
* This is not so wrong. Depending on which base we picked, orig_tree
1664
- * may be wildly different from ours, but his_tree has the same set of
1664
+ * may be wildly different from ours, but their_tree has the same set of
1665
1665
* wildly different changes in parts the patch did not touch, so
1666
1666
* recursive ends up canceling them, saying that we reverted all those
1667
1667
* changes.
1668
1668
*/
1669
1669
1670
- if (run_fallback_merge_recursive (state , orig_tree , our_tree , his_tree )) {
1670
+ if (run_fallback_merge_recursive (state , orig_tree , our_tree , their_tree )) {
1671
1671
rerere (state -> allow_rerere_autoupdate );
1672
1672
return error (_ ("Failed to merge in the changes." ));
1673
1673
}
0 commit comments