commit 5ec5245e97c6074d003f07358a05f82c23795c14
parent 407563871b1c8eeb565affc4c87b39e7ba189611
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 15 Nov 2024 10:31:33 +0100
Make GIT_WOD_OBJDIR an environement variable
Let the user overwrite it to manage where potentially large files are
stored.
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/git-wad b/git-wad
@@ -42,7 +42,7 @@ if [ -f "${config_file}" ]; then
fi
GIT_WAD_HEADER="#\$# git-wad"
-GIT_WAD_OBJDIR="${working_tree}/.git/wad"
+GIT_WAD_OBJDIR="${GIT_WAD_OBJDIR:-${working_tree}/.git/wad}"
GIT_WAD_VERBOSE="${GIT_WAD_VERBOSE:-0}"
if [ -z "${GIT_WAD_REMOTE_FETCH}" ] \
diff --git a/git-wad.1 b/git-wad.1
@@ -12,7 +12,7 @@
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
-.Dd October 2, 2024
+.Dd November 15, 2024
.Dt GIT-WAD 1
.Os
.Sh NAME
@@ -169,6 +169,11 @@ subcommand and affect the reported number of WAD file data to remove.
.El
.Sh ENVIRONMENT
.Bl -tag -width Ds
+.It Ev GIT_WAD_OBJDIR
+Path where WAD files are stored.
+The default is the
+.Pa .git/wad
+subdirectory of the current working tree.
.It Ev GIT_WAD_REMOTE_FETCH
URL of the remote repository
.Em from