Re: [git-users] moving a directory from one repo to another with commit history

2015-05-27 Thread Konstantin Khomoutov
On Tue, 26 May 2015 23:43:43 +0530 Kalpa Welivitigoda callka...@gmail.com wrote: [...] Following is the output of $ git log --all --graph --decorate --oneline * 9c97cd4 (HEAD, master) Merge tag 'tags/Bdir12' |\ | * af56821 (tag: Bdir12) updating dir1-2 | * d0b8f8a adding dir1-2

Re: [git-users] GIT_DIR missing in pre-rebase hook

2015-05-27 Thread Konstantin Khomoutov
On Tue, 26 May 2015 08:14:28 -0700 (PDT) Nick Kugaevsky n...@kugaevsky.ru wrote: It was really suprising when I find out that GIT_DIR variable is missing in some hooks. I want to run hook before executing `git pull --rebase` command, so I use `pre-rebase` hook for that. There is GIT_DIR

[git-users] Newbie: picking a commit from another repo

2015-05-27 Thread Tommaso Fonda
Good morrow, I have got a git repo (which I'll call A) forked from another repo (B) and I need to pick a commit that another person applied to his repo (C) which is also forked from B (although this shouldn't matter right?). I'm sure that the commit I want to apply to my repo won't generate

Re: [git-users] GIT_DIR missing in pre-rebase hook

2015-05-27 Thread Nick Kugaevsky
Synopsis of man page for githooks. For example post-merge and post-rewrite hooks work perfectly with $GIT_DIR variable. It is set automagically to .git subdirectory of my working directory. For sure it can be defined by setting $GIT_DIR explicitly or with --separate-git-dir option. And this is

Re: [git-users] Newbie: picking a commit from another repo

2015-05-27 Thread Magnus Therning
On Wed, May 27, 2015 at 08:05:24AM -0700, Tommaso Fonda wrote: Good morrow, I have got a git repo (which I'll call A) forked from another repo (B) and I need to pick a commit that another person applied to his repo (C) which is also forked from B (although this shouldn't matter right?). I'm