Files
git/builtin
Dennis Kaarsemaker 3473ad0cf6 checkout: don't require a work tree when checking out into a new one
For normal use cases, it does not make sense for 'checkout' to work on
a bare repository, without a worktree. But "checkout --to" is an
exception because it _creates_ a new worktree. Allow this option to
run on bare repositories.

People who check out from a bare repository should remember that
core.logallrefupdates is off by default and it should be turned back
on. `--to` cannot do this automatically behind the user's back because
some user may deliberately want no reflog.

For people interested in repository setup/discovery code,
is_bare_repository_cfg (aka "core.bare") is unchanged by this patch,
which means 'true' by default for bare repos. Fortunately when we get
the repo through a linked checkout, is_bare_repository_cfg is never
used. So all is still good.

[nd: commit message]

Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-12-01 11:00:18 -08:00
..
2014-07-16 11:10:11 -07:00
2014-10-20 12:23:48 -07:00
2014-10-20 12:23:48 -07:00
2014-01-17 12:21:20 -08:00
2014-12-01 11:00:18 -08:00
2014-10-10 16:02:26 -07:00
2014-10-21 13:28:10 -07:00
2014-09-02 12:00:30 -07:00
2014-10-29 10:07:56 -07:00
2014-12-01 11:00:17 -08:00
2014-04-30 10:30:02 -07:00
2014-10-08 13:05:25 -07:00