summaryrefslogtreecommitdiffstats
path: root/eurephiadm/commands/buildinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/commands/buildinfo.c')
-rw-r--r--eurephiadm/commands/buildinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eurephiadm/commands/buildinfo.c b/eurephiadm/commands/buildinfo.c
index ba30606..4b70516 100644
--- a/eurephiadm/commands/buildinfo.c
+++ b/eurephiadm/commands/buildinfo.c
@@ -86,10 +86,10 @@ int cmd_BuildInfo(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg,
" branch: " BUILDBRANCH "\n"
" HEAD ref: " BUILDGITREV "\n");
printf(" tree state: %s\n",
- (GITSTATE == 0 ? "Clean" : "Modified"));
- if( GITSTATE != 0 ) {
- printf("\n Uncommitted changes to the git tree:\n"
- MODIFIEDFILES);
+ (MODIFIEDCOUNT == 0 ? "Clean" : "Modified"));
+ if( MODIFIEDCOUNT != 0 ) {
+ printf("\n Uncommitted changes to the git tree (%i file%s):\n"
+ MODIFIEDFILES, MODIFIEDCOUNT, (MODIFIEDCOUNT != 1 ? "s" : ""));
}
#endif
printf("\n");