Skip to content

Commit 4769489

Browse files
Eric WongJunio C Hamano
authored andcommitted
git-svn: preserve uncommitted changes after dcommit
Using dcommit could cause the user to lose uncommitted changes during the reset --hard operation, so change it to reset --mixed. If dcommit chooses the rebase path, then git-rebase will already error out when local changes are made. Signed-off-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e70dc78 commit 4769489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ sub dcommit {
623623
} else {
624624
print "No changes between current HEAD and $gs\n",
625625
"Hard resetting to the latest $gs\n";
626-
@finish = qw/reset --hard/;
626+
@finish = qw/reset --mixed/;
627627
}
628628
sys('git', @finish, $gs);
629629
}

0 commit comments

Comments
 (0)