https://github.com/babarot/changed-objects
Get changed objects in Git commit
https://github.com/babarot/changed-objects
git go golang
Last synced: 4 months ago
JSON representation
Get changed objects in Git commit
- Host: GitHub
- URL: https://github.com/babarot/changed-objects
- Owner: babarot
- Created: 2020-02-02T11:00:46.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T07:37:35.000Z (about 1 year ago)
- Last Synced: 2025-11-22T17:03:52.307Z (7 months ago)
- Topics: git, go, golang
- Language: Go
- Homepage:
- Size: 205 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
changed-objects
===============
Get changed objects within the commit histories by comparing between two points.
```console
Usage:
changed-objects [OPTIONS]
Application Options:
-v, --version Show version
-b, --default-branch= Specify default branch name (default: main)
-m, --merge-base= Specify a Git reference as good common ancestors as possible for a merge
--type=[added|modified|deleted] Specify the type of changed objects
--ignore= Specify a pattern to skip when showing changed objects
--group-by= Specify a pattern to make into one group when showing changed objects
--dir-exist=[true|false|all] Filter objects by state of dir existing (default: all)
Help Options:
-h, --help Show this help message
```
## Usage
```console
$ changed-objects
{"files":[{"name":"ditto.go","path":"ditto/ditto.go","type":"deleted","parent_dir":{"path":"ditto","exist":false}},{"name":"go.mod","path":"go.mod","type":"modified","parent_dir":{"path":".","exist":true}},{"name":"go.sum","path":"go.sum","type":"modified","parent_dir":{"path":".","exist":true}},{"name":"detect.go","path":"internal/detect/detect.go","type":"added","parent_dir":{"path":"internal/detect","exist":true}},{"name":"file.go","path":"internal/detect/file.go","type":"added","parent_dir":{"path":"internal/detect","exist":true}},{"name":"git.go","path":"internal/git/git.go","type":"added","parent_dir":{"path":"internal/git","exist":true}},{"name":"main.go","path":"main.go","type":"modified","parent_dir":{"path":".","exist":true}}],"dirs":[{"path":"ditto","files":[{"name":"ditto.go","path":"ditto/ditto.go","type":"deleted","parent_dir":{"path":"ditto","exist":false}}]},{"path":".","files":[{"name":"go.mod","path":"go.mod","type":"modified","parent_dir":{"path":".","exist":true}},{"name":"go.sum","path":"go.sum","type":"modified","parent_dir":{"path":".","exist":true}},{"name":"main.go","path":"main.go","type":"modified","parent_dir":{"path":".","exist":true}}]},{"path":"internal/detect","files":[{"name":"detect.go","path":"internal/detect/detect.go","type":"added","parent_dir":{"path":"internal/detect","exist":true}},{"name":"file.go","path":"internal/detect/file.go","type":"added","parent_dir":{"path":"internal/detect","exist":true}}]},{"path":"internal/git","files":[{"name":"git.go","path":"internal/git/git.go","type":"added","parent_dir":{"path":"internal/git","exist":true}}]}]}
```
## Installation
From [binaries](https://github.com/babarot/changed-objects/releases/tag/v0.3.10).
## License
MIT