gitbash 0.2.1 → 0.2.2
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 +13 -1
- package/commands/branch.sh +1 -1
- package/commands/cleanstash.sh +1 -1
- package/commands/cleanup.sh +1 -1
- package/commands/commits.sh +1 -1
- package/commands/stale.sh +1 -1
- package/commands/stashes.sh +1 -1
- package/commands/status.sh +1 -1
- package/commands/switch.sh +1 -1
- package/commands/unstash.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,13 @@ Interactive git utilities for bash with fzf-powered menus.
|
|
|
10
10
|
npm i -g gitbash
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
### Options
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
gitbash --help # Show help
|
|
17
|
+
gitbash --version # Show version
|
|
18
|
+
gitbash --init # Print shell init code
|
|
19
|
+
```
|
|
14
20
|
|
|
15
21
|
### Shell Aliases
|
|
16
22
|
|
|
@@ -56,6 +62,12 @@ brew install bat # File preview with syntax highlighting
|
|
|
56
62
|
|
|
57
63
|
Interactive menu for branch operations (create/switch/update).
|
|
58
64
|
|
|
65
|
+
```bash
|
|
66
|
+
branch # Interactive menu
|
|
67
|
+
branch -h # Show help
|
|
68
|
+
branch --version # Show version
|
|
69
|
+
```
|
|
70
|
+
|
|
59
71
|
### create
|
|
60
72
|
|
|
61
73
|
```bash
|
package/commands/branch.sh
CHANGED
package/commands/cleanstash.sh
CHANGED
package/commands/cleanup.sh
CHANGED
package/commands/commits.sh
CHANGED
package/commands/stale.sh
CHANGED
|
@@ -341,7 +341,7 @@ Showing $stale_count stale branches (older than 3 months)" \
|
|
|
341
341
|
fi
|
|
342
342
|
' \
|
|
343
343
|
--preview-window=right:35%
|
|
344
|
-
)
|
|
344
|
+
) || true
|
|
345
345
|
|
|
346
346
|
# Cleanup temp files
|
|
347
347
|
rm -f "$stale_file" "$all_file" "$state_file" "$toggle_script" "$prompt_script" "$header_script"
|
package/commands/stashes.sh
CHANGED
package/commands/status.sh
CHANGED
package/commands/switch.sh
CHANGED
|
@@ -128,7 +128,7 @@ EOF
|
|
|
128
128
|
--preview="branch=\$(echo {} | sed 's/^[^:]*: //'); if [[ \"\$branch\" == *───* ]]; then echo 'Spacer - not selectable'; else git log --color=always -n 1 --format='%C(bold cyan)Author:%C(reset) %an%n%C(bold cyan)Date:%C(reset) %ar (%ad)%n%C(bold cyan)Message:%C(reset) %s%n' --date=format:'%Y-%m-%d %H:%M' \"\$branch\" 2>/dev/null && echo && git log --oneline --color=always -n 10 \"\$branch\" 2>/dev/null; fi" \
|
|
129
129
|
--preview-window=right:50% \
|
|
130
130
|
--header="Current: $current_branch"
|
|
131
|
-
)
|
|
131
|
+
) || true
|
|
132
132
|
|
|
133
133
|
# -----------------------------
|
|
134
134
|
# 4. Handle selection
|
package/commands/unstash.sh
CHANGED