git-tm 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +85 -80
- package/package.json +45 -46
- package/src/cli.js +235 -234
- package/src/git.js +212 -212
- package/src/public/app.js +960 -960
- package/src/public/images/logo.svg +8 -8
- package/src/public/index.html +88 -88
- package/src/public/styles.css +1259 -1259
- package/src/server.js +102 -102
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 vHackBots
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 vHackBots
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,80 +1,85 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<img src="
|
|
3
|
-
|
|
4
|
-
<h1>Git Time Machine</h1>
|
|
5
|
-
|
|
6
|
-
<br/>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
An elegant visual Git history explorer with real-time commit comparison capabilities.
|
|
10
|
-
|
|
11
|
-
Built for [FOSS Hack 2025](https://fossunited.org/fosshack/2025), Git Time Machine empowers developers to travel through their codebase history, debug with ease, and collaborate seamlessly. Whether you're auditing changes, resolving conflicts, or understanding project growth, this tool has you covered—all while staying true to the spirit of free and open-source software.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="src/public/images/logo.svg" width="100" height="100">
|
|
3
|
+
|
|
4
|
+
<h1>Git Time Machine</h1>
|
|
5
|
+
|
|
6
|
+
<br/>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
An elegant visual Git history explorer with real-time commit comparison capabilities.
|
|
10
|
+
|
|
11
|
+
Built for [FOSS Hack 2025](https://fossunited.org/fosshack/2025), Git Time Machine empowers developers to travel through their codebase history, debug with ease, and collaborate seamlessly. Whether you're auditing changes, resolving conflicts, or understanding project growth, this tool has you covered—all while staying true to the spirit of free and open-source software.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
### Core Functionality
|
|
18
|
+
|
|
19
|
+
- **Interactive Branch Navigation**:
|
|
20
|
+
- Visual branch list with color coding
|
|
21
|
+
- Support for both local and remote branches
|
|
22
|
+
- Easy branch switching and tracking
|
|
23
|
+
|
|
24
|
+
- **Rich Commit History**:
|
|
25
|
+
- Beautiful commit timeline visualization
|
|
26
|
+
- Emoji support for conventional commit messages
|
|
27
|
+
- Author avatars with GitHub profile integration
|
|
28
|
+
- Detailed commit metadata (author, date, hash)
|
|
29
|
+
|
|
30
|
+
- **Advanced Diff Viewer**:
|
|
31
|
+
- Side-by-side commit comparison
|
|
32
|
+
- Syntax-highlighted code diffs
|
|
33
|
+
- File status indicators (Added, Modified, Deleted)
|
|
34
|
+
- Collapsible diff sections by file
|
|
35
|
+
- Line number tracking for both versions
|
|
36
|
+
- Binary file detection
|
|
37
|
+
|
|
38
|
+
- **User Interface**:
|
|
39
|
+
- Modern glass-morphism design
|
|
40
|
+
- Responsive layout for all screen sizes
|
|
41
|
+
- Smooth animations and transitions
|
|
42
|
+
- Toast notifications for user feedback
|
|
43
|
+
- Collapsible comparison panel
|
|
44
|
+
|
|
45
|
+
### Technical Features
|
|
46
|
+
|
|
47
|
+
- **Git Integration**:
|
|
48
|
+
- Full Git repository support
|
|
49
|
+
- Remote repository synchronization
|
|
50
|
+
- Branch checkout capabilities
|
|
51
|
+
- Comprehensive commit history
|
|
52
|
+
|
|
53
|
+
- **Performance**:
|
|
54
|
+
- Lazy loading of commit data
|
|
55
|
+
- Efficient diff parsing and rendering
|
|
56
|
+
- Optimized avatar loading with fallbacks
|
|
57
|
+
- Minimal memory footprint
|
|
58
|
+
|
|
59
|
+
### Installation
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install -g git-tm
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
1. **Open a Project**:
|
|
68
|
+
- Clone a Git repository or open an existing project directory
|
|
69
|
+
- Ensure that the project has a valid Git history
|
|
70
|
+
|
|
71
|
+
2. **Run the cli command**:
|
|
72
|
+
- Run the following command in the terminal:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git-tm .
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- This will start the Git Time Machine server and open the web interface in your default browser
|
|
79
|
+
|
|
80
|
+
3. **Explore the History**:
|
|
81
|
+
- Navigate through the commit history using the timeline
|
|
82
|
+
- Compare commits by selecting two different versions
|
|
83
|
+
- View detailed commit metadata and file changes
|
|
84
|
+
- Switch branches and track changes in real-time
|
|
85
|
+
- Enjoy the seamless Git experience!
|
package/package.json
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "git-tm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "An elegant visual Git history explorer with real-time commit comparison capabilities",
|
|
5
|
-
"main": "src/cli.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"git-tm": "src/cli.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "node src/cli.js"
|
|
11
|
-
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"boxen": "^8.0.1",
|
|
15
|
-
"center-align": "^1.0.1",
|
|
16
|
-
"chalk": "^4.1.2",
|
|
17
|
-
"commander": "^11.1.0",
|
|
18
|
-
"express": "^4.18.2",
|
|
19
|
-
"figlet": "^1.6.0",
|
|
20
|
-
"gradient-string": "^3.0.0",
|
|
21
|
-
"open": "^10.0.3",
|
|
22
|
-
"ora": "^7.0.1",
|
|
23
|
-
"simple-git": "^3.22.0"
|
|
24
|
-
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"git-
|
|
32
|
-
"git
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "git-tm",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "An elegant visual Git history explorer with real-time commit comparison capabilities",
|
|
5
|
+
"main": "src/cli.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"git-tm": "src/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node src/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"boxen": "^8.0.1",
|
|
15
|
+
"center-align": "^1.0.1",
|
|
16
|
+
"chalk": "^4.1.2",
|
|
17
|
+
"commander": "^11.1.0",
|
|
18
|
+
"express": "^4.18.2",
|
|
19
|
+
"figlet": "^1.6.0",
|
|
20
|
+
"gradient-string": "^3.0.0",
|
|
21
|
+
"open": "^10.0.3",
|
|
22
|
+
"ora": "^7.0.1",
|
|
23
|
+
"simple-git": "^3.22.0"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/vHackBots/Git-Time-Machine.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"git-tm",
|
|
31
|
+
"git-time-machine",
|
|
32
|
+
"git",
|
|
33
|
+
"time",
|
|
34
|
+
"commits",
|
|
35
|
+
"commit-history",
|
|
36
|
+
"source-control",
|
|
37
|
+
"github"
|
|
38
|
+
],
|
|
39
|
+
"author": "nandhu-44",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/vHackBots/Git-Time-Machine/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/vHackBots/Git-Time-Machine#readme"
|
|
45
|
+
}
|