resulgit 1.0.1 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +40 -1
  2. package/package.json +14 -7
  3. package/resulgit.js +1440 -370
package/README.md CHANGED
@@ -90,11 +90,29 @@ resulgit <command> [options]
90
90
  - `resulgit pr create --title <title> [--source <branch>] [--target <branch>]` - Create pull request
91
91
  - `resulgit pr merge --id <id>` - Merge a pull request
92
92
 
93
- ### Information
93
+ ### Information & Inspection
94
94
 
95
95
  - `resulgit current` - Show current repository and branch
96
96
  - `resulgit head` - Show HEAD commit ID
97
97
  - `resulgit show --commit <id>` - Show commit details
98
+ - `resulgit log [--branch <name>] [--max <N>] [--oneline] [--stats]` - Show commit history with visualization
99
+ - `resulgit blame --path <file>` - Show line-by-line authorship information
100
+ - `resulgit grep --pattern <pattern> [--ignore-case]` - Search for patterns in repository
101
+ - `resulgit ls-files` - List all tracked files
102
+ - `resulgit reflog` - Show reference log history
103
+ - `resulgit cat-file --type <type> --object <id> [--path <file>]` - Display file/commit contents
104
+ - `resulgit rev-parse --rev <ref>` - Parse revision names to commit IDs
105
+ - `resulgit describe [--commit <id>]` - Describe a commit with nearest tag
106
+ - `resulgit shortlog [--branch <name>] [--max <N>]` - Summarize commit log by author
107
+
108
+ ### Git Hooks
109
+
110
+ - `resulgit hook list` - List installed hooks
111
+ - `resulgit hook install --name <hook> [--script <code>] [--sample]` - Install a hook
112
+ - `resulgit hook remove --name <hook>` - Remove a hook
113
+ - `resulgit hook show --name <hook>` - Show hook content
114
+
115
+ **Available hooks:** `pre-commit`, `post-commit`, `pre-push`, `post-push`, `pre-merge`, `post-merge`, `pre-checkout`, `post-checkout`
98
116
 
99
117
  ## Global Options
100
118
 
@@ -128,6 +146,27 @@ resulgit branch create --name feature-branch
128
146
 
129
147
  # Merge branches
130
148
  resulgit merge --branch feature-branch
149
+
150
+ # View commit history with graph
151
+ resulgit log --max 20
152
+
153
+ # View commit history in one line
154
+ resulgit log --oneline
155
+
156
+ # View commit statistics
157
+ resulgit log --stats
158
+
159
+ # Show line-by-line authorship
160
+ resulgit blame --path src/index.js
161
+
162
+ # Search in repository
163
+ resulgit grep --pattern "TODO"
164
+
165
+ # List tracked files
166
+ resulgit ls-files
167
+
168
+ # Install a pre-commit hook
169
+ resulgit hook install --name pre-commit --sample
131
170
  ```
132
171
 
133
172
  ## Configuration
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "resulgit",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A powerful CLI tool for version control system operations - clone, commit, push, pull, merge, branch management, and more",
5
5
  "main": "resulgit.js",
6
6
  "bin": {
7
- "resulgit": "./resulgit.js"
7
+ "resulgit": "resulgit.js"
8
8
  },
9
9
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
10
+ "test": "jest",
11
+ "test:watch": "jest --watch",
12
+ "test:coverage": "jest --coverage"
11
13
  },
12
14
  "keywords": [
13
15
  "git",
@@ -21,18 +23,23 @@
21
23
  "pull-request",
22
24
  "stash"
23
25
  ],
24
- "author": "",
26
+ "author": "resulticks <int.resulticks@gmail.com>",
25
27
  "license": "MIT",
26
28
  "engines": {
27
29
  "node": ">=14.0.0"
28
30
  },
29
31
  "repository": {
30
32
  "type": "git",
31
- "url": ""
33
+ "url": "git+https://github.com/resulticks/resulgit.git"
32
34
  },
33
35
  "files": [
34
36
  "resulgit.js",
35
37
  "README.md"
36
- ]
38
+ ],
39
+ "dependencies": {
40
+ "ora": "^5.4.1"
41
+ },
42
+ "devDependencies": {
43
+ "jest": "^29.7.0"
44
+ }
37
45
  }
38
-