File tree 2 files changed +13
-43
lines changed
2 files changed +13
-43
lines changed Original file line number Diff line number Diff line change @@ -64,22 +64,10 @@ cmd="${1}"
64
64
shift
65
65
66
66
case " ${cmd} " in
67
- am)
68
- am " $@ "
69
- ;;
70
-
71
- apply)
72
- apply " $@ "
73
- ;;
74
-
75
- diff)
76
- diff " $@ "
77
- ;;
78
-
79
- format-patch)
80
- format-patch " $@ "
81
- ;;
82
-
67
+ am) am " $@ " ;;
68
+ apply) apply " $@ " ;;
69
+ diff) diff " $@ " ;;
70
+ format-patch) format-patch " $@ " ;;
83
71
* )
84
72
echo " Usage: git fpaste <command> [<args>]"
85
73
echo
Original file line number Diff line number Diff line change @@ -26,21 +26,11 @@ _git_fpaste () {
26
26
fi
27
27
28
28
case " $subcommand " in
29
- am)
30
- _git_fpaste_am
31
- ;;
32
- apply)
33
- _git_fpaste_apply
34
- ;;
35
- diff)
36
- _git_diff
37
- ;;
38
- format-patch)
39
- _git_format_patch
40
- ;;
41
- * )
42
- COMPREPLY=()
43
- ;;
29
+ am) _git_fpaste_am ;;
30
+ apply) _git_fpaste_apply ;;
31
+ diff) _git_diff ;;
32
+ format-patch) _git_format_patch ;;
33
+ * ) COMPREPLY=() ;;
44
34
esac
45
35
}
46
36
@@ -55,22 +45,14 @@ __no_file_fallback () {
55
45
56
46
_git_fpaste_am () {
57
47
case " $cur " in
58
- --* )
59
- _git_am
60
- ;;
61
- * )
62
- __no_file_fallback
63
- ;;
48
+ --* ) _git_am ;;
49
+ * ) __no_file_fallback ;;
64
50
esac
65
51
}
66
52
67
53
_git_fpaste_apply () {
68
54
case " $cur " in
69
- --* )
70
- _git_apply
71
- ;;
72
- * )
73
- __no_file_fallback
74
- ;;
55
+ --* ) _git_apply ;;
56
+ * ) __no_file_fallback ;;
75
57
esac
76
58
}
You can’t perform that action at this time.
0 commit comments