From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: git mode for emacs Date: Sat, 27 Jun 2009 00:36:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <070f817c-7dd8-4934-9055-a84047fbb465@s38g2000prg.googlegroups.com> References: <78211629-80f8-44ad-9d8d-446fe191c739@a37g2000prf.googlegroups.com> <874ou2g6wz.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246104828 14967 80.91.229.12 (27 Jun 2009 12:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2009 12:13:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 14:13:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MKWmq-00017N-Id for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2009 14:13:40 +0200 Original-Received: from localhost ([127.0.0.1]:46897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKWmp-00019n-U0 for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2009 08:13:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s38g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 82 Original-NNTP-Posting-Host: 59.95.20.15 Original-X-Trace: posting.google.com 1246088197 28848 127.0.0.1 (27 Jun 2009 07:36:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 27 Jun 2009 07:36:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s38g2000prg.googlegroups.com; posting-host=59.95.20.15; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052912 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170369 X-Mailman-Approved-At: Sat, 27 Jun 2009 08:06:20 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65592 Archived-At: On Jun 26, 11:57=A0pm, Anselm Helbig wrote: > Hi! > > > Can anyone give some tips on which git mode works for emacs? > > I tried git.el but it seems to be broken -- my report at > >http://article.gmane.org/gmane.comp.version-control.git/122295 > > I'm git.el (1.0), vc-git (part of emacs) and gitsum (0.2). All work > fine with Emacs 23.0.91.1 under Ubuntu here. vc-git is fine for > operations on a single file and mostly gets out of you way. git.el is > more useful when you're in "version control mode", for operations on a > the file tree. gitsum allows you to select what chunks to group into a > commit. There's no reason why you can't use several packages in > parallel and use each one what what it does best. See Partly I use windows and partly linux. My main requirement right now is for a stable and usable git under windows. Maybe git is not very usable under windows? I thought it had moved on from there. But I would like to hear if this is so. > > =A0http://www.emacswiki.org/emacs/Git > > for an overview. > > For troubleshooting your problem: what emacs version are you using? > Did you upgrade recently? Any stale byte compiled git.elc lying > around? What happens if you start emacs without customizations > (emacs -Q) and load git.el with M-x load-file? Right now Im on my linux box... so responding from memory of the windows problems with git.el 1. With a detached head (ie something was checked out 'inside' a branch) I got Branch: fatal: ref HEAD is not a symbolic ref in git-status. I was suggested on the git mailing list to upgrade git.el. Did it but this problem did not go away. 2. Later on trying other commands like commit, add etc I keep getting Wrong type argument: arrayp, nil Well thought I'd do a little elisp debugging on that. When I loaded git.el with edebug-all-defs I got: Invalid read syntax: "Expected one of", stringp, "nil" Note: That this is something in git.el that is triggering a bug (or at least a deficit in edebug) I edebugged pieces of the file and came to this that is offensive to edebug (defstruct (git-fileinfo (:copier nil) (:constructor git-create-fileinfo (state name &optional old-perm new-perm rename-state orig-name marked)) (:conc-name git-fileinfo->)) marked ;; t/nil state ;; current state name ;; file name old-perm new-perm ;; permission flags rename-state ;; rename or copy state orig-name ;; original name for renames or copies needs-update ;; whether file needs to be updated needs-refresh) ;; whether file needs to be refreshed I guessed that this is not really the problem (and Im not keen on debugging edebug) so edebugged the rest of git.el, un-edebugged this defstruct and tried... The error is evidently coming from a ewoc-locate [This happens on windows and not on linux; the defstruct offending edebug error happens on both] Anyhow this is getting too much into the innards of emacs so I did not pursue it further. So let me restate my question -- How to use git with emacs under windows? Does vc with git backend work? Its quite ok to use vc for simple single-file-ish stuff and drop to the command line for more gitly stuff But if nothing works really properly under windows I wont waste too much time