Changes between Version 1 and Version 2 of GitCommit
- Timestamp:
- 02/26/2010 02:56:01 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitCommit
v1 v2 66 66 current_branch = branch 67 67 68 # Check to make sure that the provided branches are valid 68 69 for branch in branches: 69 70 if branch not in local_branches: … … 71 72 sys.exit(1) 72 73 74 # Perform the main commit 73 75 subprocess.call([GIT_COMMIT] + git_args) 74 76 77 # Loop through the specified branches applying the commit to all of 78 # them. 75 79 for branch in branches: 76 80 subprocess.call([GIT_CHECKOUT, branch]) … … 79 83 p2 = subprocess.Popen([GIT, 'am', '-3', '-k'], stdin=p1.stdout) 80 84 p2.communicate() 85 86 # Switch back to the original branch 87 subprocess.call([GIT_CHECKOUT, current_branch]) 81 88 }}}