Is there a way to get the result of the work git diff --numstatand git diff --name-statusin one start?My problem is that if I use only --numstat, then I do not know if any new lines have been added to the file or if the file is completely new. When using, --name-statusI get information if the file is new or not, but there is no statistics on line changes.
git diff --numstat
git diff --name-status
--numstat
--name-status
My workaround is currently running both commands separately, and then merging this output with a PowerShell script, but since the repo is quite large, I would like to get the desired output first. Thanks in advance for your help!
--numstat --summary;
--summary
git diff --numstat --summary
, "" ; , "git add" "git rm", git :
# Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # new file: b # deleted: a
git diff --cached --numstat --summary
:
540 0 b 0 3 a create mode 100644 b delete mode 100644 a
: --numstat --summary git diff, git diff --cached, git show , , .
git diff
git diff --cached
git show
git log --stat --summary
. .
--diff-filter=A, , --diff-filter=a, :
--diff-filter=A
--diff-filter=a
git diff --numstat --diff-filter=A git diff --numstat --diff-filter=a
Source: https://habr.com/ru/post/1629141/More articles:Тестирование частного метода в конечном классе - javaРазблокировать блокировку экрана - androidFast protocol of a certain class - swiftHow to show custom error messages using passport and expression - node.jscodeigniter 3 - remove index.php: 404 error on linux, but works fine on windows - linuxHigh CPU Process - c ++setconignign message and error time insertion - phpexecuting NS package in bash file through Java - javaHow to make a grid inside a button, has 100 percent width in WPF? - c #AssemblyInfo and user attributes - c #All Articles