oaix 最近的时间轴更新
oaix

oaix

V2EX 第 77973 号会员,加入于 2014-10-21 15:20:07 +08:00
9 G 20 S 30 B
oaix 最近回复了
已恢复
283 天前
回复了 mannixSuo 创建的主题 程序员 对 Java 泛型的顶级理解
只要我看不懂的代码:过度设计,只要看不懂我写的代码:辣鸡🐶
2022-05-02 15:54:06 +08:00
回复了 tlmn 创建的主题 程序员 有没有办法控制 jetbrains 家产品的排序方法?
可以用 String Manipulation 插件
2021-06-07 11:35:26 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
@AndyAO 看了下这个 PR 的讨论,如他们所说,这里面有 2 个默认值的概念,1:如果没有传 --decorate,那么默认值就是 auto ; 2:如果传了 --decorate,但没有指定 decorate 的值,那么默认值就是 short 。很明显,当前文档说的是情况 2,但其实情况 1 更符合直觉(如你的 PR 所修改的),如果能更进一步,在文档里面把这两个地方都说清楚可能更棒。
2021-06-07 11:19:32 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
@AndyAO 👍
2021-06-02 09:34:21 +08:00
回复了 Yukee798 创建的主题 问与答 请教前辈们一个正则表达式
^\[(?:|(?:[3-9]|[12][0-9]|3[0-7]|#)(?:,(?:[3-9]|[12][0-9]|3[0-7]|#))*)\]$

如果需要匹配空的[],可以用这个
2021-05-31 09:57:52 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
理解文档的意思了,默认值的意思是:--decorate 等效于--decorate=short
2021-05-31 09:51:31 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
@AndyAO #4 好问题,这里我也不知道原因,感觉是文档有问题,实际默认值是 auto 。
2021-05-31 09:33:33 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
https://git-scm.com/docs/git-log

--decorate[=short|full|auto|no]
Print out the ref names of any commits that are shown. If short is specified, the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be printed. If full is specified, the full ref name (including prefix) will be printed. If auto is specified, then if the output is going to a terminal, the ref names are shown as if short were given, otherwise no ref names are shown. The default option is short.
2021-05-31 09:28:44 +08:00
回复了 AndyAO 创建的主题 问与答 如何在 PowerShell 中捕获到 git 命令中返回的全部信息?
git log --decorate=full
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5447 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 08:29 · PVG 16:29 · LAX 01:29 · JFK 04:29
Developed with CodeLauncher
♥ Do have faith in what you're doing.