From: Junio C Hamano Date: Thu, 18 Aug 2011 21:10:13 GMT Subject: Re: [PATCH 02/10] test-lib: add helper functions for config Message-ID: <7v1uwi8ikk.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110818050114.GB2889@sigill.intra.peff.net> Thanks. > ... > +# Unset a configuration variable, but don't fail if it doesn't exist. > +test_unconfig () { > + git config --unset-all "$@" > + config_status=$? > + case "$config_status" in > + 5) # ok, nothing to usnet > + config_status=0 > + ;; Will queue with 's/nothing to usnet/nothing to unset/'.