;bin: hledger-git: status command also shows diffs
This commit is contained in:
parent
679f62cc60
commit
ae26ae6294
@ -87,7 +87,11 @@ r() { record "$@"; }
|
|||||||
|
|
||||||
status() {
|
status() {
|
||||||
ensure_git
|
ensure_git
|
||||||
|
# short status
|
||||||
$GIT --work-tree "$DIR" status -sb "$@" -- $FILES
|
$GIT --work-tree "$DIR" status -sb "$@" -- $FILES
|
||||||
|
echo
|
||||||
|
# diff
|
||||||
|
$GIT --work-tree "$DIR" diff "$@" -- $FILES
|
||||||
}
|
}
|
||||||
s() { status "$@"; }
|
s() { status "$@"; }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user