Isomorphic-git: moveBranch

Created on 28 Dec 2017  路  6Comments  路  Source: isomorphic-git/isomorphic-git

enhancement good first issue released

All 6 comments

can you help me implement any one of the features? like reset, move etc It's my first commit.

I'm visiting my parents this weekend (it's Father's Day in the USA) so I can't directly help today, but if you give it a shot and get stuck you can ask questions!

I case could be made either way, but I think renameBranch would be a more fitting name. (Both terms are used in the git documentation, but what's really happening is that the branch is getting a new name. Plus, the name of the operation in Node's fs module to rename/move a file is "rename". So the terminology might be expected.)

I think renameBranch would be ideal as well. I'd like to take on development for this issue, but don't know where to start in terms of reference for how to actually implement this logic. I'll take a look through the createBranch logic, but will ping here if/when stuck

I decided I would do an experiment and simply clone two of the exact same repo, then locally rename the master branch to main in one of them, then use SmartSyncronize to compare and contrast the difference between the two.

It seems like the following actions need to be done:

1) Change the config branch name
2) Change the head ref
3) Move the ref/heads old branch name file to a file with the new branch name

I'll read through the codebase to see what code is already present and what code needs to be written

:tada: This issue has been resolved in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krasimir picture krasimir  路  3Comments

jcubic picture jcubic  路  4Comments

tyru picture tyru  路  4Comments

njlr picture njlr  路  5Comments

creationix picture creationix  路  4Comments