New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command to switch to another git worktree. #989

Closed
wants to merge 4 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@mookid
Contributor

mookid commented May 7, 2017

No description provided.

@abo-abo

This comment has been minimized.

Owner

abo-abo commented May 7, 2017

Thanks. It looks like you don't have an Emacs Copyright Assignment yet. Since the package is on GNU ELPA, all contributions over 15 lines need a CA.

If you want to get the CA, see README for more info.

@mookid

This comment has been minimized.

Contributor

mookid commented May 7, 2017

I actually started the procedure to get the paperwork done. I'll let you know when it is done.

@abo-abo

This comment has been minimized.

Owner

abo-abo commented May 7, 2017

Thanks.

mookid added some commits May 7, 2017

Git worktrees: improve ergonomy.
- Require a match.
- Don't trigger `ivy-read' when there are no other worktrees.
@mookid

This comment has been minimized.

Contributor

mookid commented May 26, 2017

@abo-abo : I received the assignment.

@abo-abo

This comment has been minimized.

Owner

abo-abo commented May 26, 2017

Thanks. Can you give me an example git tree workflow so I can test the code better. Right now I only have a single work tree in all my projects.

@mookid

This comment has been minimized.

Contributor

mookid commented May 26, 2017

Sure. A sample example:

cd /tmp
mkdir worktree_test
cd worktree_test
git init && echo test >> a.txt && git add a.txt && git commit -m test
git worktree add ../worktree1
git worktree add ../worktree2

Now when opening a.txt, you can switch to /tmp/worktree{1,2,_test}/a.txt easily.

@abo-abo abo-abo closed this in c931949 May 26, 2017

@abo-abo

This comment has been minimized.

Owner

abo-abo commented May 26, 2017

Really cool, thanks.

@mookid mookid deleted the mookid:git_worktree branch Jul 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment