resulgit 1.0.18 → 1.0.20

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 +10 -61
  2. package/package.json +1 -1
  3. package/resulgit.js +451 -1307
package/README.md CHANGED
@@ -37,24 +37,18 @@ resulgit <command> [options]
37
37
  - `resulgit repo head --repo <id> [--branch <name>]` - Get HEAD commit
38
38
  - `resulgit repo select` - Interactive repository selection
39
39
 
40
- ### Clone & Initialize
40
+ ### Clone & Workspace
41
41
 
42
- - `resulgit init <name>` - Initialize a new repository (creates folder and remote repo automatically)
43
- - `resulgit init <name> --dir <path>` - Initialize in a specific directory
44
- - `resulgit clone <name>` - Clone a repository by name
45
- - `resulgit clone --repo <name> --branch <branch>` - Clone with specific branch
42
+ - `resulgit clone --repo <id> --branch <name> [--dest <dir>]` - Clone a repository
46
43
  - `resulgit workspace set-root --path <dir>` - Set workspace root directory
47
44
 
48
45
  ### Branch Operations
49
46
 
50
47
  - `resulgit branch list` - List all branches
51
- - `resulgit branch create <name>` - Create new branch (simple)
52
- - `resulgit branch create <name> --base <branch>` - Create from specific base
53
- - `resulgit branch delete <name>` - Delete a branch
54
- - `resulgit switch <branch>` - Switch to a branch
55
- - `resulgit switch -c <branch>` - Create and switch to new branch
56
- - `resulgit checkout <branch>` - Checkout a branch
57
- - `resulgit merge <branch>` - Merge a branch into current
48
+ - `resulgit branch create --name <branch> [--base <branch>]` - Create new branch
49
+ - `resulgit branch delete --name <branch>` - Delete a branch
50
+ - `resulgit switch --branch <name>` - Switch to a branch
51
+ - `resulgit checkout --branch <name>` - Checkout a branch
58
52
 
59
53
  ### File Operations
60
54
 
@@ -68,8 +62,6 @@ resulgit <command> [options]
68
62
  ### Version Control
69
63
 
70
64
  - `resulgit commit --message <text>` - Create a commit
71
- - `resulgit commit -m <text>` - Short form (same as above)
72
- - `resulgit commit -a -m <text>` - Add all changes and commit
73
65
  - `resulgit push` - Push changes to remote
74
66
  - `resulgit pull` - Pull changes from remote
75
67
  - `resulgit merge --branch <name> [--squash] [--no-push]` - Merge branches
@@ -98,29 +90,11 @@ resulgit <command> [options]
98
90
  - `resulgit pr create --title <title> [--source <branch>] [--target <branch>]` - Create pull request
99
91
  - `resulgit pr merge --id <id>` - Merge a pull request
100
92
 
101
- ### Information & Inspection
93
+ ### Information
102
94
 
103
95
  - `resulgit current` - Show current repository and branch
104
96
  - `resulgit head` - Show HEAD commit ID
105
97
  - `resulgit show --commit <id>` - Show commit details
106
- - `resulgit log [--branch <name>] [--max <N>] [--oneline] [--stats]` - Show commit history with visualization
107
- - `resulgit blame --path <file>` - Show line-by-line authorship information
108
- - `resulgit grep --pattern <pattern> [--ignore-case]` - Search for patterns in repository
109
- - `resulgit ls-files` - List all tracked files
110
- - `resulgit reflog` - Show reference log history
111
- - `resulgit cat-file --type <type> --object <id> [--path <file>]` - Display file/commit contents
112
- - `resulgit rev-parse --rev <ref>` - Parse revision names to commit IDs
113
- - `resulgit describe [--commit <id>]` - Describe a commit with nearest tag
114
- - `resulgit shortlog [--branch <name>] [--max <N>]` - Summarize commit log by author
115
-
116
- ### Git Hooks
117
-
118
- - `resulgit hook list` - List installed hooks
119
- - `resulgit hook install --name <hook> [--script <code>] [--sample]` - Install a hook
120
- - `resulgit hook remove --name <hook>` - Remove a hook
121
- - `resulgit hook show --name <hook>` - Show hook content
122
-
123
- **Available hooks:** `pre-commit`, `post-commit`, `pre-push`, `post-push`, `pre-merge`, `post-merge`, `pre-checkout`, `post-checkout`
124
98
 
125
99
  ## Global Options
126
100
 
@@ -138,19 +112,15 @@ resulgit auth login --email user@example.com --password mypassword
138
112
  # List repositories
139
113
  resulgit repo list
140
114
 
141
- # Initialize a new repository (creates folder + remote repo automatically)
142
- resulgit init MyProject
143
-
144
- # Or clone an existing repository
145
- resulgit clone MyProject
115
+ # Clone a repository
116
+ resulgit clone --repo 123 --branch main
146
117
 
147
118
  # Check status
148
- cd MyProject
149
119
  resulgit status
150
120
 
151
121
  # Create and commit changes
152
122
  resulgit add file.txt --content "Hello World"
153
- resulgit commit -m "Add file.txt"
123
+ resulgit commit --message "Add file.txt"
154
124
  resulgit push
155
125
 
156
126
  # Create a branch
@@ -158,27 +128,6 @@ resulgit branch create --name feature-branch
158
128
 
159
129
  # Merge branches
160
130
  resulgit merge --branch feature-branch
161
-
162
- # View commit history with graph
163
- resulgit log --max 20
164
-
165
- # View commit history in one line
166
- resulgit log --oneline
167
-
168
- # View commit statistics
169
- resulgit log --stats
170
-
171
- # Show line-by-line authorship
172
- resulgit blame --path src/index.js
173
-
174
- # Search in repository
175
- resulgit grep --pattern "TODO"
176
-
177
- # List tracked files
178
- resulgit ls-files
179
-
180
- # Install a pre-commit hook
181
- resulgit hook install --name pre-commit --sample
182
131
  ```
183
132
 
184
133
  ## Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resulgit",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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": {