Age | Commit message (Collapse) | Author | Files | Lines |
|
Set the variable GIT_RADAR_FETCH_TIME in a bashrc, zshrc or gitradarrc file to
customize the fetch time.
|
|
in fetch.sh "if" now checks for $@ instead of just $1
in radar-base.sh there is now a parameter expansion on line 170 instead of the
if statements.
in git-radar, now there is a shift, and a regex check that the next value is a
number. If the next value after --fetch_t is not a number, an error is echo'd
and it resorts to the default behaviour of 5 minutes.
|
|
with --fetch_t you can specify how many seconds to wait before auto fetching.
using the --fetch option gives you the default of 5 minutes still.
"--fetch_t 45" for example would fetch every 45 seconds.
|
|
|
|
|
|
|
|
I tried many ways to get the fetch call to background without staying
attached to the current subshell. Ends up it's not possible to nohup or
fully disown a function that is defined inside the same file that's
calling it.
So simple answer, I've created a file `fetch.sh` that can be called
inside nohup. It will source `git-base.sh` and call the fetch function.
|