tmux-kanagawa/scripts
Nuno Sá e9f46f76ca scripts: git: add '--no-optional-locks' option
As stated in 'git status --help':

"By default, git status will automatically refresh the index, updating
the cached stat information from the working tree and writing out the
result. Writing out the updated index is an optimization that isn’t
strictly necessary (status computes the values for itself, but writing
them out is just to save subsequent programs from repeating our
computation). When status is run in the background, the lock held during
the write may conflict with other simultaneous processes, causing them to
fail. Scripts running status in the background should consider using git
--no-optional-locks status (see git(1) for details)."

This was actually happen during rebasing whith the following error:

"error: Unable to create '/home/nsa/work/linux/.git/index.lock': File
exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue."

This change fixes the above...

Signed-off-by: Nuno Sá <noname.nuno@gmail.com>
2022-09-06 14:36:47 +02:00
..
battery.sh Battery Status for Fedora 36 2022-08-10 14:14:17 +01:00
cpu_info.sh Add load average support 2021-12-22 23:11:09 +01:00
dracula.sh Update dracula.sh 2021-12-23 00:51:47 +01:00
git.sh scripts: git: add '--no-optional-locks' option 2022-09-06 14:36:47 +02:00
gpu_usage.sh get_tmux_option(), normalize_percent_len() in scripts/utils.sh 2021-07-06 11:21:21 +02:00
network.sh consistent formatting across all scripts 2021-07-06 10:22:36 +02:00
network_bandwidth.sh Show bandwidth in gB/s and mB/s when required 2021-10-10 04:44:40 +01:00
network_ping.sh Update network_ping.sh 2021-12-23 00:55:35 +01:00
ram_info.sh Cleanup RAM file 2021-10-09 19:48:10 -04:00
sleep_weather.sh Enable custom location for weather plugin 2021-12-03 18:49:34 +01:00
utils.sh fix too many arguments in utils.sh 2021-07-19 08:19:41 +02:00
weather.sh Enable custom location for weather plugin 2021-12-03 18:49:34 +01:00