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

[Issue 30] Allow linking to a different branch. #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmitrym0
Copy link

@dmitrym0 dmitrym0 commented Nov 4, 2024

#30 is a feature request to allow branch name to be specified instead of the current branch. This code was written by @dotemacs; I'm just creating the PR.

To test:

  1. C-u M-x git-link-different-branch

You should get a completing read to specify which branch you'd like to link to.

"Invoke `git-link', but with the `branch' name set to a different
branch than the one you're currently working on."
(interactive "P")
(let* ((default-remote-branch-name "main")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing to consider here is this main usage.

Some people might have master or something else.

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.

2 participants