git: add more aliases, fix lazy-checkin for py3.6

This commit is contained in:
2020-07-07 18:56:13 +00:00
parent 7cfb041646
commit 5362d39315
2 changed files with 7 additions and 3 deletions

View File

@@ -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]

View File

@@ -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):