emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Dov Grobgeld <dov.grobgeld@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Fast linking to files in private git repos through a hyperlink
Date: Fri, 20 Apr 2012 14:01:25 +0200	[thread overview]
Message-ID: <87k41awr1m.fsf@altern.org> (raw)
In-Reply-To: <CA++fsGFW6_8sWyLYXUfSg-i5cTTBPaTy04GX3+cu59gkeJP6WQ@mail.gmail.com> (Dov Grobgeld's message of "Thu, 19 Apr 2012 14:24:23 +0300")

Hi Dov,

Dov Grobgeld <dov.grobgeld@gmail.com> writes:

> I thought I would share the following hack that I did with git.
>
> In my org-mode notebook I often find myself references files that
> reside in various private git repos. So far I have referenced these
> either by just writing their name or giving a full path. But giving
> the full path is disruptive and if the repo moves it will no longer
> work. So I added a hack to make the following hyperlink work
> git:myrepo::myfile . When opening it the following happens:
>
> - myrepo is looked up in the emacs hash my-git-repos and mapped to
> the path of a git repo root.
> - git-find-file-in-repo searches for the the file myfile in the the
> repo repo
>
> Here's the code for org-git-hyperlink.el:

Nice.  

Can you try to merge these features with contrib/lisp/org-git-link.el
from the current repo?

Thanks!

-- 
 Bastien

  parent reply	other threads:[~2012-04-20 12:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 11:24 Fast linking to files in private git repos through a hyperlink Dov Grobgeld
2012-04-19 18:49 ` Karl Voit
2012-04-20 12:01 ` Bastien [this message]
2012-04-21 21:19   ` Dov Grobgeld
2012-04-26 14:00     ` Bastien
2012-04-26 18:06       ` Dov Grobgeld
2012-04-26 18:32         ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k41awr1m.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=dov.grobgeld@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).