From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: vc-git-previous-revision and cmd.exe Date: Mon, 17 Nov 2014 18:51:40 +0200 Message-ID: <83bno5bwir.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1416244345 29215 80.91.229.3 (17 Nov 2014 17:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 17:12:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 17 18:12:19 2014 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 1XqPqc-00062F-8h for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2014 18:12:18 +0100 Original-Received: from localhost ([::1]:49165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqPqb-0000mW-ND for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2014 12:12:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqPWw-0007UN-FS for emacs-devel@gnu.org; Mon, 17 Nov 2014 11:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqPWo-00006k-3q for emacs-devel@gnu.org; Mon, 17 Nov 2014 11:51:58 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:56192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqPWn-00006d-TE for emacs-devel@gnu.org; Mon, 17 Nov 2014 11:51:50 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NF700J0001NC100@mtaout29.012.net.il> for emacs-devel@gnu.org; Mon, 17 Nov 2014 18:50:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF700DPX03DI250@mtaout29.012.net.il> for emacs-devel@gnu.org; Mon, 17 Nov 2014 18:50:01 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:177454 Archived-At: vc-git-previous-revision appends "^" to a revision to get the previous one. But "^" is a special character for the Windows cmd.exe shell, so 'D' in the *vc-change-log* buffer doesn't work if the 'git' command is actually a batch file that invokes the real Git executable, in which case we call cmd.exe to run the batch file, and cmd.exe removes the ^ (because it's the escape character). Can we use "~1" instead? If that's bad for Unix, we can do that only on Windows. Comments?