From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Ezequiel Gallina Newsgroups: gmane.emacs.devel Subject: Re: git push/pull Date: Sun, 6 Dec 2009 00:12:53 -0300 Message-ID: <9de1a5ef0912051912u740e682bofc7fd627c44b9aea@mail.gmail.com> References: <9de1a5ef0912050009i59707986gb177505e04975e1b@mail.gmail.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 1260069189 20854 80.91.229.12 (6 Dec 2009 03:13:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 03:13:09 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 06 04:13:02 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NH7YT-00083i-Mz for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2009 04:13:01 +0100 Original-Received: from localhost ([127.0.0.1]:37918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH7YT-0001vM-8h for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2009 22:13:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH7YO-0001u3-5R for emacs-devel@gnu.org; Sat, 05 Dec 2009 22:12:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH7YN-0001tH-Lo for emacs-devel@gnu.org; Sat, 05 Dec 2009 22:12:55 -0500 Original-Received: from [199.232.76.173] (port=41685 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH7YN-0001t0-Gd for emacs-devel@gnu.org; Sat, 05 Dec 2009 22:12:55 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.144]:64510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NH7YN-0007gA-4M for emacs-devel@gnu.org; Sat, 05 Dec 2009 22:12:55 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 5so121167eyb.2 for ; Sat, 05 Dec 2009 19:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7wicIVo2BRpE7xOA1w5LwGD5/Oh40FmZsAPpqq7+fgY=; b=SJotAGohm/AjyJYn/IRnssNJuDAlgXWJM1HP8+llctHFuQn5EtPT2JOqAi341Xv19g Zyk8JO2LGmMbV6eYG1a+t3rBosL8ZcvRk3Y9EhS1/o35wyBehkGaWWQh7jqdozKRVmVk VnMRUe5pI/cSrla6SfhDM3yY7cRWSxpgd/fZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Tf1+Mbeui3e7etkVpDbSzsWTIwy+0NEkQRpToe6sa9f/zdzc6SWYl9bV2uTsUZYgtW pSTdGy7NNIhQIElKYjRRpIUmapq04IDuUTtucj8+Y3mV+BcKMJvj/+9H34cJNXlMFypd tCTCVb0FqcVfSCm9o1s/qCI9Q0AItxcu3fz3s= Original-Received: by 10.216.93.75 with SMTP id k53mr1858542wef.209.1260069173114; Sat, 05 Dec 2009 19:12:53 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118334 Archived-At: 2009/12/5 Stefan Monnier : >> I love vc, the thing is I always wanted the hability to do git >> push/pull from vc directly. So today I decided to implement it. > > That's great, thank you. > >> Below is the code, I sure there is a lot of room for improvement since >> I consider an Emacs LISP newbie myself, but I guess is a good starting >> point for a better implementation. > > I'll let git users decide whether they like your specific choices, but > what I'd want on my side is to add support for it directly in vc.el > (i.e. have `vc-push' and `vc-pull' commands which then delegate the > core of the work to the backends. =A0You don't have to implement any > other backend than Git). > I understand, while looking at the code of vc.el I found "deal with push/pull operations" inside the TODO. I just added vc-git-pull and vc-git-push based on the fact I saw vc-hg-pull and vc-hg-push already implemented in vc-hg.el. I'll study a little how vc works and see if I can implement a generic vc-pull/push if nobody else can work on it. Best Regards, --=20 Fabi=E1n E. Gallina http://www.from-the-cloud.com