-
Notifications
You must be signed in to change notification settings - Fork 73
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: git manager #48
Conversation
|
main/git/config.ts
Outdated
await writeGitConfig(GLOBAL_GITCONFIG_PATH, gitConfig); | ||
} | ||
|
||
export async function getUserGitConfigs() { |
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.
建议注释下,说明怎么取 步骤是什么 可能的问题有什么
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.
done
main/git/ssh.ts
Outdated
let currentSSHConfigIndex = -1; | ||
// eslint-disable-next-line no-labels | ||
loopLabel: | ||
for (let index = 0; index < SSHConfigSections.length; index++) { |
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.
直接用 array findIndex?
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.
done
Ref: #42
预览图:
TODO: