Skip to content

Commit 174eda2

Browse files
committed
update cli.ts
1 parent 8b765fa commit 174eda2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/git/cli.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Repository } from "../api/git";
1010
const exec = util.promisify(childProcess.exec);
1111

1212
/**
13-
* Run a `git` subcommand and return result with stdout and stderr available.
13+
* Run a `git` subcommand and return the result, with stdout and stderr available.
1414
*/
1515
function _execute(cwd: string, subcommand: string, options: string[] = []) {
1616
const command = `git ${subcommand} ${options.join(" ")}`;
@@ -21,15 +21,15 @@ function _execute(cwd: string, subcommand: string, options: string[] = []) {
2121
}
2222

2323
/**
24-
* Run `git diff-index` with given flags and return output.
24+
* Run `git diff-index` with given flags and return the output.
2525
*
26-
* This will return both staged and unstaged changes. Pass '--cached' to use
27-
* staged changes only. Always excludes untracked files.
26+
* This will return both staged and unstaged changes. Pass '--cached' in
27+
* `options` param to use staged changes only. Always excludes untracked files.
2828
*
29-
* Empty lines will be dropped - because of no changes or just the way the
29+
* Empty lines will be dropped, because of no changes or just the way the
3030
* command-line data comes in or got split.
3131
*
32-
* The output already seems to never have color info, from my testing, but the
32+
* The output already seems to never have color info, from testing, but the
3333
* no-color flagged is added still to be safe.
3434
*/
3535
async function _diffIndex(

0 commit comments

Comments
 (0)