git-wad

Manage files via git but not their content
git clone git://git.meso-star.fr/git-wad.git
Log | Files | Refs | README | LICENSE

commit 29cc59b040e4530c0a28f79db6a63161be0c2184
parent d1c136e4b09803562fa08704d46a1d71473ce6cf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sun, 10 Dec 2023 19:29:07 +0100

Add the pull subcommand

It simply calls fetch and checkout consecutively. It's a shortcut to
simplify the user's life when restoring WAD objects.

Diffstat:
Mgit-wad | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/git-wad b/git-wad @@ -39,6 +39,7 @@ synopsis() { >&2 printf "usage: git-wad checkout\n" >&2 printf " git-wad init\n" + >&2 printf " git-wad pull [--all]\n" >&2 printf " git-wad push [--all]\n" >&2 printf " git-wad fetch [--all]\n" } @@ -237,6 +238,12 @@ checkout() done } +pull() # [--all] +{ + fetch "$@" + checkout +} + ######################################################################## # The command ######################################################################## @@ -251,5 +258,6 @@ case "${sub_cmd}" in "init") shift 1; init "$@" ;; "fetch") shift 1; fetch "$@" ;; "push") shift 1; push "$@" ;; + "pull") shift 1; pull "$@" ;; *) synopsis; exit 1 ;; esac