From: "franky" <yinping@kooxoo.com>
To: "'Lars Hjemli'" <hjemli@gmail.com>
Cc: <git@vger.kernel.org>
Subject: RE: Is there any plan to support partial checkout or submoudule improvement?
Date: Tue, 16 Oct 2007 17:56:21 +0800 [thread overview]
Message-ID: <20071016095622.CE14F7E6F@mail.kooxoo.com> (raw)
In-Reply-To: <8c5c35580710160142x1f699208gfc226072a27e997a@mail.gmail.com>
> Well, there is always
>
> $ git archive --remote=<repo> <revspec> <path> | tar -x
>
> This is effectively a partial checkout of an arbitrary revision from a
> remote repo.
>
> --
That's actually "a single command", but a little complex. And there still
are some problems with this single command
1. each time is full checkout (not incremental), so bad performance for
large bin directory
2. I can't know deployment version easily and I can't use "git-log" to see
the log and to decide which version to back to when necessary.
I just find an ugly resolution:
1. git-clone host:project.git project
Cloned project is as follows (src, bin are subdir instead of submodule)
project
src
bin
.git
2. cd project && rm -rf src
3. when project.git changed, then
git-fetch && git-checkout origin/master bin
Unfortulately, it's annoying when I run git-status which complains "deleted:
src ". And "git-log" will not show the newest log since git-checkout doesn't
update the index file
So, the alternative for the 3rd step is
git-pull && rm src
It's so ugly!
Suggestion 1: how about adding a paths option for git-status just like
git-diff and git-log
Suggestion 2: how about changes the default paths for "git-diff", "git-log"
and so on from the "top dir with .git" to "the current dir"? So when I'm in
bin directory and run "git-log", it will only report log or diff in bin
directory.
franky
next prev parent reply other threads:[~2007-10-16 9:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 3:20 Is there any plan to support partial checkout or submoudule improvement? franky
2007-10-16 8:08 ` Lars Hjemli
2007-10-16 8:27 ` franky
2007-10-16 8:42 ` Lars Hjemli
2007-10-16 9:56 ` franky [this message]
2007-10-16 10:50 ` Lars Hjemli
2007-10-16 11:45 ` franky
2007-10-16 11:02 ` Johannes Schindelin
2007-10-16 11:53 ` franky
2007-10-16 21:33 ` Jan Hudec
2007-10-17 2:54 ` Is there any plan to support partial checkout or submouduleimprovement? franky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071016095622.CE14F7E6F@mail.kooxoo.com \
--to=yinping@kooxoo.com \
--cc=git@vger.kernel.org \
--cc=hjemli@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).