mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-28 17:25:09 -05:00
Adds full blame UI support
This commit is contained in:
15
src/git.ts
15
src/git.ts
@@ -22,12 +22,12 @@ export default class Git {
|
||||
fileName = Git.normalizePath(fileName, repoPath);
|
||||
|
||||
if (sha) {
|
||||
console.log('git', 'blame', '-fnw', '--root', `${sha}^`, '--', fileName);
|
||||
console.log('git', 'blame', '-fn', '--root', `${sha}^`, '--', fileName);
|
||||
return gitCommand(repoPath, 'blame', '-fnw', '--root', `${sha}^`, '--', fileName);
|
||||
}
|
||||
|
||||
console.log('git', 'blame', '-fnw', '--root', '--', fileName);
|
||||
return gitCommand(repoPath, 'blame', '-fnw', '--root', '--', fileName);
|
||||
console.log('git', 'blame', '-fn', '--root', '--', fileName);
|
||||
return gitCommand(repoPath, 'blame', '-fn', '--root', '--', fileName);
|
||||
// .then(s => { console.log(s); return s; })
|
||||
// .catch(ex => console.error(ex));
|
||||
}
|
||||
@@ -75,4 +75,13 @@ export default class Git {
|
||||
// .then(s => { console.log(s); return s; })
|
||||
// .catch(ex => console.error(ex));
|
||||
}
|
||||
|
||||
static getCommitMessages(fileName: string, repoPath: string) {
|
||||
fileName = Git.normalizePath(fileName, repoPath);
|
||||
|
||||
console.log('git', 'log', '--oneline', '--', fileName);
|
||||
return gitCommand(repoPath, 'log', '--oneline', '--', fileName);
|
||||
// .then(s => { console.log(s); return s; })
|
||||
// .catch(ex => console.error(ex));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user