[gitg] Changed behavior when reverting a file since there are still possible staged hunks (fixes bug #57729



commit cf38234be6aa5dc7f9a707d1a0b02e59c6f28565
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Apr 5 18:01:14 2009 +0200

    Changed behavior when reverting a file since there are still possible staged hunks (fixes bug #577298)
---
 gitg/gitg-commit.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gitg/gitg-commit.c b/gitg/gitg-commit.c
index ccdbc27..f8125a3 100644
--- a/gitg/gitg-commit.c
+++ b/gitg/gitg-commit.c
@@ -810,7 +810,8 @@ gitg_commit_revert(GitgCommit *commit, GitgChangedFile *file, gchar const *hunk,
 		
 		g_free(path);
 		
-		remove_file(commit, file);
+		update_index_file(commit, file);
+		update_index_unstaged(commit, file);
 		g_object_unref(f);
 	}
 	else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]