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 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
- Run `gitbash --help` for more options.
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
@@ -155,7 +155,7 @@ EOF
155
155
  --header="What would you like to do?" \
156
156
  --no-multi \
157
157
  --bind=enter:accept
158
- )
158
+ ) || true
159
159
 
160
160
  # ESC or Ctrl-C
161
161
  if [[ -z "$selection" ]]; then
@@ -124,7 +124,7 @@ EOF
124
124
  echo "No preview";
125
125
  fi
126
126
  '
127
- )
127
+ ) || true
128
128
 
129
129
  # ESC or Ctrl-C
130
130
  if [[ -z "$selection" ]]; then
@@ -352,7 +352,7 @@ Found $total_count branches ($preselect_count pre-selected for deletion)" \
352
352
  ' \
353
353
  --preview-window=right:35% \
354
354
  --bind "load:$toggle_sequence"
355
- )
355
+ ) || true
356
356
 
357
357
  # Cleanup temp files
358
358
  rm -f "$branch_file" "$preselect_file"
@@ -138,7 +138,7 @@ Showing last $count commits" \
138
138
  fi
139
139
  ' \
140
140
  --preview-window=right:50%
141
- )
141
+ ) || true
142
142
 
143
143
  # Cleanup temp file
144
144
  rm -f "$commit_file"
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"
@@ -154,7 +154,7 @@ EOF
154
154
  --header="What would you like to do?" \
155
155
  --no-multi \
156
156
  --bind=enter:accept
157
- )
157
+ ) || true
158
158
 
159
159
  # ESC or Ctrl-C
160
160
  if [[ -z "$selection" ]]; then
@@ -168,7 +168,7 @@ EOF
168
168
  fi
169
169
  ' \
170
170
  --preview-window=right:60%
171
- )
171
+ ) || true
172
172
 
173
173
  # Parse the key pressed and the selected files
174
174
  local key_pressed
@@ -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
@@ -127,7 +127,7 @@ EOF
127
127
  echo "No preview";
128
128
  fi
129
129
  '
130
- )
130
+ ) || true
131
131
 
132
132
  # ESC or Ctrl-C
133
133
  if [[ -z "$selection" ]]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitbash",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Opinionated git utilities for bash with fzf-powered menus",
5
5
  "author": "jaggli",
6
6
  "license": "MIT",