Thread (7 messages) flat view 7 messages, 6 authors, 2016-06-15

Re: Bug: "git checkout -b" should be allowed in empty repo

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:52:54

Possibly related (same subject, not in this thread)

Am 1/31/2012 9:57, schrieb Michael Haggerty:
No, the idea is to avoid special casing by making 0{40} into a real (but
empty) revision.
But then why not just have git init perform the equivalent of

  c=$(echo "Start" | git commit-tree $empty_tree_sha1) &&
  git update-ref refs/heads/master $c

People who dislike an empty initial commit can always use "git commit
--amend" for the first "real" commit.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help