Skip to content

Commit

Permalink
adding source and dest prefix regardless user's noprefix config
Browse files Browse the repository at this point in the history
  • Loading branch information
redhoyasa authored and jmatias committed Feb 3, 2023
1 parent 7abe34d commit 5ee48f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ Talisman CLI tool `talisman` also comes with the capability to provide detailed

* `talisman --scanWithHtml`

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:
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:

* `python -m SimpleHTTPServer <port> (eg: 8000)`

Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To send in a pull request

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

Expand Down
2 changes: 1 addition & 1 deletion gitrepo/gitrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func RepoLocatedAt(path string) GitRepo {

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

0 comments on commit 5ee48f7

Please sign in to comment.