File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 * This module takes care of the high-level flow of the extension, after a repo
77 * is selected in extension.ts module.
88 *
9- * This module handles reading git output, processes it with the logic in the
9+ * This module handles reading Git output, processes it with the logic in the
1010 * generate module and then finally sets it in the UI message box.
1111 */
1212import * as vscode from "vscode" ;
1313import { GitExtension , Repository } from "./api/git" ;
1414
1515/**
1616 * Fetch the commit message in the Git Extension.
17- *
18- * This could useful when doing conventional commits, as the initial 'feat' or
19- * 'feat: ' portion or similar can be kept as a prefix while the generated
20- * message added on. Or if left out, it can be generated if possible such as for
21- * 'chore' or 'docs'.
2217 */
2318export function getCommitMsg ( repository : Repository ) : string {
2419 return repository . inputBox . value ;
2520}
2621
2722/**
28- * Set the commit message in the Git Extension.
23+ * Set the commit message in the Git Extension pane's input .
2924 */
3025export function setCommitMsg ( repository : Repository , msg : string ) {
3126 repository . inputBox . value = msg ;
You can’t perform that action at this time.
0 commit comments