Skip to content
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 from

Conversation

mookid
Copy link
Contributor

@mookid mookid commented May 7, 2017

No description provided.

@abo-abo
Copy link
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
Copy link
Contributor Author

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
Copy link
Owner

abo-abo commented May 7, 2017

Thanks.

- Require a match.
- Don't trigger `ivy-read' when there are no other worktrees.
@mookid
Copy link
Contributor Author

mookid commented May 26, 2017

@abo-abo : I received the assignment.

@abo-abo
Copy link
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
Copy link
Contributor Author

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
Copy link
Owner

abo-abo commented May 26, 2017

Really cool, thanks.

@mookid mookid deleted the git_worktree branch July 19, 2017 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants