Git updater shell script - Programming On Unix

Users browsing this thread: 1 Guest(s)
jkl
Long time nixers
I updated the initial post, adding a log to the git pull branch:

Code:
git log $LOCAL..$REMOTE --date=short --pretty=format:"     - New [%ad] : %s“

I noticed that I, sometimes, want to know what has changed.

Results:

Code:
% ./gitup.sh
Updating Git repository: [REDACTED]/linecook
     - New [2020-10-13] : Merge pull request #3 from mortie/patch-1
     - New [2020-10-13] : Fix the links in the table of contents
Updating Git repository: [REDACTED]/ion
     - New [2020-09-03] : Fix set and status argument handling
Updating Git repository: [REDACTED]/knoxite
     - New [2020-10-12] : Set further default values when executing `knoxite config alias...`
     - New [2020-10-12] : Include some default toml-comments in the struct tags of RepoConfig
     - New [2020-10-12] : Switch to pelletier/go-toml as toml library for the config system
     - New [2020-10-12] : Display the error message too when saving the config fails in tests
Successfully processed 14 repositories.

I have noticed that it takes a while to process 14 repositories. I consider a rewrite in an actual programming language - shell scripts don’t work well with threads. (I tried playing with the parallel command, but it makes the code hard to read.)

--
<mort> choosing a terrible license just to be spiteful towards others is possibly the most tux0r thing I've ever seen


Messages In This Thread
Git updater shell script - by jkl - 10-09-2020, 02:30 AM
RE: Git updater shell script - by venam - 10-09-2020, 02:43 AM
RE: Git updater shell script - by jkl - 10-09-2020, 02:51 AM
RE: Git updater shell script - by jkl - 13-10-2020, 06:16 AM
RE: Git updater shell script - by mcol - 14-10-2020, 03:19 PM
RE: Git updater shell script - by jkl - 14-10-2020, 07:19 PM
RE: Git updater shell script - by mcol - 15-10-2020, 09:03 AM
RE: Git updater shell script - by Halfwit - 28-11-2020, 09:00 PM