emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gregor Kappler <gregor.kappler@univie.ac.at>
To: Leo Alekseyev <dnquark@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-git-link does not support locational information within file
Date: Tue, 15 Feb 2011 21:15:23 +0100	[thread overview]
Message-ID: <877hd19hr8.fsf@univie.ac.at> (raw)
In-Reply-To: <AANLkTi=cJSzX_42DXUNLgWgZ7W5EQOZqE0keazgW00dv@mail.gmail.com>

Hi Leo,

> However, I think the bigger problem with org-git-link in its current
> incarnation is that it forces me to use git:// links for all files
> under version control, which is NOT what I want to do 90% of the time.
>  I have a quick hack to deal with this -- namely, commenting out
> 
> ;; (add-hook 'org-store-link-functions 'org-git-store-link t)
> 
> and using a separate keybinding for storing git links using the
> following function:
> 
> (defun org-git-store-link-interactively (arg)
>   "Store git link to current file."
>   (interactive "P")
>   (let ((org-store-link-functions (cons 'org-git-store-link
> org-store-link-functions)))
>     (call-interactively 'org-store-link arg)
> ))

Thanks a lot for this!

> 
> 
> In addition, I'm not crazy about using the "branch@{date}" format for
> storing links by default, so I hacked something that uses SHA1
> instead...  I could post a patch if anyone is curious.
I would be interested, and I think SHA1 should be supported as it is so
common with git.

Cheers,
Gregor

-- 
--

Dr. Gregor Kappler

Fakultät für Psychologie 
Institut für Entwicklungspsychologie und 
Psychologische Diagnostik
http://www.univie.ac.at/Psychologie

Universität Wien
Liebiggasse 5
A-1010 Wien
mail: gregor.kappler@univie.ac.at
tel: +43 1 4277 47866

      reply	other threads:[~2011-02-15 20:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03 15:04 org-git-link does not support locational information within file Gregor Kappler
2011-02-11 17:17 ` Bastien
2011-02-11 17:58   ` Samuel Wales
2011-02-11 18:05     ` Samuel Wales
2011-02-12 11:17     ` Bastien
2011-02-12 20:44       ` Samuel Wales
2011-02-13 12:20   ` Achim Gratz
2011-02-15 20:11   ` Gregor Kappler
2011-02-13  8:14 ` Leo Alekseyev
2011-02-15 20:15   ` Gregor Kappler [this message]

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=877hd19hr8.fsf@univie.ac.at \
    --to=gregor.kappler@univie.ac.at \
    --cc=dnquark@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).