Browse Source

git: aliases: dir

master
Maxim Likhachev 3 years ago
parent
commit
205a473cbd
  1. 7
      etc/soft/git/gitconfig

7
etc/soft/git/gitconfig

@ -112,6 +112,13 @@ @@ -112,6 +112,13 @@
# Список diff-методов для сохранения в .gitattributes
diffs = "!grep '\\[diff \"' ~/.gitconfig | cut -d '\"' -f 2 | awk '{ print \"*.\" $0 \" diff=\" $0 }'"
# (c) https://stackoverflow.com/a/70727386
# Список файлов (ls -1) с git-статусом
dir = "!lsdir() { ( git status -s -- ':(glob)*'; \\ls -A --file-type | awk '{ print \" \"$0 }' ) | sort -t$'\n' -usk 1.4; }; lsdir"
# Список файлов (ls -1) с git-статусом
files = dir
attributes = diffs #noindex
# git push в текущий origin

Loading…
Cancel
Save