X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/5622a4e0239c03472d57594f3a830f639ea7d9c3..e3f433a2b001f9d1d3adb470c9fe49d72b010452:/gitconfig diff --git a/gitconfig b/gitconfig index 3d2a12c..1f002ca 100644 --- a/gitconfig +++ b/gitconfig @@ -27,6 +27,7 @@ diff = auto status = auto branch = auto + interactive = auto [color "diff"] plain = normal @@ -65,6 +66,17 @@ --no-signed-off-by-cc \ --to" files = "ls-files --exclude-standard" + unstg = !"sh -e -c ' \ + : ${GIT_DIR=$(git rev-parse --git-dir)}; \ + if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \ + for branch; do \ + rmdir \"$GIT_DIR/patches/$branch/patches\"; \ + rm -rf \"$GIT_DIR/patches/$branch\"; \ + git for-each-ref -s \ + --format \"git update-ref -d %(refname) %(objectname)\" \ + \"refs/patches/$branch\" \"refs/bases/$branch\" | \ + sh -e; \ + done' unstg" [stgit] autoresolved = yes