sublime-text-git-autocommit
                                
                                 sublime-text-git-autocommit copied to clipboard
                                
                                    sublime-text-git-autocommit copied to clipboard
                            
                            
                            
                        Add push
I want push too
First of all what you propose won't work, because git add doesn't support the push argument.
I bet you wanted to push after commit, then this should be done after line 41, something like:
self.run_command(['git', 'push'], callback=self.update_status)
But:
- Since this handler will be invoked after each git commit, and if you saved multiple files at once you will end with multiple pushes. I'd expected push only happen once. Probably once in a period of time, say, 30 seconds after last commit, same as commits are done 30 seconds after last modification of a file. So probably would be better to delaygit pushafter line 66?
- Git commits usually always succeed (unless you have disk IO error), but git pushin your case will likely require a network connection which may be unreachable at the moment. What would you expect in this case?
- I wouldn't want automatic git pushfor my repo, so I'd prefer a separate setting for this, probably inside the.sublime-text-git-autocommit:
auto_push: true
By the way, do you know git push is just a few key presses when you need it: CMD+P -> push -> Enter.