From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: [PATCH v3 1/5] pull: rename pull.rename to pull.mode Date: Tue, 10 Sep 2013 02:52:27 -0400 Message-ID: <20130910065227.GA25084@sigill.intra.peff.net> References: <1378689796-19305-1-git-send-email-felipe.contreras@gmail.com> <1378689796-19305-2-git-send-email-felipe.contreras@gmail.com> <522E3C6A.3070409@bbn.com> <20130910022152.GA17154@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Richard Hansen , git@vger.kernel.org, Andreas Krey , John Keeping , Philip Oakley , "brian m. carlson" To: Felipe Contreras X-From: git-owner@vger.kernel.org Tue Sep 10 08:52:40 2013 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 1VJHoT-0001Hf-6d for gcvg-git-2@plane.gmane.org; Tue, 10 Sep 2013 08:52:37 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754697Ab3IJGwd (ORCPT ); Tue, 10 Sep 2013 02:52:33 -0400 Received: from cloud.peff.net ([50.56.180.127]:33591 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754054Ab3IJGwa (ORCPT ); Tue, 10 Sep 2013 02:52:30 -0400 Received: (qmail 22029 invoked by uid 102); 10 Sep 2013 06:52:30 -0000 Received: from c-71-63-4-13.hsd1.va.comcast.net (HELO sigill.intra.peff.net) (71.63.4.13) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Tue, 10 Sep 2013 01:52:30 -0500 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Tue, 10 Sep 2013 02:52:27 -0400 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Tue, Sep 10, 2013 at 01:46:27AM -0500, Felipe Contreras wrote: > On Mon, Sep 9, 2013 at 9:21 PM, Jeff King wrote: > > On Mon, Sep 09, 2013 at 05:49:36PM -0500, Felipe Contreras wrote: > > > >> > These deprecation warning messages should be written to stderr, and > >> > should probably be prefixed with "WARNING: ". > >> > >> Is there any deprecation warning that works this way? > > > > The ones in C code typically use warning(), which will prefix with > > "warning:" and write to stderr. They do not use all-caps, though. > > > > Try "git log --grep=deprecate -Swarning" for some examples. > > I'm asking about the ones in shell, because this is a shell script. Why would we want a deprecation warning to behave any differently if it is written in shell versus in C? It cannot use the warning() function, but you can easily emulate it with "echo". Do you have some reason for not wanting the warning to go to stderr? -Peff