Re: [PATCH 3/4] show: turn on rename detection progress reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

>  	while ((commit = get_revision(rev)) != NULL) {
> -		if (!log_tree_commit(rev, commit) &&
> +		int showed = log_tree_commit(rev, commit);
> +		if (showed &&
>  		    rev->max_count >= 0)
>  			/*
>  			 * We decremented max_count in get_revision,
>  			 * but we didn't actually show the commit.
>  			 */
>  			rev->max_count++;
> +		/* Once we have output, progress will clutter the terminal. */
> +		if (showed)
> +			rev->diffopt.show_rename_progress = 0;

After looking at the implementation of log_tree_commit(), shouldn't this
part be more like this?

	int shown = log_tree_commit(rev, commit);
        if (!shown && rev->max_count >=0)
        	rev->max_count++;
	if (shown)
        	rev->diffopt.show_rename_progress = 0;

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]