@@ -15,7 +15,6 @@ function gitnow -d "Gitnow: Speed up your Git workflow. 🐠" -a xversion
15
15
echo " GitNow version $gitnow_version "
16
16
else
17
17
__gitnow_manual | command less -r
18
- commandline -f repaint
19
18
end
20
19
end
21
20
@@ -26,7 +25,6 @@ function state -d "Gitnow: Show the working tree status in compact way"
26
25
end
27
26
28
27
command git status -sb
29
- commandline -f repaint
30
28
end
31
29
32
30
function stage -d " Gitnow: Stage files in current working directory"
@@ -43,7 +41,6 @@ function stage -d "Gitnow: Stage files in current working directory"
43
41
end
44
42
45
43
command git add $opts
46
- commandline -f repaint
47
44
end
48
45
49
46
function unstage -d " Gitnow: Unstage files in current working directory"
@@ -60,7 +57,6 @@ function unstage -d "Gitnow: Unstage files in current working directory"
60
57
end
61
58
62
59
command git reset $opts
63
- commandline -f repaint
64
60
end
65
61
66
62
function show -d " Gitnow: Show commit detail objects"
@@ -77,7 +73,6 @@ function show -d "Gitnow: Show commit detail objects"
77
73
command git show --compact-summary --patch HEAD
78
74
end
79
75
80
- commandline -f repaint
81
76
end
82
77
83
78
function untracked -d " Gitnow: Check for untracked files and directories on current working directory"
@@ -88,7 +83,6 @@ function untracked -d "Gitnow: Check for untracked files and directories on curr
88
83
89
84
command git clean --dry-run -d
90
85
91
- commandline -f repaint
92
86
end
93
87
94
88
function commit -d " Gitnow: Commit changes to the repository"
@@ -105,7 +99,6 @@ function commit -d "Gitnow: Commit changes to the repository"
105
99
command git commit
106
100
end
107
101
108
- commandline -f repaint
109
102
end
110
103
111
104
function commit-all -d " Gitnow: Add and commit all changes to the repository"
@@ -161,7 +154,6 @@ function pull -d "Gitnow: Pull changes from remote server but stashing uncommitt
161
154
end
162
155
163
156
command git pull $xcmd $xdefaults
164
- commandline -f repaint
165
157
end
166
158
167
159
# Git push with --set-upstream
@@ -216,7 +208,6 @@ function push -d "Gitnow: Push commit changes to remote repository"
216
208
echo
217
209
218
210
command git push --set-upstream $opts
219
- commandline -f repaint
220
211
end
221
212
222
213
function upstream -d " Gitnow: Commit all changes and push them to remote server"
@@ -236,7 +227,6 @@ function feature -d "GitNow: Creates a new Gitflow feature branch from current b
236
227
end
237
228
238
229
__gitnow_gitflow_branch " feature" $xbranch
239
- commandline -f repaint
240
230
end
241
231
242
232
function hotfix -d " GitNow: Creates a new Gitflow hotfix branch from current branch" -a xbranch
@@ -246,7 +236,6 @@ function hotfix -d "GitNow: Creates a new Gitflow hotfix branch from current bra
246
236
end
247
237
248
238
__gitnow_gitflow_branch " hotfix" $xbranch
249
- commandline -f repaint
250
239
end
251
240
252
241
function bugfix -d " GitNow: Creates a new Gitflow bugfix branch from current branch" -a xbranch
@@ -256,7 +245,6 @@ function bugfix -d "GitNow: Creates a new Gitflow bugfix branch from current bra
256
245
end
257
246
258
247
__gitnow_gitflow_branch " bugfix" $xbranch
259
- commandline -f repaint
260
248
end
261
249
262
250
function release -d " GitNow: Creates a new Gitflow release branch from current branch" -a xbranch
@@ -266,7 +254,6 @@ function release -d "GitNow: Creates a new Gitflow release branch from current b
266
254
end
267
255
268
256
__gitnow_gitflow_branch " release" $xbranch
269
- commandline -f repaint
270
257
end
271
258
272
259
function merge -d " GitNow: Merges given branch into the active one"
@@ -311,22 +298,19 @@ function merge -d "GitNow: Merges given branch into the active one"
311
298
if test " $v_abort " ;
312
299
echo " Abort the current merge"
313
300
command git merge --abort
314
- commandline -f repaint
315
301
return
316
302
end
317
303
318
304
# continue
319
305
if test " $v_continue " ;
320
306
echo " Continue the current merge"
321
307
command git merge --continue
322
- commandline -f repaint
323
308
return
324
309
end
325
310
326
311
# No branch defined
327
312
if not test -n " $v_branch "
328
313
echo " Provide a valid branch name to merge."
329
- commandline -f repaint
330
314
return
331
315
end
332
316
@@ -336,19 +320,16 @@ function merge -d "GitNow: Merges given branch into the active one"
336
320
if test $v_found -eq 0;
337
321
echo " Local branch `$v_branch ` was not found. Not possible to merge."
338
322
339
- commandline -f repaint
340
323
return
341
324
end
342
325
343
326
# Detect merging current branch
344
327
if [ " $v_branch " = (__gitnow_current_branch_name) ]
345
328
echo " Branch `$v_branch ` is the same as current branch. Nothing to do."
346
- commandline -f repaint
347
329
return
348
330
end
349
331
350
332
command git merge $v_branch
351
- commandline -f repaint
352
333
end
353
334
354
335
function move -d " GitNow: Switch from current branch to another but stashing uncommitted changes"
@@ -390,7 +371,6 @@ function move -d "GitNow: Switch from current branch to another but stashing unc
390
371
if not test -n " $v_branch "
391
372
echo " Provide a valid branch name to switch to."
392
373
393
- commandline -f repaint
394
374
return
395
375
end
396
376
@@ -401,7 +381,6 @@ function move -d "GitNow: Switch from current branch to another but stashing unc
401
381
set -l v_remote (__gitnow_current_remote)
402
382
command git fetch $v_remote $v_branch :refs/remotes/$v_remote /$v_branch
403
383
command git checkout --track $v_remote /$v_branch
404
- commandline -f repaint
405
384
return
406
385
end
407
386
@@ -412,14 +391,12 @@ function move -d "GitNow: Switch from current branch to another but stashing unc
412
391
echo " Branch `$v_branch ` was not found locally. No possible to switch."
413
392
echo " Tip: Use -u (--upstream) flag to fetch a remote branch."
414
393
415
- commandline -f repaint
416
394
return
417
395
end
418
396
419
397
# Prevent same branch switching
420
398
if [ " $v_branch " = (__gitnow_current_branch_name) ]
421
399
echo " Branch `$v_branch ` is the same as current branch. Nothing to do."
422
- commandline -f repaint
423
400
return
424
401
end
425
402
@@ -442,7 +419,6 @@ function move -d "GitNow: Switch from current branch to another but stashing unc
442
419
echo " Stashed changes applied."
443
420
end
444
421
445
- commandline -f repaint
446
422
end
447
423
448
424
function logs -d " Gitnow: Shows logs in a fancy way"
@@ -659,7 +635,6 @@ function tag -d "Gitnow: Tag commits following Semver"
659
635
# TODO: Prepatch version tags
660
636
661
637
662
- commandline -f repaint
663
638
end
664
639
665
640
function assume -d " Gitnow: Ignore files temporarily"
@@ -700,12 +675,10 @@ function github -d "Gitnow: Clone a GitHub repository using SSH"
700
675
set -l repo (__gitnow_clone_params $argv )
701
676
__gitnow_clone_repo $repo " github"
702
677
703
- commandline -f repaint
704
678
end
705
679
706
680
function bitbucket -d " Gitnow: Clone a Bitbucket Cloud repository using SSH"
707
681
set -l repo (__gitnow_clone_params $argv )
708
682
__gitnow_clone_repo $repo " bitbucket"
709
683
710
- commandline -f repaint
711
684
end
0 commit comments