git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
dd336a5
)
builtin/worktree: switch null_sha1 to null_oid
author
brian m. carlson
<redacted>
Sun, 18 Aug 2019 20:04:19 +0000
(20:04 +0000)
committer
Junio C Hamano
<redacted>
Mon, 19 Aug 2019 22:04:59 +0000
(15:04 -0700)
Switch the remaining use of null_sha1 to null_oid.
Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/worktree.c
patch
|
blob
|
history
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index a5bb02b2076a27a78947fda25c1e16dafd637622..0c0df3b0b8dfddc1416ee8ea404ccaefe04df351 100644
(file)
--- a/
builtin/worktree.c
+++ b/
builtin/worktree.c
@@
-350,7
+350,7
@@
static int add_worktree(const char *path, const char *refname,
*/
strbuf_reset(&sb);
strbuf_addf(&sb, "%s/HEAD", sb_repo.buf);
- write_file(sb.buf, "%s",
sha1_to_hex(null_sha1
));
+ write_file(sb.buf, "%s",
oid_to_hex(&null_oid
));
strbuf_reset(&sb);
strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
write_file(sb.buf, "../..");
git clone https://git.99rst.org/PROJECT