https://github.com/34seod/git-diff-lcs
Advanced git-diff(insertions, deletions, modifications)
https://github.com/34seod/git-diff-lcs
git-diff ruby
Last synced: 2 months ago
JSON representation
Advanced git-diff(insertions, deletions, modifications)
- Host: GitHub
- URL: https://github.com/34seod/git-diff-lcs
- Owner: 34seod
- License: mit
- Created: 2021-03-05T07:24:26.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T08:27:20.000Z (almost 5 years ago)
- Last Synced: 2025-10-09T12:19:32.786Z (6 months ago)
- Topics: git-diff, ruby
- Language: Ruby
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitDiffLCS
Generally, git diff --stat does not contain modifications, so we added it to display modifications using the LCS algorithm.
## Installation
```bash
$ gem install git_diff_lcs
```
## How to use
```bash
$ git_diff_lcs shortstat [GIT_REPOSITORY or WORKING_DIRECTORY] [SRC(branch or commit)] [DEST(branch or commit)]
$ git_diff_lcs shortstat https://github.com/btpink-seo/git-diff-lcs.git test/src test/dest
$ git_diff_lcs shortstat workspace/git-diff-lcs test/src test/dest
```
## Compare with "git diff --shortstat"
```bash
$ git diff --shortstat test/src test/dest
5 files changed, 15 insertions(+), 8 deletions(-)
$ git_diff_lcs shortstat https://github.com/btpink-seo/git-diff-lcs.git test/src test/dest
5 files changed, 13 insertions(+), 6 deletions(-), 2 modifications(!), total(21)
```