Re: [PATCH] Add platform-independent .git "symlink"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brandon Casey
Date: Monday, February 4, 2008 - 2:17 pm

Johannes Schindelin wrote:

Are you planning something that works like:

  $ cd <my_repo>
  $ git branch
    * master
      other_branch
  $ git checkout --new-workdir ../<other_work_dir> other_branch

(not sure how it would work using git-branch).

Have you thought about using git-clone instead?

It seems a good fit but would require a new option to specify a
branch to checkout (which I believe is a requested feature for
clone). --shared seems like a good option name*, too bad it's
already taken. But how about --conjoined to communicate that the new
repo and the original repo are "attached at the hip"?

  $ git clone --conjoined -b other_branch <my_repo> <other_work_dir>

-brandon

* I really do think "shared" is the most appropriate since _both_
  repos would be sharing, rather than the current meaning or shared which
  is just a short-hand for --reference and in which the original repo gets
  nothing from the selfish "sharer".

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add tests for .git file, Lars Hjemli, (Sat Feb 2, 8:02 am)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Sat Feb 2, 8:56 am)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Sat Feb 2, 11:19 am)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Sat Feb 2, 11:34 am)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Sat Feb 2, 6:55 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Sun Feb 3, 5:24 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 7:34 am)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 7:36 am)
Re: [PATCH] Add platform-independent .git "symlink", Brandon Casey, (Mon Feb 4, 2:17 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 2:31 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 3:19 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 5:49 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Mon Feb 4, 5:51 pm)
Re: [PATCH] Add platform-independent .git &quot;symlink&quot;, Johannes Schindelin, (Tue Feb 5, 5:57 am)