Re: [git-users] git-filter-branch : How to filter all commits from an given commit ?

2014-10-27 Thread Alcolo Alcolo
My question is "how can I do" and you answer is "why you do this". My main question is: git-filter-branch allow to select commits to filter. How can I select all commits from a given commit C, including C? This question can be declined for git-rev-list. This question has no meaning ?? I can do

Re: [git-users] git-filter-branch : How to filter all commits from an given commit ?

2014-10-24 Thread Alcolo Alcolo
Because C can be a base commit of branches and merges, then it's a nightmare to rebase. I know that scripts exists to rebase merges (based on git-rev-list, git-cat-file, git-hash-object/git-commit-tree), but those scripts redo the git-filter-branch job. Honestly, I'm not really capable of dea

[git-users] git-filter-branch : How to filter all commits from an given commit ?

2014-10-23 Thread Alcolo Alcolo
I want to change something to only one commit C: I can do git filter-branch --X-filter 'test $GIT_COMMIT = CHash && do-something' -- --all But it's an useless heavy work: only descendants of C (including C) need to be scanned. The idea is to change C by replacing it (git replace -i C) and re

[git-users] submodule : sharing git objects

2014-10-03 Thread Alcolo Alcolo
Because I want to handle a lot of projects with there own life cycle: I project to use git submodules. Each projects/submodules have very a similar contents: then a lot of git objects are identical between submodules. I can see duplications with: find .git/modules/ -type d -name objects | wh

Re: [git-users] git replace

2014-09-16 Thread Alcolo Alcolo
new_commit= git tag -l --points-at "$cmt" | while read T; do git tag -f "$T" "$new_commit" done Le mardi 16 septembre 2014 08:44:27 UTC+2, Alcolo Alcolo a écrit : > > > > Le lundi 15 septembre 2014 23:34:52 UTC+2, Dale Worley a

Re: [git-users] git replace

2014-09-15 Thread Alcolo Alcolo
Le lundi 15 septembre 2014 23:34:52 UTC+2, Dale Worley a écrit : > > > From: Alcolo Alcolo > > > > My git history is complex and it's a nightmare to rebase from old > commits. > > I'm not sure what you're attempting to do, but this might help. I

Re: [git-users] git replace

2014-09-12 Thread Alcolo Alcolo
Le vendredi 12 septembre 2014 14:59:05 UTC+2, Dale Worley a écrit : > > > From: Alcolo Alcolo > > > > There is a way to remove all old replaced commits for ever ? > > "git gc --aggressive" works, but you have to purge all the recorded > references

Re: [git-users] git replace

2014-09-12 Thread Alcolo Alcolo
Le vendredi 12 septembre 2014 14:53:13 UTC+2, Roman Neuhauser a écrit : > > # alco...@gmail.com / 2014-09-12 04:49:43 -0700: > > I'm using git replace command to alter ancestry of commits. > > I want to delete merged branch then I suppress the branch parent of the > > merge commit. > > > >

[git-users] git replace

2014-09-12 Thread Alcolo Alcolo
I'm using git replace command to alter ancestry of commits. I want to delete merged branch then I suppress the branch parent of the merge commit. But, I see that the old reference of replaced commits still exists. Then my branch is not deleted but hidden. I would like garbage collect it. There i

Re: [git-users] git and filename case sensitivity

2014-08-28 Thread Alcolo Alcolo
Le mercredi 27 août 2014 18:42:17 UTC+2, Konstantin Khomoutov a écrit : > > On Wed, 27 Aug 2014 07:44:11 -0700 (PDT) > There's no such thing as "git-scm": "Git" is this particular SCM system > and its official native Windows port is called "Git for Windows" > (and this is what TortoiseGit is u

[git-users] git and filename case sensitivity

2014-08-27 Thread Alcolo Alcolo
There is a way to configure my git-scm to be case sensitive ? > git init > echo a > a > git add a > git commit -m a > mv a A > git status with git-scm: "Nothing to commit" with cygwin git: "deleted a" Note: My cygwin is configured with /etc/fstab: "none /cygdrive cygdrive binary,posix=1,use