-
Notifications
You must be signed in to change notification settings - Fork 1
feat(KNO-10035): prompt to add .knockbranch to .gitignore #625
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
feat(KNO-10035): prompt to add .knockbranch to .gitignore #625
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
); | ||
}); | ||
|
||
describe("and ancestor directory contains a .gitignore file", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I failed to find a way to use Sinon to mock the isFileIgnoredByGit
function so that it returns true
. That’s why there’s no test case here for when the .gitignore
file already exists and already ignores .knock_branch
.
314724d
to
23f1e80
Compare
de49ee1
to
2363bcd
Compare
2363bcd
to
4249415
Compare
23f1e80
to
185e03b
Compare
4249415
to
54053d6
Compare
185e03b
to
2b364eb
Compare
506c585
to
811cb3b
Compare
2b364eb
to
7a22fa1
Compare
811cb3b
to
dc9244a
Compare
7a22fa1
to
5bf6934
Compare
5bf6934
to
49abde5
Compare
Merge activity
|
Description
This PR updates the
knock branch switch
command so that when a.knock_branch
file does not yet exist, and after the user chooses to create a new.knock_branch
file in the project directory, we automatically create or update.gitignore
to ignore.knock_branch
.Tasks
KNO-10035
Loom demo
https://www.loom.com/share/8089e496fa564ad9b818e736466a4a7c