Always show git status if there is something to show in info.
This commit is contained in:
		
							parent
							
								
									f2b7384ff6
								
							
						
					
					
						commit
						831a0fb723
					
				
					 1 changed files with 16 additions and 11 deletions
				
			
		|  | @ -275,6 +275,19 @@ | ||||||
| ;; | ;; | ||||||
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||||||
| 
 | 
 | ||||||
|  | ;; Used both in print-info and git-status | ||||||
|  | (define (print-git-status) | ||||||
|  |   (let ((status (git-status (*members-directory*)))) | ||||||
|  |     (newline) | ||||||
|  |     (print "Repository " (*members-directory*) " status:") | ||||||
|  |     (if (ldict-ref status 'clean) | ||||||
|  | 	(print "  Repository up-to-date.") | ||||||
|  | 	(let loop ((keys '(unknown untracked modified))) | ||||||
|  | 	  (when (not (null? keys)) | ||||||
|  | 	    (when (ldict-contains? status (car keys)) | ||||||
|  | 	      (print "  " (car keys) ": " (length (ldict-ref status (car keys))))) | ||||||
|  | 	    (loop (cdr keys))))))) | ||||||
|  | 
 | ||||||
| ;; Perform requested action | ;; Perform requested action | ||||||
| (case (-action-) | (case (-action-) | ||||||
|   ((print-info) |   ((print-info) | ||||||
|  | @ -299,7 +312,8 @@ | ||||||
| 		     (when (not (null? missing)) | 		     (when (not (null? missing)) | ||||||
| 		       (print "  Missing: " missing)) | 		       (print "  Missing: " missing)) | ||||||
| 		     (when (not (null? surplus)) | 		     (when (not (null? surplus)) | ||||||
| 		       (print "  Outsiders: " surplus)))))))) | 		       (print "  Outsiders: " surplus)))))) | ||||||
|  | 	 (print-git-status))) | ||||||
|    (newline)) |    (newline)) | ||||||
|   ((print-stats) |   ((print-stats) | ||||||
|    (newline) |    (newline) | ||||||
|  | @ -383,16 +397,7 @@ | ||||||
| 		   (make+print-reminder-email (car lst))) | 		   (make+print-reminder-email (car lst))) | ||||||
| 	       (loop (cdr lst)))))))) | 	       (loop (cdr lst)))))))) | ||||||
|   ((status) |   ((status) | ||||||
|    (let ((status (git-status (*members-directory*)))) |    (print-git-status)) | ||||||
|      (newline) |  | ||||||
|      (print "Repository " (*members-directory*) " status:") |  | ||||||
|      (if (ldict-ref status 'clean) |  | ||||||
| 	 (print "  Repository up-to-date.") |  | ||||||
| 	 (let loop ((keys '(unknown untracked modified))) |  | ||||||
| 	   (when (not (null? keys)) |  | ||||||
| 	     (when (ldict-contains? status (car keys)) |  | ||||||
| 	       (print "  " (car keys) ": " (length (ldict-ref status (car keys))))) |  | ||||||
| 	     (loop (cdr keys))))))) |  | ||||||
|   ((summary) |   ((summary) | ||||||
|    (if (-send-emails-) |    (if (-send-emails-) | ||||||
|        (make+send-summary-email MB) |        (make+send-summary-email MB) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue