File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
do-list () {
4
4
local flag_outdated=' no'
5
5
local flag_simple=' no'
6
+ local flag_fetch=' no'
6
7
7
8
for arg; do
8
9
case " $arg " in
9
10
--simple)
10
11
flag_simple=' yes'
11
12
;;
13
+ --fetch)
14
+ flag_fetch=' yes'
12
15
esac
13
16
done
14
17
@@ -64,6 +67,13 @@ do-list() {
64
67
printf -v pkg_output " %s %s\n" " $pkg_output " " $repo_branch_str "
65
68
66
69
if git -C " $pkg_path " config remote.origin.url & > /dev/null; then
70
+ if [ " $flag_fetch " = yes ]; then
71
+ local git_output=
72
+ if ! git_output=" $( git -C " $pkg_path " fetch) " ; then
73
+ printf " %s" " $git_output "
74
+ fi
75
+ fi
76
+
67
77
# shellcheck disable=SC1083
68
78
if [ " $( git -C " $pkg_path " rev-list --count HEAD...HEAD@{upstream}) " -gt 0 ]; then
69
79
if [ -n " ${NO_COLOR+x} " ] || [ " $TERM " = dumb ]; then
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ Subcommands:
268
268
Installs a local directory as a bpm package. These show up with
269
269
a namespace of 'local'
270
270
271
- list [--outdated ]
271
+ list [--simple] [--fetch ]
272
272
List installed packages
273
273
274
274
package-path <package>
You can’t perform that action at this time.
0 commit comments