Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fwkoch/gitproj-diff
Easy links for your git project diffs!
https://github.com/fwkoch/gitproj-diff
Last synced: about 2 months ago
JSON representation
Easy links for your git project diffs!
- Host: GitHub
- URL: https://github.com/fwkoch/gitproj-diff
- Owner: fwkoch
- License: mit
- Created: 2017-10-16T18:53:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T19:51:14.000Z (about 7 years ago)
- Last Synced: 2024-01-09T08:44:25.760Z (12 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitproj-diff
Easy links for your git project diffs!
## Purpose
[git-project](https://github.com/aranzgeo/git-project) enables smooth project
and sub-repository management when all component repositories are rapidly changing.
Unfortunately, when sub-repositories change, this only shows up in the parent repo
as a one line diff with the old and new commit references.This chrome extension turns those one line diffs in github into links that
take you directly to the compare view in the sub-repo.## Installation
This extension may be installed as an unpacked extension in developer mode:
1. Navigate to `chrome://extensions`
2. Check "Developer mode" box
3. Click "Load unpacked extension..."
4. Navigate to and select the `gitproj-diff/` folderYou may also need to set up aliases. This is a dictionary of library nickname keys
and actual library name values.For example, if your .gitproj file looks like:
```
version: 0.1.0
repos:
MSR deps/my-sub-repo [email protected]:org/my-sub-repo.git
states:
MSR dev bea52b0fde4a896139b1526b457837b07e6dd987
```you need to set up:
```javascript
...
var aliases = {
"MSR": "my-sub-repo",
}
...
```## Limitations
- All repositories and sub-repositories must be under the same user/org.
- Changes to github HTML will most likely break this extension.
- The Javascript code isn't exceptionally beautiful...## Acknowledgments
This extension was originally based on a template created by Tom Maxwell,
available [here](https://9to5google.com/2015/06/14/how-to-make-a-chrome-extensions/).