Thread (3 messages) flat view 3 messages, 3 authors, 2021-09-01

Re: [PATCH] rebase, cherry-pick, revert: only run from toplevel

From: Junio C Hamano <hidden>
Date: 2021-09-01 05:29:15

Elijah Newren [off-list ref] writes:
Ooh, this sounds intriguing to me...but what if we changed that rule
slightly and just decided to never make the cwd go away?  Currently,
the checkout code removes directories if they have no tracked or
untracked or ignored files left, i.e. if they're empty.  What if we
decide to only have remove_scheduled_dirs() remove directories that
are empty AND they are not the current working directory?
Is that generally doable?  What would we do when the directory the
subcommand was started from (or one of its parent directories) is
not just missing but has to be a file in the revision the subcommand
is trying to checkout?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help