public
Fork of farktronix/gittools
Description: Collection of scripts for performing generic git tasks
Clone URL: git://github.com/danpreston/gittools.git
Added an error message if there are no modified files when using the -m 
option.
danpreston (author)
Mon May 12 02:38:14 -0700 2008
commit  6d0ac06fcbd802402504c4c4ca1a050e23c9a8d3
tree    14dc3518d8021b1f853fa0ec88444d2a8576ec21
parent  1f5ebd858a12e080f4c7a137444fedc0767a9c63
...
254
255
256
257
 
 
 
 
258
259
260
...
254
255
256
 
257
258
259
260
261
262
263
0
@@ -254,7 +254,10 @@ def compareModified( chatty=True ):
0
     modifiedFile = line.partition( "modified:" )[2].strip()
0
     if modifiedFile != "":
0
       modifiedFiles.append( modifiedFile )
0
- compareFiles( modifiedFiles, "HEAD", chatty )
0
+ if len( modifiedFiles ) > 0:
0
+ compareFiles( modifiedFiles, "HEAD", chatty )
0
+ elif chatty:
0
+ print( "There are no modified files." )
0
 
0
 #----------------------------------------------------------------------------------------------------------------------------
0
 #  compareFiles

Comments

    No one has commented yet.