From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: custom link type for files in a git repo Date: Mon, 06 Oct 2008 00:38:23 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1913838467==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kmhry-0004El-6F for emacs-orgmode@gnu.org; Mon, 06 Oct 2008 00:38:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kmhrx-0004ER-Gp for emacs-orgmode@gnu.org; Mon, 06 Oct 2008 00:38:53 -0400 Received: from [199.232.76.173] (port=37838 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kmhrx-0004EO-Cr for emacs-orgmode@gnu.org; Mon, 06 Oct 2008 00:38:53 -0400 Received: from main.gmane.org ([80.91.229.2]:59275 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kmhrw-0000UE-SV for emacs-orgmode@gnu.org; Mon, 06 Oct 2008 00:38:53 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kmhrt-0003zj-Tv for emacs-orgmode@gnu.org; Mon, 06 Oct 2008 04:38:50 +0000 Received: from cpe-74-69-93-157.rochester.res.rr.com ([74.69.93.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2008 04:38:49 +0000 Received: from austin.frank by cpe-74-69-93-157.rochester.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2008 04:38:49 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1913838467== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hey org-folk-- I originally included this in my questions to John and Carsten about the new attach system, but decided it deserved its own thread. Apologies if this seems like too much git-spam. Now that org and git are starting to be used in conjunction by more and more of us, would anyone else find it useful to have a custom link type for linking to git objects? I could imagine that calling org-store-link on a file or directory that is in a git repo could link to the current HEAD version, and we could have access to all of the information from calling git-log on the file (commit, author, date, message). Similarly, we'd want to be able to link to arbitrary objects in the repo's history (tags, particular commits, merge points, etc). I think most of this could be done via git.el that is distributed with git. One cool application of this would be a git post-commit-hook that called remember to create a link to the new commit in the relevant project file. This would be a really neat way to keep a timeline for a particular project's commits right alongside all of the other information stored in org. I can also see it being really useful to link to a particular version of a non-org file within some org notes. That file might change, making it difficult to interpret some notes or making specific line numbers irrelevant, but a link to the exact version being discussed would make such notes future proof. I think I could probably get at least a skeleton of these kinds of functions working myself, but I won't be able to get to it until the winter holidays. If these ideas scratch the itches of another org user who wants to code this up, I promise I'll a) use it b) praise your awesomeness, and c) buy you a beer if we're ever in the same city. Thoughts? Other features that could go into this? Thanks, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkjplj8ACgkQlHMl2/XbR4FrxwCg1nlEQWcEZUNAty5cDenhatqy zHUAniZkmtDaFZ/RIN+OHYn7Js2yXCF8 =6jXr -----END PGP SIGNATURE----- --=-=-=-- --===============1913838467== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1913838467==--