[anjuta] git: Update section regexes in the status command



commit 98346cd1dd8274bf7681d72663f9d60e51ca2070
Author: James Liggett <jrliggett cox net>
Date:   Mon Feb 28 20:28:42 2011 -0800

    git: Update section regexes in the status command
    
    Updated to reflect different wording of section headers of status output in
    newer git versions.

 plugins/git/git-status-command.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/git-status-command.c b/plugins/git/git-status-command.c
index c5d1454..60ca5da 100644
--- a/plugins/git/git-status-command.c
+++ b/plugins/git/git-status-command.c
@@ -27,7 +27,7 @@
 #define STATUS_REGEX "(modified|new file|deleted|unmerged|both modified|both added|both deleted):   (.*)"
 #define UNTRACKED_FILES_REGEX "(?:#\\t)(.*)"
 #define SECTION_COMMIT_REGEX "Changes to be committed:"
-#define SECTION_NOT_UPDATED_REGEX "Changed but not updated:"
+#define SECTION_NOT_UPDATED_REGEX "Changed but not updated:|Changes not staged for commit:"
 #define SECTION_UNTRACKED_REGEX "Untracked files:"
 
 struct _GitStatusCommandPriv



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