From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: VC mode and git Date: Fri, 27 Mar 2015 14:01:26 -0400 Message-ID: References: <20150327.223913.250959558.tkk@misasa.okayama-u.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427479328 321 80.91.229.3 (27 Mar 2015 18:02:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 18:02:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 27 19:02:02 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YbYZp-0000Cb-RK for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 19:01:49 +0100 Original-Received: from localhost ([::1]:51225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbYZp-0007uL-8t for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 14:01:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbYZX-0007np-Oa for emacs-devel@gnu.org; Fri, 27 Mar 2015 14:01:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbYZT-00068K-BN for emacs-devel@gnu.org; Fri, 27 Mar 2015 14:01:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbYZT-00068G-7F for emacs-devel@gnu.org; Fri, 27 Mar 2015 14:01:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj0GAGvvdVRBbthL/2dsb2JhbAA3DoFFoRxTgQiBdQEBBAFWIwULCw4mEhQYDSSIE6IRi3YKDA8POgkDAQKBdIFKA4NwBKdoU4E3Dw X-IPAS-Result: Aj0GAGvvdVRBbthL/2dsb2JhbAA3DoFFoRxTgQiBdQEBBAFWIwULCw4mEhQYDSSIE6IRi3YKDA8POgkDAQKBdIFKA4NwBKdoU4E3Dw X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114763185" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Mar 2015 14:01:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 916F1D65; Fri, 27 Mar 2015 14:01:26 -0400 (EDT) In-Reply-To: <20150327.223913.250959558.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Fri, 27 Mar 2015 22:39:13 +0900 (JST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184410 Archived-At: > As you say when I use vc-mode in school, no local commit is needed > because we use git regardless git or subversion. However, > occasionally I want to get benefit of local commit via command line, > like when I am on a long flight above Pacific ocean. Then you'd temporarily comment out the commit-hook. Or you'd refine the hook somehow so you can inhibit it sometimes (not sure what kind of info those hooks receive, but in the worst case you could say that the presence of a .git/LOCAL_COMMITS file would mean to skip the hooks, or the hooks could check your ifconfig output to guess that you probably want an local commit). Stefan