@pavlovic265/gt 0.58.7 → 0.58.8
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/README.md +51 -15
- package/bin/gt-darwin-amd64 +0 -0
- package/bin/gt-darwin-arm64 +0 -0
- package/bin/gt-linux-amd64 +0 -0
- package/bin/gt-linux-arm64 +0 -0
- package/bin/gt-windows-amd64.exe +0 -0
- package/bin/gt-windows-arm64.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- **Branch Stack Navigation**: Seamlessly move up and down your branch hierarchy
|
|
20
20
|
- **Stack Management**: Restack branches to keep your branch hierarchy up to date
|
|
21
21
|
- **Automated Git Workflows**: Simplify rebasing, syncing, and cleaning up merged branches
|
|
22
|
-
- **Enhanced Pull Request Management**: Create, list,
|
|
22
|
+
- **Enhanced Pull Request Management**: Create, list, and merge PRs with CI/CD status indicators
|
|
23
23
|
- **Multi-Platform Support**: Works with GitHub and GitLab
|
|
24
24
|
- **Account Management**: Add, edit, list, and remove multiple accounts with full profile information
|
|
25
25
|
- **Authentication Management**: Easy account switching and token management
|
|
@@ -143,7 +143,8 @@ This means you can use gt as a drop-in replacement for git while getting the ben
|
|
|
143
143
|
| `checkout` | `co` | Checkout/search and switch to branch | `gt checkout main` |
|
|
144
144
|
| `delete` | `dl` | Delete a branch | `gt delete old-branch` |
|
|
145
145
|
| `clean` | `cl` | Clean merged branches (excludes protected) | `gt clean` |
|
|
146
|
-
| `move` | `mv` | Rebase current branch | `gt move` |
|
|
146
|
+
| `move` | `mv` | Rebase current branch onto another branch | `gt move` |
|
|
147
|
+
| `track` | `tr` | Set parent branch relationship (no rebase) | `gt track` |
|
|
147
148
|
|
|
148
149
|
### Navigation
|
|
149
150
|
|
|
@@ -176,21 +177,17 @@ This means you can use gt as a drop-in replacement for git while getting the ben
|
|
|
176
177
|
|---------|-------|-------------|---------|
|
|
177
178
|
| `pull_request create` | `pr c` | Create a new pull request | `gt pr c` |
|
|
178
179
|
| `pull_request create -d` | `pr c -d` | Create a draft pull request | `gt pr c -d` |
|
|
179
|
-
| `pull_request list` | `pr li` | List all pull requests with CI/CD status
|
|
180
|
+
| `pull_request list` | `pr li` | List all pull requests with CI/CD status | `gt pr li` |
|
|
180
181
|
|
|
181
182
|
**Pull Request List Features:**
|
|
182
183
|
- **CI/CD Status Indicators**: View build status at a glance
|
|
183
184
|
- `✓` (Green) - Success
|
|
184
185
|
- `✗` (Red) - Failure/Error
|
|
185
186
|
- `★` (Yellow) - Pending/In Progress
|
|
186
|
-
- **Mergeable Status**: See merge conflicts status
|
|
187
|
-
- `●` (Green) - Mergeable
|
|
188
|
-
- `●` (Red) - Has conflicts
|
|
189
187
|
- **Interactive Actions**:
|
|
190
188
|
- Press `Enter` to open PR in browser
|
|
191
189
|
- Press `y` to yank (copy) PR URL to clipboard
|
|
192
190
|
- Press `m` to merge the pull request
|
|
193
|
-
- Press `u` to update PR branch with base branch changes
|
|
194
191
|
|
|
195
192
|
### Stack Management
|
|
196
193
|
|
|
@@ -251,7 +248,7 @@ gt account add
|
|
|
251
248
|
```
|
|
252
249
|
|
|
253
250
|
The account management commands allow you to:
|
|
254
|
-
- **Add accounts**: Interactively add GitHub/GitLab accounts with username, email, full name, platform, and
|
|
251
|
+
- **Add accounts**: Interactively add GitHub/GitLab accounts with username, email, full name, platform, API token, and GPG signing key for commit signing
|
|
255
252
|
- **List accounts**: View all configured accounts with their details
|
|
256
253
|
- **Edit accounts**: Modify existing account information
|
|
257
254
|
- **Remove accounts**: Delete accounts you no longer need
|
|
@@ -266,17 +263,20 @@ accounts:
|
|
|
266
263
|
name: "User One"
|
|
267
264
|
token: "ghp_..."
|
|
268
265
|
platform: "GitHub"
|
|
266
|
+
signingkey: "ABCD1234EFGH5678"
|
|
269
267
|
- user: "username2"
|
|
270
268
|
email: "user2@example.com"
|
|
271
269
|
name: "User Two"
|
|
272
270
|
token: "glpat-..."
|
|
273
271
|
platform: "GitLab"
|
|
272
|
+
signingkey: "1234ABCD5678EFGH"
|
|
274
273
|
active_account: # Automatically managed by auth commands
|
|
275
274
|
user: "username1"
|
|
276
275
|
email: "user1@example.com"
|
|
277
276
|
name: "User One"
|
|
278
277
|
token: "ghp_..."
|
|
279
278
|
platform: "GitHub"
|
|
279
|
+
signingkey: "ABCD1234EFGH5678"
|
|
280
280
|
theme:
|
|
281
281
|
type: "dark"
|
|
282
282
|
version:
|
|
@@ -400,6 +400,45 @@ gt down # Move to: feature/auth-system
|
|
|
400
400
|
gt down # Move to: feature/user-auth
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
+
### Branch Tracking
|
|
404
|
+
```bash
|
|
405
|
+
# Interactively select a parent branch to track (no rebase)
|
|
406
|
+
gt track
|
|
407
|
+
# or use the alias
|
|
408
|
+
gt tr
|
|
409
|
+
|
|
410
|
+
# This will:
|
|
411
|
+
# 1. Display an interactive list of all branches (excluding current)
|
|
412
|
+
# 2. Allow searching/filtering branches by typing
|
|
413
|
+
# 3. Select a parent branch with Enter
|
|
414
|
+
# 4. Store parent relationship in git config (gt.branch.<branch>.parent)
|
|
415
|
+
# Note: This does NOT rebase, only sets the parent relationship
|
|
416
|
+
|
|
417
|
+
# Example workflow:
|
|
418
|
+
# You're on 'feature/new-feature' and want to track 'develop' as parent
|
|
419
|
+
gt track
|
|
420
|
+
# Search for 'develop', press Enter to select
|
|
421
|
+
# ✓ successfully tracking feature/new-feature
|
|
422
|
+
|
|
423
|
+
# Manual parent configuration (alternative to gt track):
|
|
424
|
+
# You can manually set the parent branch in git config
|
|
425
|
+
git config --local gt.branch.<branch-name>.parent <parent-branch>
|
|
426
|
+
|
|
427
|
+
# Example: Set 'main' as parent of current branch
|
|
428
|
+
git config --local gt.branch.$(git rev-parse --abbrev-ref HEAD).parent main
|
|
429
|
+
|
|
430
|
+
# View parent relationship
|
|
431
|
+
git config --local --get gt.branch.<branch-name>.parent
|
|
432
|
+
|
|
433
|
+
# Remove parent relationship
|
|
434
|
+
git config --local --unset gt.branch.<branch-name>.parent
|
|
435
|
+
|
|
436
|
+
# The parent relationship is used by:
|
|
437
|
+
# - gt up/down: Navigate branch hierarchy
|
|
438
|
+
# - gt stack restack: Rebase child branches onto their parents
|
|
439
|
+
# - Branch organization and visualization
|
|
440
|
+
```
|
|
441
|
+
|
|
403
442
|
### Multi-Account Management
|
|
404
443
|
```bash
|
|
405
444
|
# Add a new account
|
|
@@ -410,6 +449,7 @@ gt account add
|
|
|
410
449
|
# - Full name
|
|
411
450
|
# - Platform (GitHub/GitLab)
|
|
412
451
|
# - API token
|
|
452
|
+
# - GPG signing key for commit signing (optional)
|
|
413
453
|
|
|
414
454
|
# List all configured accounts
|
|
415
455
|
gt account list
|
|
@@ -494,15 +534,14 @@ gt s rs
|
|
|
494
534
|
gt pr li
|
|
495
535
|
|
|
496
536
|
# Output shows:
|
|
497
|
-
# ✓ 123: Add authentication module
|
|
498
|
-
# ✗ 124: Fix bug in parser
|
|
499
|
-
# ★ 125: Update dependencies
|
|
537
|
+
# ✓ 123: Add authentication module (CI passed)
|
|
538
|
+
# ✗ 124: Fix bug in parser (CI failed)
|
|
539
|
+
# ★ 125: Update dependencies (CI pending)
|
|
500
540
|
|
|
501
541
|
# Interactive actions in the PR list:
|
|
502
542
|
# - Enter: Open selected PR in browser
|
|
503
543
|
# - y: Copy PR URL to clipboard
|
|
504
544
|
# - m: Merge the selected PR
|
|
505
|
-
# - u: Update PR branch with latest base branch changes
|
|
506
545
|
# - /: Search/filter PRs
|
|
507
546
|
# - Esc/q: Exit
|
|
508
547
|
|
|
@@ -510,19 +549,16 @@ gt pr li
|
|
|
510
549
|
gt pr li
|
|
511
550
|
# Press 'y' on a PR to copy its URL for sharing
|
|
512
551
|
# Press 'm' on a PR to merge it directly from the terminal
|
|
513
|
-
# Press 'u' on a PR to update it with the latest changes from base
|
|
514
552
|
```
|
|
515
553
|
|
|
516
554
|
## 🚧 Planned Features
|
|
517
555
|
|
|
518
|
-
- [⚙️] **Branch Tracking** — Interactive branch selection to rebase current branch onto a selected branch with `gt track` command.
|
|
519
556
|
- [ ] **Branch Syncing** — Seamlessly synchronize local and remote branches with intelligent conflict handling.
|
|
520
557
|
- [ ] **Change Submission** — Streamlined `submit` command for creating pull requests or submitting changes for review.
|
|
521
558
|
- [ ] **Advanced Branch Visualization** — Enhanced visualization of branch structures and relationships for easier navigation.
|
|
522
559
|
- [ ] **Multi-Platform Git Integration** — Support for additional Git platforms beyond GitHub (e.g., GitLab, Bitbucket).
|
|
523
560
|
- [ ] **Theme Customization** — Flexible theme settings to personalize the CLI experience.
|
|
524
561
|
- [ ] **Automated GitHub Setup** — One-command configuration for GitHub authentication, commit signing, tokens, and SSH keys.
|
|
525
|
-
- [x] **Git Config Profiles** — Dynamic `.gitconfig` management tied to directories using `includeIf` (implemented via `gt account attach`).
|
|
526
562
|
- [ ] **User-Aware Repository Checkout** — Automatically clone and manage repositories based on the active user profile.
|
|
527
563
|
|
|
528
564
|
|
package/bin/gt-darwin-amd64
CHANGED
|
Binary file
|
package/bin/gt-darwin-arm64
CHANGED
|
Binary file
|
package/bin/gt-linux-amd64
CHANGED
|
Binary file
|
package/bin/gt-linux-arm64
CHANGED
|
Binary file
|
package/bin/gt-windows-amd64.exe
CHANGED
|
Binary file
|
package/bin/gt-windows-arm64.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED