[gitg] Allow unstaging of new file
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Allow unstaging of new file
- Date: Sat, 6 Jul 2013 20:18:30 +0000 (UTC)
commit 7817dec25ec3ac3f59500e3bc743518a6726c920
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Jul 6 22:18:07 2013 +0200
Allow unstaging of new file
gitg/commit/gitg-commit.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gitg/commit/gitg-commit.vala b/gitg/commit/gitg-commit.vala
index ba2be0b..5612d8c 100644
--- a/gitg/commit/gitg-commit.vala
+++ b/gitg/commit/gitg-commit.vala
@@ -223,10 +223,10 @@ namespace GitgCommit
{
var stage = application.repository.stage;
- stage.unstage_path.begin(f.path, (obj, res) => {
+ stage.delete_path.begin(f.path, (obj, res) => {
try
{
- stage.unstage_path.end(res);
+ stage.delete_path.end(res);
}
catch (Error e)
{
@@ -265,7 +265,7 @@ namespace GitgCommit
}
else
{
- if ((f.flags & Ggit.StatusFlags.INDEX_DELETED) != 0)
+ if ((f.flags & Ggit.StatusFlags.INDEX_NEW) != 0)
{
delete_index_file(f);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]