[gitg/wip/submodules] Do not consider untracked submodules as unstaged
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/submodules] Do not consider untracked submodules as unstaged
- Date: Sun, 14 Dec 2014 11:08:43 +0000 (UTC)
commit 0b1644bd88263277868f84a5571f636fd7570986
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Dec 14 12:00:54 2014 +0100
Do not consider untracked submodules as unstaged
libgitg/gitg-stage-status-enumerator.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/gitg-stage-status-enumerator.vala b/libgitg/gitg-stage-status-enumerator.vala
index 5b86f17..90b5e4f 100644
--- a/libgitg/gitg-stage-status-enumerator.vala
+++ b/libgitg/gitg-stage-status-enumerator.vala
@@ -168,7 +168,7 @@ public class StageStatusSubmodule : Object, StageStatusItem
public bool is_unstaged
{
- get { return (d_flags & s_work_flags) != 0; }
+ get { return !is_untracked && (d_flags & s_work_flags) != 0; }
}
public bool is_untracked
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]