mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shuai Lin (JIRA)" <>
Subject [jira] [Commented] (MESOS-4216) should support multiple git worktrees
Date Tue, 22 Dec 2015 02:37:46 GMT


Shuai Lin commented on MESOS-4216:

[~kaysoky] Seems the two tickets has much in common, should I close this one and track the
problem there?

> should support multiple git worktrees
> -----------------------------------------------------
>                 Key: MESOS-4216
>                 URL:
>             Project: Mesos
>          Issue Type: Improvement
>          Components: build
>            Reporter: Shuai Lin
>            Priority: Trivial
> Git 2.5 add a new feature "multiple worktrees", e.g. one can checkout multiple worktrees
of the same local git repo, which share the same .git directory.
> For example, the following command:
> {code} 
> git worktree add -b new-branch ../mesos-new-branch master 
> {code}
> would create a new folder {{mesos-new-branch}} in the parent folder of mesos source tree.
> See [this github blog|]
for details.
> This feature is quite handy when developing mesos: you can avoid re-compiling mesos (really
costs a lot of time) when you need to temporary switch to another branch and switch back soon
after: you just create a worktree, and do stuff there.
> Currently the {{}} script doesn't work well if not running in the default
worktree, becase it would look for the {{.git}} folder. In non-default worktree, `.git` is
a file whose content points to the real `.git` dir.
> {code} 
> $ cd ~/dev/mesos-new-branch 
> $ cat .git 
> gitdir: ~/dev/mesos/.git/worktrees/mesos-new-branch 
> {code}

This message was sent by Atlassian JIRA

View raw message