Skip to content

Commit 5ee48f7

Browse files
redhoyasajmatias
authored andcommitted
adding source and dest prefix regardless user's noprefix config
1 parent 7abe34d commit 5ee48f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ Talisman CLI tool `talisman` also comes with the capability to provide detailed
518518
519519
* `talisman --scanWithHtml`
520520
521-
This will scan the repository and create a folder `talisman_html_report` under the the scanned repository. We need to start an HTTP server inside this repository to access the report.Below is a recommended approach to start a HTTP server:
521+
This will scan the repository and create a folder `talisman_html_report` under the scanned repository. We need to start an HTTP server inside this repository to access the report.Below is a recommended approach to start a HTTP server:
522522
523523
* `python -m SimpleHTTPServer <port> (eg: 8000)`
524524

contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To send in a pull request
3838

3939
1. Fork the repo.
4040
2. Create a new feature branch based off the master branch.
41-
3. Provide the commit message with the the issue number and a proper description.
41+
3. Provide the commit message with the issue number and a proper description.
4242
4. Ensure that all the tests pass.
4343
5. Submit the pull request.
4444

gitrepo/gitrepo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func RepoLocatedAt(path string) GitRepo {
4040

4141
// GetDiffForStagedFiles gets all the staged files and collects the diff section in each file
4242
func (repo GitRepo) GetDiffForStagedFiles() []Addition {
43-
stagedContent := repo.executeRepoCommand("git", "diff", "--staged")
43+
stagedContent := repo.executeRepoCommand("git", "diff", "--staged", "--src-prefix=a/", "--dst-prefix=b/")
4444
content := strings.TrimSpace(string(stagedContent))
4545
lines := strings.Split(content, "\n")
4646
result := make([]Addition, 0)

0 commit comments

Comments
 (0)