【发布时间】:2013-09-26 15:18:34
【问题描述】:
我在提交中生成了差异/更改,以便我可以将其上传到 ReviewBoard。
我使用了“git show d9f7121e8ebd4d1f789dab9f8214ada2h480b9cf”。它给了我类似...
diff --git a/src/index.php b/src/index.php
index 3cfa8e8..7f8440d 100644
--- a/src/index.php
+++ b/src/index.php
@@ -12,10 +12,13 @@
.test {
.input;
width: auto;
+ border-width: 5px;
+ border-radius: 50%;
}
当我创建这个差异的 .patch 文件时。 Reviewboard 拒绝它说“'3cfa8e8' 修订格式无效。SHA1 太短”。
所以我想从短 SHA1 '3cfa8e8' 中得到长 SHA1。
我做了'git show 3cfa8e8'。它只是向我显示了一些文件内容。没有显示其他任何内容。
任何帮助我如何获得长 SHA?
(注:- 所有 sha 和文件 diff 都是演示问题的示例)
【问题讨论】:
标签: git diff sha review-board