git: add more aliases, fix lazy-checkin for py3.6
This commit is contained in:
@@ -13,11 +13,16 @@
|
|||||||
ca = commit --amend --no-edit
|
ca = commit --amend --no-edit
|
||||||
rc = rebase --continue
|
rc = rebase --continue
|
||||||
ra = rebase --abort
|
ra = rebase --abort
|
||||||
|
cp = cherry-pick
|
||||||
sm = submodule
|
sm = submodule
|
||||||
s = status
|
s = status
|
||||||
|
b = branch
|
||||||
|
bu = branch --set-upstream-to
|
||||||
d = diff
|
d = diff
|
||||||
ds = diff --staged
|
ds = diff --staged
|
||||||
g = log --graph --oneline --decorate
|
graph = log --graph --oneline --decorate
|
||||||
|
g = graph
|
||||||
|
ga = graph --all
|
||||||
sb = branch -rv --sort=committerdate
|
sb = branch -rv --sort=committerdate
|
||||||
lc = lazy-checkin
|
lc = lazy-checkin
|
||||||
[commit]
|
[commit]
|
||||||
|
|||||||
@@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
import subprocess
|
||||||
import pathlib
|
|
||||||
|
|
||||||
|
|
||||||
def call_proc(cmd):
|
def call_proc(cmd):
|
||||||
return subprocess.run(cmd, check=True, capture_output=True)
|
return subprocess.run(cmd, check=True, stdout=subprocess.PIPE)
|
||||||
|
|
||||||
|
|
||||||
def lazy_commit(all: bool = True, message: str = None):
|
def lazy_commit(all: bool = True, message: str = None):
|
||||||
|
|||||||
Reference in New Issue
Block a user