.tmp.count whilereadline ;do current=`echo$line|awk-F',''{printf $2}" />
您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> C/C++ >> linux git sh,查看自己提交的代码数

linux git sh,查看自己提交的代码数

来源:网络整理     时间:2016/9/2 2:46:06     关键词:

关于网友提出的“ linux git sh,查看自己提交的代码数”问题疑问,本网通过在网上对“ linux git sh,查看自己提交的代码数”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: linux git sh,查看自己提交的代码数
描述:

linuxgit脚本

各位有其他好的办法么?
在网上找了个脚本
#!/bin/sh
insert=0
delete=0
git log--author=$1--shortstat--pretty=format:""|sed/^$/d >.tmp.count
whilereadline ;do
current=`echo$line|awk-F',''{printf $2}'|awk'{printf $1}'`
insert=`expr$insert+ $current`
current=`echo$line|awk-F',''{printf $3}'|awk'{printf $1}'`
delete=`expr$delete+ $current`
done<.tmp.count
rm .tmp.count
echo$1$insertinsertions, $deletedeletions
运行不通,假设我想在查看在AAAA目录下查看aaaa的提交记录,应该做哪些修改呢?
谢谢!
以上介绍了“ linux git sh,查看自己提交的代码数”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3714162.html

相关图片

相关文章