1. Steve Losh
  2. gh

Commits

Steve Losh  committed 67b3620

log: show changesets from all branches

  • Participants
  • Parent commits a52bb17
  • Branches default

Comments (0)

Files changed (3)

File gh.py

View file
         shortopts={'limit': 'l'})
 def log(limit=0):
     '''list changesets'''
-    cmd = ['log']
+    cmd = ['log', '--all']
 
     if limit:
         cmd.extend(['-%s' % limit])
 
     sys.exit(git(*cmd))
 
-
 @baker.command(
         params={'rev':    'diff the working dir against a revision',
                 'change': 'show the diff of the change made by a revision',

File tests/help.t

View file
   
    add       mark untracked files to be committed
    branches  list all branches
-   commit    
    diff      show diffs
    log       list changesets
-   revert    
-   update    
   
   Use "/Users/sjl/src/gh/tests/../gh.py <command> --help" for individual command help.
   $ $gh help
   
    add       mark untracked files to be committed
    branches  list all branches
-   commit    
    diff      show diffs
    log       list changesets
-   revert    
-   update    
   
   Use "/Users/sjl/src/gh/tests/../gh.py <command> --help" for individual command help.
   $ $gh --help
   
    add       mark untracked files to be committed
    branches  list all branches
-   commit    
    diff      show diffs
    log       list changesets
-   revert    
-   update    
   
   Use "/Users/sjl/src/gh/tests/../gh.py <command> --help" for individual command help.
 

File tests/log.t

View file
   Date:   Mon Jan 1 00:00:00 2007 +0000
   
       1
+
+log should show changesets from all branches
+
+  $ git checkout HEAD^ -b b1
+  Switched to a new branch 'b1'
+  $ echo c3 > f3
+  $ git add .
+  $ git commit -qm 3
+  $ $gh log
+  commit 1b1979a7aa38d58a1a06d2fc49815a950fde6b7e
+  Author: test <test@example.org>
+  Date:   Mon Jan 1 00:00:00 2007 +0000
+  
+      3
+  
+  commit e5f0882e7f596dbda877a82785e0eac604e1b69d
+  Author: test <test@example.org>
+  Date:   Mon Jan 1 00:00:00 2007 +0000
+  
+      2
+  
+  commit 44706c243491b45638cb31ffad4613df5e8f6308
+  Author: test <test@example.org>
+  Date:   Mon Jan 1 00:00:00 2007 +0000
+  
+      1