Git输出格式——Git placeholders

Git输出格式——Git placeholders

git的输出格式,可以极大的方便我们处理输出字符串 最好的还是查看官方手册,虽然长,但有用!
http://www.kernel.org/pub/software/scm/git/docs/git-show.html [code lang=”html”] The placeholders are: %H: commit hash %h: abbreviated commit hash %T: tree hash %t: abbreviated tree hash %P: parent hashes %p: abbreviated parent hashes %an: author name %aN: author name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ae: author email %aE: author email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ad: author date (format respects –date= option) %aD: author date, RFC2822 style %ar: author date, relative %at: author date, UNIX timestamp %ai: author date, ISO 8601 format %cn: committer name %cN: committer name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ce: committer email %cE: committer email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %cd: committer date %cD: committer date, RFC2822 style %cr: committer date, relative %ct: committer date, UNIX timestamp %ci: committer date, ISO 8601 format %d: ref names, like the –decorate option of git-log(1) %e: encoding %s: subject %f: sanitized subject line, suitable for a filename %b: body %B: raw body (unwrapped subject and body) %N: commit notes %gD: reflog selector, e.g., refs/stash@{1} %gd: shortened reflog selector, e.g., stash@{1} %gn: reflog identity name %gN: reflog identity name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ge: reflog identity email %gE: reflog identity email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %gs: reflog subject %Cred: switch color to red %Cgreen: switch color to green %Cblue: switch color to blue %Creset: reset color %C(…): color specification, as described in color.branch.* config option %m: left, right or boundary mark %n: newline %%: a raw % %x00: print a byte from a hex code %w([[,[,]]]): switch line wrapping, like the -w option of git-shortlog(1). [/code]

转载于:https://my.oschina.net/ifeixiang/blog/339548

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109678.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Java利用poi-tl实现富文本HTML转Word[通俗易懂]

    Java利用poi-tl实现富文本HTML转Word[通俗易懂]废话不多,直接上码一、说明1、jdk1.82、springboot项目3、测试包下,如下图:二、核心pom引入【注意:】依赖的版本,不能乱改,可能会有冲突。 <properties><poi.version>4.1.2</poi.version><hutool.version>4.6.10</hutool.version><guava.version>20.0&lt

    2022年10月9日
    2
  • Python—socket编程

    Python—socket编程

    2022年2月12日
    39
  • redis(五大数据类型)「建议收藏」

    redis(五大数据类型)「建议收藏」RedisRedis入门菜Redis为什么这么快?五大数据类型Redis可以用作数据库,缓存,消息中间件Redis入门菜redis 默认有16个数据库可以使用select 进行切换数据库root@ubuntu:/usr/bin/redisconf# redis-cli 127.0.0.1:6379> select 3 //选择第3个数据库OK127.0.0.1:6379[3]> DBSIZE //查看数据库大小(integer) 0127.0.0.1:6379[3]>

    2022年8月8日
    6
  • ntp服务器udp协议,golang实现NTP协议获取服务器时间[通俗易懂]

    ntp服务器udp协议,golang实现NTP协议获取服务器时间[通俗易懂]//fileprojectmain.gopackagemainimport(“encoding/binary””fmt””net””os””os/signal””sync””time”)const(NTP_SERVER_IP=”time.windows.com”/*NTPIP*/NTP_PORT_STR=”123″/*NTP专用端口号字符串*…

    2022年8月31日
    3
  • linux大量kworker_linux load average 非常高

    linux大量kworker_linux load average 非常高aarch32linux4.14最近遇到一个kworker问题,callstack如下,线程adas的陷入kernelspace后会schedule_work调用一个while(1)的worker,killadas后重新启动adas后adas线程会在调用dma_alloc_coherent的时候block住以前的经验一直kworker为轻量的线程和可睡眠的中断下半部,对kwor…

    2022年9月25日
    2
  • pycharm各个版本有什么不同_pycharm更新python版本

    pycharm各个版本有什么不同_pycharm更新python版本pycharm怎么切换不同版本的pyhton打开pycharm,依次点击File-Settings,如图点击Project:PycharmProject-PyhtonInterpreter(这里的文件解释器,因各人的文件名不同而变化,不一定就是图中的文件名),如图点击设置键和弹出的Add,如图选择ExistingEnvironment,在右侧···选择所要配置的python的位置,如图也可以直接在搜索框粘贴所选的python的位置…

    2022年8月29日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号