git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] repack: don't report "Nothing new to pack." if -q is given

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Jul 3, 2007, 18:19 UTC
Message-ID
<20070703181923.GE4580@xp.machine.xx>
In-Reply-To
<20070703084757.GA4694@lala>
On Tue, Jul 03, 2007 at 10:47:58AM +0200, Uwe Kleine-König wrote:
Show 23 quoted lines
> Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
> ---
> This patch is on top of maint.  For master and next you need
> s/name/names/.
> 
> Best regards
> Uwe
> 
>  git-repack.sh |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/git-repack.sh b/git-repack.sh
> index ddfa8b4..d980275 100755
> --- a/git-repack.sh
> +++ b/git-repack.sh
> @@ -65,7 +65,9 @@ args="$args $local $quiet $no_reuse_delta$extra"
>  name=$(git-pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
>  	exit 1
>  if [ -z "$name" ]; then
> -	echo Nothing new to pack.
> +	if test -q "$quiet"; then
> +		echo Nothing new to pack.
> +	fi

This looks wrong, especially as I can't find a '-q' in the manpage of "test". Perhaps you ment something like the following code, which is already used in the script:

	if test "$quiet" != '-q'; then
		echo ...
	fi
-Peter
Previous: Uwe Kleine-KönigNext: Uwe Kleine-König
Message 2 of 4 in “repack: don't report "Nothing new to pack." if -q is given”
  1. repack: don't report "Nothing new to pack." if -q is givenUwe Kleine-König, Jul 3, 2007
  2. Peter BaumannJul 3, 2007
  3. Uwe Kleine-KönigJul 3, 2007
  4. Junio C HamanoJul 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.