git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory.
@ 2006-11-17  5:49 Michael K. Edwards
  2006-11-17  6:04 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Michael K. Edwards @ 2006-11-17  5:49 UTC (permalink / raw)
  To: git

This improves the workflow for, say, kernel subsystem backporting.

Signed-off-by: Michael K. Edwards <medwards-linux@gmail.com>
---
 git-checkout.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-checkout.sh b/git-checkout.sh
index dd47724..5866604 100755
--- a/git-checkout.sh
+++ b/git-checkout.sh
@@ -106,7 +106,8 @@ Did you intend to checkout '$@' which ca
 		git-ls-tree --full-name -r "$new" "$@" |
 		git-update-index --index-info || exit $?
 	fi
-	git-checkout-index -f -u -- "$@"
+	git-ls-files "$@" |
+	git-checkout-index -f -u --stdin
 	exit $?
 else
 	# Make sure we did not fall back on $arg^{tree} codepath
-- 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory.
  2006-11-17  5:49 [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory Michael K. Edwards
@ 2006-11-17  6:04 ` Junio C Hamano
  2006-11-17  6:18   ` Michael K. Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-11-17  6:04 UTC (permalink / raw)
  To: Michael K. Edwards; +Cc: git

Thanks.

I think I sent out the same yesterday morning, though.

	Message-ID: <7vbqn8msuw.fsf@assigned-by-dhcp.cox.net>

The difference is that the one tries to catch misspelled <path>.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory.
  2006-11-17  6:04 ` Junio C Hamano
@ 2006-11-17  6:18   ` Michael K. Edwards
  2006-11-17  8:15     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Michael K. Edwards @ 2006-11-17  6:18 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Ah.  Missed that patch, which is indeed a superset of mine.  Looks
like you committed it on branch "next"; is that a personal
experimental branch, or the integration branch against which patches
should be generated?

Cheers,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory.
  2006-11-17  6:18   ` Michael K. Edwards
@ 2006-11-17  8:15     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2006-11-17  8:15 UTC (permalink / raw)
  To: Michael K. Edwards; +Cc: Junio C Hamano, git

"Michael K. Edwards" <medwards.linux@gmail.com> writes:

> Ah.  Missed that patch, which is indeed a superset of mine.  Looks
> like you committed it on branch "next"; is that a personal
> experimental branch, or the integration branch against which patches
> should be generated?

Actually it is not pushed out anywhere yet but will appear on
both 'maint' and 'master' along with other post 1.4.4 fixes and
will be contained in the 1.4.4.1 maintenance release.

The role of each branch at my public repository is desribed in
this message:

	Message-ID: <7vk62qhy4k.fsf@assigned-by-dhcp.cox.net>
	http://article.gmane.org/gmane.comp.version-control.git/29951

In general, if your changes and fixes are applicable in
isolation to "master", it is most appropriate to send patches
against "master".  If you are following up a topic that is
cooking in "next" (or "pu"), then basing your patch on "master"
is obviously a bad idea and a patch that applies on "next" (or
"pu") would be more appropriate.  If you can make the patch
against the tip of the specific topic that would be even better
but it generally is more work for you, so I usually do not ask
that to contributors.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-17  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17  5:49 [PATCH] Make "git checkout <branch> <path>" work when <path> is a directory Michael K. Edwards
2006-11-17  6:04 ` Junio C Hamano
2006-11-17  6:18   ` Michael K. Edwards
2006-11-17  8:15     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).