From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Rorvick Subject: Re: [PATCH 1/7] push: return reject reasons via a mask Date: Mon, 26 Nov 2012 21:00:14 -0600 Message-ID: References: <1353644515-17349-1-git-send-email-chris@rorvick.com> <1353644515-17349-2-git-send-email-chris@rorvick.com> <7vobikryrc.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: git@vger.kernel.org, Angelo Borsotti , Drew Northup , Michael Haggerty , Philip Oakley , Johannes Sixt , Kacper Kornet , Jeff King , Felipe Contreras To: Junio C Hamano X-From: git-owner@vger.kernel.org Tue Nov 27 04:00:35 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TdBPW-00059m-OM for gcvg-git-2@plane.gmane.org; Tue, 27 Nov 2012 04:00:35 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933053Ab2K0DAR (ORCPT ); Mon, 26 Nov 2012 22:00:17 -0500 Received: from mail-lb0-f174.google.com ([209.85.217.174]:52617 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932732Ab2K0DAQ (ORCPT ); Mon, 26 Nov 2012 22:00:16 -0500 Received: by mail-lb0-f174.google.com with SMTP id gi11so6276651lbb.19 for ; Mon, 26 Nov 2012 19:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=xMXcvVrWINw0d/JbRNqobrVoFqJ9Q9Pzd6WPz/rQEUc=; b=tg4nSNACxyKboh7aWSjWjK4BiQiMH2x9ujHeWF5yGzNa/tDwhPj+R8RU0E4fv08iZz G8xdpG5LvGnRQQ0SaGlRiwvIaLux4WkDI2oMHpyejvzX45zj5voBcyzaDUuY8ZzmjZ1H 89+Px/KJuIBgtydMwJDjy0vTytONO8vBpaCoyMfqrpuWMjZvO6WbfZrIchAddZl8yAVS onrZqx7ryw7PQjjvIx2QaEZ7s5nBSUg5/eh5TBa1/aJfgU6OguJf8yVUr5i+07Q/kAGx WDYsNqKWDZ4OtgIuEPAR711YzYoqvfgXJhe9z32nEOWuxEsHYS2BUDt1kwb/crehA65B +P2Q== Received: by 10.152.109.145 with SMTP id hs17mr13298225lab.5.1353985214166; Mon, 26 Nov 2012 19:00:14 -0800 (PST) Received: by 10.114.13.2 with HTTP; Mon, 26 Nov 2012 19:00:14 -0800 (PST) In-Reply-To: <7vobikryrc.fsf@alter.siamese.dyndns.org> X-Google-Sender-Auth: lGpfC-UKhGybNp0tWPBrpIuMUCw Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Nov 26, 2012 at 12:43 PM, Junio C Hamano wrote: > Chris Rorvick writes: > >> Pass all rejection reasons back from transport_push(). The logic is >> simpler and more flexible with regard to providing useful feedback. >> >> Signed-off-by: Chris Rorvick >> --- > > In any case, naming it as "reject_mask" is like calling a counter as > "counter_int". It is more important to name it after its purpose > than after its type Agreed. > and because this is to record the reasons why > the push was rejected, "rejection_reason" might be a better name for > it. Yes, that is better for all the reasons you mention. I will fix this up.