Android中用Git来抓取你感兴趣列表的提交log
来源:互联网 发布:linux的vim命令 编辑:程序博客网 时间:2024/06/05 18:46
如题所述,用到的命令其实很简单,关键的就这一句
git log --stat --author=pattern在这一句命令的基础上,我写了一个脚本用于抓取一个list中所有人的提交log,以及每次提交的文件
#!/bin/bash#the script could catch the changelog list of openplatform kernel and android#use this script,you should modify the three information of yours #1.HOME_NAME#2.Add the author into the authors list#3.set the root path of the projectHOME_NAME=xh.huang#set the author list in order to match which committing is from ourselvesauthors=(aaaaaa@google.com.cnbbbbbb@google.com.cncccccc@google.com.cn)#init the path which project you should catching the log listPATH_KERNEL="/home/$HOME_NAME/kernel"PATH_ANDROID="/home/$HOME_NAME/jb-4.2"#init the result file of change log list which to saveRESULT_DIR="/home/$HOME_NAME/changeloglist"RESULT_KERNEL="kernel.changelog"RESULT_ANDROID="android.changelog"RESULT_PROJECT=(kernel.changelog android.changelog)#build the store where to save the resultmkdir $RESULT_DIRcd $RESULT_DIRfor result in ${RESULT_PROJECT[*]}{rm -rf $resulttouch $result}#catch the changeloglist of kernelPATH_RESULT_KERNEl=$RESULT_DIR"/"$RESULT_KERNELecho "*************************************************************************" >> $PATH_RESULT_KERNElecho "The project of " $RESULT_KERNEL "changeloglist" >> $PATH_RESULT_KERNElecho "*************************************************************************" >> $PATH_RESULT_KERNElcd $PATH_KERNELfor author in ${authors[*]}{ git log --stat --author=$author >> $PATH_RESULT_KERNEl} #catch the changeloglist of androidPATH_RESULT_ANDROID=$RESULT_DIR"/"$RESULT_ANDROIDecho "*************************************************************************" >> $PATH_RESULT_ANDROIDecho "The project of " $RESULT_ANDROID "changeloglist" >> $PATH_RESULT_ANDROIDecho "*************************************************************************" >> $PATH_RESULT_ANDROIDcd $PATH_ANDROIDfor author in ${authors[*]}{ repo forall -c git log --stat --author=$author >> $PATH_RESULT_ANDROID}上面的脚本可以拿来直接用,你可以根据需要进行修改,其中repo forall是对Android中的每个project执行后面的git命令
- Android中用Git来抓取你感兴趣列表的提交log
- android的log抓取
- git学习------>如何用git log命令来查看某个指定文件的提交历史记录
- 抓取Android应用的log
- 个性化你的git log
- git log查找某一个author的提交
- 过滤git log的提交历史
- git log 的提交历史排序选项
- android studio中用git提交到本地的代码怎么撤回?
- android 简单调试中用到的 Log.
- MTK android一些log的抓取方法
- android 抓取LOG的几种命令
- Android 抓取LOG的几种命令
- Android抓取不同层级Log的方式
- android抓取各种log的方法
- android抓取各种log的方法
- Android抓取各种log的方法
- 非开发人员抓取android log的方法
- 合并多行查询数据到一行:使用自连接、FOR XML PATH('')、STUFF或REPLACE函数
- struts2拦截器和服务器端手工编码验证
- 从C# 堆栈与堆(托管堆)说起(收集+整理+我的思考)
- Java多线程计算某个范围内的质数
- QT中Model/View结构
- Android中用Git来抓取你感兴趣列表的提交log
- BNU 225587 Death Knight Hero【水水签到记录代码】
- 任务管理器看进程
- NServiceBus翻译之Hosting(一):The NServiceBus Host
- java 反射机制
- hdu4081 Qin Shi Huang's National Road System
- codeforces 197 2
- oracle 游标处理过程
- Android 两Activity之间动画效果(3)---------缩放,仿QQ头像点击放大