IRCloggy #git 2010-03-01

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2010-03-01

Azeroth-Working joined00:00
novas0x2a joined00:00
beeman_nl joined00:00
beeman_nl hello :)00:00
helloworld_xyz Aaaah, time for some coding!00:00
beeman_nl is there a way that i can make git checkout this specific tree: http://github.com/cakephp/cakephp1x/tree/1.2.6 or should i checkout the whole source and then switch to that tree?00:00
Guest69622 left00:00
Azeroth-Work left00:00
beeman_nl actually github calles it a tag i believe00:01
terinjokes bob2: is it normal for the web interface to be up, but the server be unreachable by client?00:01
Ilari beeman_nl: Clone the whole repo and checkout the right commit.00:01
Fernandos ahh this is exactly what I want :) http://mirror.averse.net/pub/software/scm/git/docs/v1.6.0.6/howto/using-merge-subtree.html00:01
beeman_nl Ilari: oke, thank you :)00:01
Fernandos jhelwig: thanks for the link!00:01
helloworld_xyz Meh, one more question: I have four other submodules of the project where I don't care about history nor about being able to push/pull from/to them. What is the command to add them in the ./lib folder without reading all of the history? Is it "git submodule add lib/other.sub1 --depth 3"?00:01
Fernandos time for backups00:01
Ilari terinjokes: "Host unreachable" should mean that no port works because there isn't network path to it.00:01
bob2 terinjokes: depends on how it's setup I guess - ie if they're on the same host or not00:02
thiago_home left00:02
terinjokes Ilari: I get "Network is unreachable"00:02
tildeequals_ left00:02
Ilari terinjokes: Well, that would mean whole network segment can't be reached (instead just one host is unreachable).00:02
Paraselene_ left00:03
rloaderro joined00:03
impulze how do i compare my current working dir with a specific revision?00:04
i.e. without it being added to the staging area00:04
bob2 impulze: git diff takes a revid00:04
impulze yeah i tried git diff ..SOMEREV00:04
but it lists changes between HEAD and SOMEREV00:04
not between working dir and SOMEREV00:04
Ilari impulze: 'git diff SOMEREV'00:05
impulze hm nope00:05
still shows changes between HEAD and SOMEREV00:05
bambule joined00:05
helloworld_xyz about my own question: I can say that it was not the answer I sought, it downloads all of it00:06
vice-versa joined00:06
impulze oh nvm Ilari00:07
i was being stupid, sorry, thank you00:07
fool_ joined00:07
fool_ left00:07
fool_ joined00:07
terinjokes Ilari, bob2: IDK what's up, but pingged the git server from another computer, and added the domain to my hosts, and worked just fine...00:09
Paraselene_ joined00:09
Paraselene_ left00:09
hyperair left00:10
sunil joined00:10
helloworld_xyz What if I check out a submodule and have all line endings set to CRLF, but one file of the submodule doesn't have that, so when I try to checkout the specific branch, it fails because I have so called modified that file?00:10
plediii_ left00:10
bob2 changing all your line endings is modifying the file00:11
sunil left00:11
helloworld_xyz bob2: well I don't care about them00:11
fool__ left00:11
helloworld_xyz bob2: so I would gladly change them for that file, especially so in all submodules, I don't care00:11
Paraselene_ joined00:11
helloworld_xyz bob2: is there a way to say "don't care" to git?00:11
Paraselene_ left00:11
sven^ left00:12
sven^ joined00:12
rudi_s_ left00:13
Fernandos helloworld_xyz: .gitignore00:13
you put the path of file into that .gitignore file that you don't want in your repo00:13
Mage Fernandos: um00:13
Fernandos: he means for line endings; read up00:14
Fernandos whoops :-[00:14
helloworld_xyz ;)00:14
Mage convert all your line endings to one format and dont ever touch them again00:14
:>00:14
helloworld_xyz Well, I have :p, but not all my dependencies have.00:14
Fernandos helloworld_xyz: I know that you can decide that upon installation of git itself00:15
helloworld_xyz: there are tree options: windows line endings, unix line endings, keep line endings as they are00:15
helloworld_xyz Fernandos: The problem isn't choosing line endings, the problem is when they are mixed and I have a dependency which I cannot change; then I don't want dependors on my fork + submodule to be bothered by it00:15
I don't even know if it's a problem, perhaps the easiest solution is to add the file to .gitignore?00:16
but there are sometimes a lot of these files00:16
Fernandos hmm.. dunno00:16
consolers joined00:17
toxx_ left00:18
hal left00:23
the7thbit joined00:24
the7thbit left00:25
sven^ left00:25
sven^ joined00:25
Paraselene__ joined00:27
Fernandos yeahh I had succcess mergint the subtree00:27
ehrm.. how do I update in future?00:28
do I need the subproject's folder anymore?00:28
jhelwig Fernandos: Do another subtree merge.00:28
Fernandos /path/to/B can be deleted now right?00:28
sunil joined00:31
sunil left00:31
flaguy48 joined00:32
Fernandos jhelwig: so, I'm not sure, can I delete /path/to/B now? this is the folder that I merged into my main repo. I thought I'm no more dependant on this folder after doing a subtree merge00:33
jhelwig Fernandos: Did you want to merge the two repositories permanently, or just pull in what was in the other one?00:33
Fernandos permanantely00:34
jhelwig Ok, then you can delete the other one.00:34
Fernandos good :) jhelwig thanks again for helping git n00bs like me out00:34
I apprecite that00:35
appreciate^00:35
jhelwig No prob.00:35
saste left00:35
Sonderblade left00:36
jhelwig Fernandos: Thanks for RTFM, when someone points you at the FM. ;-) That doesn't happen nearly often enough. lol00:36
Fernandos hahahah lol00:37
:D00:37
I'm building a model based booking application ontop of zend integrated into concrete5 cms00:37
AkumaStreak joined00:38
andres joined00:38
terinjokes left00:38
Fernandos non-commercial^ it's a university project00:38
hyperair joined00:40
basus joined00:40
basus I was wondering what would be the best way to have a repository that is essentially a collection of other repositories00:41
Fernandos maybe what I did? subtree merges..00:41
d0ugal left00:42
Adjective joined00:43
consolers left00:43
ProperNoun left00:46
basus subtree merges looks like what I want00:46
I'm using the doc here: http://mirror.averse.net/pub/software/scm/git/docs/v1.6.0.6/howto/using-merge-subtree.html00:46
I'm not sure what line 5 in the code does00:46
novas0x2a left00:47
Fernandos basus: this helped me http://mirror.averse.net/pub/software/scm/git/docs/v1.6.0.6/howto/using-merge-subtree.html00:47
not sure too, but I just did it xD00:48
squisher joined00:48
basus I'm not sure what I need to do when I want to pull up dates00:48
cgkm left00:50
bdowning joined00:56
sagsousuke left00:58
Kelly_zhou joined01:01
helloworld_xyz I need some more help, got stuck again! :(. Got ./myproject, ./myproject/lib/sub1 (submodule), ./myproject/lib/sub1/lib/subx (nested submodule)01:01
I want ./myproject to download all of sub1's submodules. How?01:02
PS C:\Users\xyz\dev\code\open source\castle\work\Castle.Facilities.AutomaticTransactionManagement> git submodule update01:02
--rebase --recursive01:02
Doesn't work01:02
cbreak if you want to update submodules01:02
do git submodule update01:02
helloworld_xyz i.e. --rebase --recursive01:02
cbreak but be aware01:02
this will not give you the newest version of the submodules01:02
it will give you the correct one01:03
(the one that matches your current commit)01:03
helloworld_xyz Yes, but how do I make it download the last one?01:03
cbreak you have to go into each of them and manually check it out01:04
maybe foreach works01:04
helloworld_xyz Ah, ok.01:04
Leemp joined01:04
helloworld_xyz Nothing recursive then?01:04
DrNick left01:05
cbreak there's a flag for that01:05
helloworld_xyz something like git submodule init lib/sub1 --recursive?01:05
That didn't work01:06
cbreak no, of course not01:06
novas0x2a joined01:06
cbreak randomly selecting commands rarely works :)01:06
frogonwheels joined01:06
cbreak helloworld_xyz: man git-submodule01:06
helloworld_xyz lol01:06
Gitbot helloworld_xyz: the git-submodule manpage can be found at http://git.or.cz/man/git-submodule01:06
cbreak check out "foreach"01:06
RandalSchwartz foreach?01:06
cbreak and "git checkout master"01:06
yes01:06
it's in the man page01:06
sixvu joined01:07
helloworld_xyz I've been there a long time by now01:07
sixvu Hey01:07
helloworld_xyz First instance : google01:07
Second : more google01:07
Third : IRC01:07
Fourth : Crying01:07
sixvu How to I pull a branch from origin which I don't have yet? git clone just pull the master branch01:07
cbreak pull is a merge01:08
sixvu (that used to be different with 1.4.something, right?)01:08
cbreak do you really want to merge the branch into your master?01:08
you likely do not want01:08
sixvu I just want to have the branch available locally01:08
cbreak then do git branch -r01:08
it should show you the remote ones you can pick from01:08
then do git checkout -t origin/foobarz01:08
helloworld_xyz "Evaluates an arbitrary shell command in each checked out submodule." -> Seems like I can't init them through this as they aren't "checked out"?01:08
cbreak you should get a local foobarz branch01:09
helloworld_xyz: you have them already01:09
why would you want to init them?01:09
you want to check out01:09
sixvu cbreak: jep, that worked. so the actual data is already there? because git pull still says that everything is up to date01:09
helloworld_xyz I see, thx01:09
Then do a submodule update?01:10
cbreak sixvu: if you did a git pull, you MERGED it into your current branch01:10
the git fetch part probably fetched all branches01:10
helloworld_xyz: that will not give you the newest01:10
it will give you the correct01:10
RandalSchwartz pull = fetch + merge01:10
generally not useful01:10
sixvu cbreak: I just did a clone, then the commands you said (which switched me to the new 'remote tracking branch', then I did a pull to actually get the data01:10
RandalSchwartz you want fetch, then figure out what you want01:10
cbreak pull is very nice if you have set up tracking01:11
RandalSchwartz if you're smart01:11
cbreak and expect fast forward01:11
RandalSchwartz local tracking branches generally mean you're not clued yet01:11
so if you have a lot of those, oops :)01:11
cbreak sixvu: you should have had the data already. hmm.01:11
RandalSchwartz nearly always, there are two camps:01:11
people wanting to know what's upstream, and have it01:12
or people wanting to keep rebasing on an upstream01:12
neither of those are served by pull01:12
so almost always, pull is wrong01:12
cbreak most people just want to get what ever remote has01:12
nevyn local tracking is bad?01:12
cbreak pull is perfect for that01:12
not really01:12
RandalSchwartz if you have a local branch that is always just the same as the remote branch, that's dumb01:13
cbreak no01:13
davr there's also pull --rebase01:13
RandalSchwartz just checkout the remote branch01:13
nevyn oh duh.01:13
RandalSchwartz right pull -rebase makes sense01:13
but naive pull is bad01:13
cbreak rebase is problematic01:13
don't do it unless you know what you are doing01:13
RandalSchwartz only if you're pushing01:13
as I said, let's distinguish those categories01:14
cbreak ... if you're not pushing, your work is probably not usefull anyway01:14
RandalSchwartz people just tracking remotes01:14
and people tracking local changes on remotes01:14
for both of those, fetch is better01:14
cbreak pulling IS fetching01:14
among others01:14
RandalSchwartz pull = fetch + merge01:14
cbreak exactly01:15
RandalSchwartz most people do not need the merge01:15
hence01:15
cbreak or fetch + rebase01:15
RandalSchwartz dude - see above01:15
jaysern do I undo a merge ?01:15
pantsman left01:15
RandalSchwartz don't want to repeat for the fourth time01:15
cbreak don't know01:15
do you?01:15
tvw left01:15
jaysern i just merged one branch to another, and want to undo it01:15
cbreak you can use git reset01:15
RandalSchwartz jaysern - just reset it01:15
git checkout THATBRANCH01:15
git reset --hard HEAD~101:16
helloworld_xyz Can't you generalize what you two people are saying to that if you want some code but don't modify it, you can use rebase, but if you're working on it you also want the merge, so pull?01:16
RandalSchwartz nope01:16
cbreak if you have not made any changs01:16
RandalSchwartz I don't like merge, ever01:16
cbreak rebase isn't needed01:16
RandalSchwartz either you're tracking remote01:16
cbreak rebase is for when you have local changes which you want to put on top of what ever is upstream01:16
RandalSchwartz so fetch works01:16
jaysern I merged 'a' into 'b', so i go to 'b' and reset it from there ?01:16
mike8901 left01:16
RandalSchwartz or I'm tracking local changes01:16
cbreak jayne: you want to reset it away from where it is01:17
RandalSchwartz so either pull --rebase, or fetch, and rebase01:17
helloworld_xyz So let's ask this: what can go wrong with rebase that's easier handled with merge?01:17
RandalSchwartz or if I'm developing with others, I follow rebase route generally01:17
helloworld_xyz According to cbreak01:17
jaysern oh, i forgot, so i have a private repo on github, which is just used by me. after merging, i pushed it01:17
cbreak both rebasing and merging can cause conflicts01:17
jaysern so i will have to undo the push ?01:17
cbreak you can force push afterwards01:17
jaysern so reset, then push01:18
RandalSchwartz yeah, force01:18
jaysern gotcha, thanks01:18
cbreak wether you rebase or merge depends on preference01:18
rebasing rewrites history01:18
for the purpose of making it linear01:18
RandalSchwartz but local history is heap01:18
cheap01:18
cbreak merging creates merge commits01:18
RandalSchwartz it depends on whether you've published that or not01:18
DWSR joined01:18
RandalSchwartz in general, rebasing local history is better for others01:18
cbreak which preserve the history, but you will get parallel strains of developnent01:18
RandalSchwartz rebasing pushed history is worse for others01:19
jinzhu joined01:19
cbreak if you pushed something, you should NEVER rebase01:19
unless everyone who pulls from there knows about it01:19
RandalSchwartz i think we violently agree, which is why I wonder why you're arguing with me01:19
DWSR Is there a way to a) remove all mention of select files from a repository or b) remove all mention of them from a push to a remote repository?01:19
helloworld_xyz hehe01:19
Paraselene__ left01:19
cbreak no good questions to answer.01:19
DWSR Break you, cbreak.01:19
helloworld_xyz That's a good IRC-quote, Randal.01:20
cbreak DWSR: you can with man git-filter-branch01:20
Gitbot DWSR: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch01:20
cbreak but be warned01:20
this will rewrite history01:20
and so, you will have to force the push to remote01:20
DWSR cbreak: that's fine.01:20
RandalSchwartz yup01:20
DWSR The remote is currently empty.01:20
cbreak and everyone who pulled from there will become very confused01:20
Hackykid left01:20
RandalSchwartz history will be rewritten :)01:20
the nazis won!01:21
DWSR You mean like CANADA WON THE MENS HOCKEY GAME?01:21
Sorry.01:21
RandalSchwartz no - in this new universe, canada lost01:21
jaysern what is HEAD~1 ?01:21
cbreak git filter-branch --index-filter 'git rm --cached nazi.txt'01:21
saccade_ left01:21
jhelwig DWSR: Yes, everyone was very confused by that. ;-)01:21
RandalSchwartz that's the consequence of your rewrite01:21
cbreak leftmost parent of HEAD01:21
Fernandos cbreak: hahaha funny command :D hahaah01:21
mike8901 joined01:22
jhelwig jaysern: HEAD~1 is the 1st generation 1st parent of HEAD.01:22
Fernandos rm -R /trash/nazi/01:22
RandalSchwartz mv /dev/nazi /dev/null01:22
Fernandos hahaha01:22
that's real geek humor01:22
I like that01:22
RandalSchwartz it happens01:23
hang out with me more. that's my humor level01:23
listen to FLOSS Weekly then01:23
twit.tv/floss01:23
Fernandos never heard01:23
DWSR cbreak: something like git-filter-branch --index-filter 'git rm <file>'?01:23
RandalSchwartz start. :)01:23
cbreak if you use --index-filter, you have to use --cached01:23
since it only changes the index, not the working dir01:23
(disclaimer: I've never used that command myself... make backups)01:24
DWSR This is a temp copy anyway01:24
If I use --tree-filter, will this completely obliterate the files, like a Frost DK with Killing Machine proc'ed?01:24
cbreak tree and index filter have the same result01:25
index is faster though01:25
DWSR So why use tree at all then?01:25
cbreak you can use non-git commands01:25
DWSR ah01:26
cbreak for example, run sed on the files01:26
RandalSchwartz are there non-git commands? :)01:26
cbreak index filter doesn't give you the files, they won't get checked out01:26
DWSR ugh, fail.01:27
git-filter-branch doesn't come with msysgit01:27
bremner orly?01:28
rtyler I'm blanking here, if I want to see a log of the changes that are unique in remote/branch, what's the right syntax?01:28
cbreak git filter-branch --tree-filter 'find . -name "*.cpp" sed -i bak \'s/foo/bar/m\' {} \; '01:28
maybe01:28
bremner DWSR: does msysgit have a problem with bash scripts?01:28
cbreak DWSR: it's git filter-branch01:28
DWSR cbreak: ah, thanks.01:28
bremner oops01:28
rtyler git log branch..remote/branch seems to be correct01:28
DWSR cbreak: How do I specify that I want to affect all repositories?01:29
err.01:29
s/repositories/revisions/01:29
sixvu left01:30
cbreak hmm.01:30
no idea.01:30
it doesn't work when you specify master?01:30
Fernandos damn.. I've to push 17 changes now01:30
what is rebase? I merged all projects now01:31
bremner check the man page, there's an option for git filter-branch to filter all branches, if that is what you mean01:31
Fernandos looks good, except that the log tree looks freaky01:31
cbreak Fernandos: man git-rebase01:31
Gitbot Fernandos: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase01:31
cbreak take a look at rebase -i, especially squash/edit01:31
although...01:31
no idea if you can squash merge commits01:31
DavidKlein^ left01:32
jhelwig rtyler: git log master..origin/master # <-- That will show you what is in origin/master that you don't have in your master.01:32
cbreak if in doubt, make backups :)01:32
Fernandos cbreak: I already have a backup01:32
DWSR git filter-branch --index-filter'git rm --cached -r *.bat' HEAD is incorrect syntax?01:32
Hackykid joined01:33
Fernandos cbreak: what I want to do is, to remove all those branches and merge the logs into the base01:33
cbreak this should delete all bat files in the current directory01:33
Fernandos cbreak: I guess rebase is for that01:33
bremner DWSR: maybe space after index-filter01:33
cbreak yes, that too01:33
maybe you have to escape the *01:34
so that git gets it01:34
but I think it should work :)01:34
DWSR cbreak: Ah, yes.01:35
Fernandos I'm rebasing now ...01:35
loinclot_ joined01:36
loincloth left01:37
Fernandos oh..01:38
rebase puts all files from all branches into the main dir?01:38
cbreak no01:39
rebase is powerful. history changing powerful01:39
DWSR cbreak: Ah.01:39
cbreak but it should not influence other branches01:39
DWSR cbreak: You need to add --ignore-unmatch in order to run through all of the revisions.01:39
themill left01:40
cbreak maybe. as I said, I only read the docs :)01:40
DWSR cbreak: Else the filter-branch stops on the first commit that doesn't have match the filter.01:40
Fernandos rebase takes much time...01:40
cbreak depends on what you rebase01:40
DWSR I'm rewriting 1450 commits!01:40
SlickT10 joined01:41
Fernandos I have 19commits01:41
but each with thousands of files01:41
cbreak as far as I know, noninteractive rebase only takes the changeset of the commits, and puts it on top of whatever01:41
Fernandos I think01:41
DWSR Fernandos: Yeah, I probably have ~500.01:42
Fernandos then I was doing something wrong..01:42
mjf left01:44
kpreid_ left01:45
sobersabre joined01:46
sobersabre hi. is there a way to add into the source code special tags to be substituted by git to show author, last commit date, etc. from the file itself ?01:46
(like svn properties svn:keywords)01:47
Nies left01:48
cbreak maybe you can hack together something with the hooks01:48
to replace them on checkout and commit01:49
cgkm joined01:49
sobersabre cbreak: it's something I'm just used to. It comes since the days of rcs, IIRC.01:49
cbreak or maybe filters01:54
DWSR sobersabre: Yes, it's definitely possible.01:54
You need to use hooks.01:54
cbreak sobersabre: man gitattributes, look for filter01:54
Gitbot sobersabre: the gitattributes manpage can be found at http://git.or.cz/man/gitattributes01:54
cbreak that's probably better than using hooks01:55
rloaderro left01:58
Hackykid left02:00
bob2 (it does go back to rcs, but few modern systems implement it directly)02:01
brettgoulder_ left02:06
Fernandos how do I find out if there is a commit that I have in a branche but not in the master?02:06
ericpugh left02:07
ericpugh joined02:07
ericpugh left02:07
Fernandos so commit diff between branch x and master02:07
bob2 diff is easy02:08
bremner sobersabre: http://git.wiki.kernel.org/index.php/GitFaq#Does_git_have_keyword_expansion.3F02:09
Fernandos bob2: ok.. and how do I do that?02:09
bob2 'git diff otherthign...'02:09
maybe log will do what you want02:09
saccade_ joined02:09
Fernandos I'm trying to see if I have a commit in a branch that I don't have in my master02:09
if not I'm goint to delete the branch02:10
brettgoulder joined02:12
SlickT10 left02:13
plediii_ joined02:14
SpookyET Is Google going to add Git? Mercurial sucks.02:18
sobersabre bremner: thanks, READING this.02:18
Fernandos ok.. better idea.. how can I archive a branch?02:21
is that possible?02:21
RandalSchwartz what does "archive" mean?02:21
a branch is a point02:21
so you have a specific commit02:21
what do you want to do with it?02:21
Fernandos I just don't want it to be visible in branches, but let the history and files stay02:21
kinda archiving some branches instead of deleting them02:22
cbreak push it to some other bare repo, zip that repo, burn it on a CD and put it into a save02:22
RandalSchwartz just tag it02:22
and delete the branch02:22
tags are relatively permanent02:22
Fernandos 1. switch and checkout branch B 2. tag branch B 3. delete branch B 4. switch and checkout master is this right?02:23
Chillance left02:27
VVSiz_ joined02:29
DWSR http://wowuidev.pastey.net/133593-3axk <-- cbreak: I'm getting this message from WoWAce when I push. I rewrote history already. wtf?02:29
cbreak git log --stat cd6d82ca979850417cf4121b193f59f102c8d79d02:30
what does it show?02:30
also, git log, is cd6d82ca979850417cf4121b193f59f102c8d79d in the current branch?02:30
DWSR cbreak: I'm commiting master.02:31
How do I show which branch I'm on? git status?02:31
cbreak yes02:31
or git branch02:31
DWSR Oh, yeah, I'm in master.02:31
It's on the damned prompt line. >.<02:31
VVSiz left02:32
DWSR Yes, cd6d82ca979850417cf4121b193f59f102c8d79d is in the current branch.02:33
nullvariable left02:33
nullvariable1 joined02:33
DWSR And it doesn't really show much02:33
nullvariable1nullvariable02:33
cbreak git log --stat should show the changed files02:33
Fernandos RandalSchwartz: nice that worked02:34
my history is almost linear now02:34
SpookyET Does anyone have any idea what this means? http://pastie.org/private/wqffctlhfsfq3vpgnxog It failed to push.02:35
magn3ts joined02:35
DWSR cbreak: http://wowuidev.pastey.net/13359502:35
laj joined02:35
cbreak weird02:36
do a git checkout cd6d82ca979850417cf4121b193f59f102c8d79d, does it contain still any bat files?02:36
magn3ts left02:37
magn3ts joined02:37
DWSR Yeah, it does. =\02:37
DWSR sighs02:37
jmcantrell joined02:38
DWSR I thought that git filter-branch would..you know, remove it.02:39
cbreak well... unless it's in a subdirectory :)02:40
I think I meantioned that02:40
DWSR I passed -r to git r.02:40
git rm*02:40
cbreak yeah. but -r means "remove folders including contents"02:40
it's like the -r to normal rm02:40
DWSR cbreak: Anyway, it removed the file from a bunch of commits.02:41
But not this specific one.02:41
Can I git rm from this checkout and then recommit?02:41
cbreak where is it?02:41
DWSR in the root02:41
cbreak you can, but you have to do git rebase -i02:41
it's probably in other commits too02:42
since it didn't show up in the log02:42
it has to be in at least the ancestor02:42
yml joined02:42
cbreak I'd try to do git filter-branch again, something must have gone wrong02:42
DWSR cbreak: How do I get back to head, git checkout HEAD?02:42
cbreak no02:42
DWSR (I'm used to working with a GUI).02:42
cbreak master02:42
DWSR ah k02:43
cbreak HEAD is where you are now02:43
hyperair left02:43
DWSR ah02:43
yml I have clone a repo on github. Done some changes and now I want to push the modification onto the branch I have created here : http://github.com/yml/django-varnish02:44
I can't find the secret spell to make it push there02:44
basus left02:45
cbreak why not?02:46
yml so far I am with this : git push --repo=git@github.com:yml/django-varnish.git origin master02:46
cbreak unm... what's that --repo for?02:47
DWSR cbreak: Once I do git filter-branch, do I have to recommit?02:47
cbreak: Because that's probably what I did wrong.02:47
cbreak I don't think so02:47
filter-branch should rewrite all your commits02:47
so the sha should change from all02:47
(you shouldn't have cd6d82ca979850417cf4121b193f59f102c8d79d anymore)02:48
DWSR Well I do, so obviously something's wrong. :P02:48
yml cbreak: I am trying to make git push to a different repo that I have clone from02:49
jhelwig DWSR: You'll still have that commit, but you shouldn't have it anymore in the branch you were running filter-branch on.02:49
cbreak then why do you specify origin if you don't want to push to origin?02:49
and why do you not add that other with git remote add first?02:49
kpreid_ joined02:49
f00li5h[HireMe] joined02:49
yml cbreak: In fact I am just trying to push to my newly created github branch02:50
cbreak don't write origin if you don't mean it02:50
scarabx joined02:50
yml cbreak: when I do not specify anything git tell me that everything is uptodate02:51
cbreak specifying something you don't want won't make it work...02:52
yml cbreak: I have started by this git push --repo=git@github.com:yml/django-varnish.git02:52
but it tell me that everything is uptodate02:52
sergio_ yml, you must tell git you have a new remote which you would like to push to02:53
cbreak how about doing what I said two or three minutes ago02:53
and just add it as remote?02:53
yml where in my local repository there is 3 commits that are noton github02:53
cbreak if you don't want to read the man page02:53
at least read what I write :)02:53
yml cbreak: git remote add -m [email@hidden.address] <= does this looks ok ?02:55
cbreak why did you throw a random -m in there?02:57
yml cbreak: because I read the man page and it seems to be that I want to add a master remote repository02:59
cbreak ... no02:59
that's not what -m does02:59
leave it away02:59
yml ok I also tried this : git remote add --mirror my_github [email@hidden.address]03:00
cbreak ...03:00
yml git didn't complain03:00
so I thought it was a good sign03:00
cbreak why the hell did you decide to use --mirror?03:00
it is not what you want with 99% probability03:01
yml ok trying without03:01
cbreak: thanks for you guidance03:01
cbreak np.03:02
locklace left03:03
DWSR cbreak: So I should be running filter-branch on master and *not* HEAD?03:03
cbreak depends03:03
Leemp left03:03
cbreak didn't you say your HEAD was master?03:03
DWSR I guess, I don't really know.03:04
cbreak (you did git checkout master after all)03:04
DWSR yeah. :P03:04
So I guess so.03:04
Not really used to git cli03:04
cbreak from what I read, it should work that way03:04
since it doesn't you either did something wrong, or the way I thought it'd work doesn't as I thought03:04
yml cbreak: could you pleaaaseee give me the secret spell to switch to my github branch and push the modif there ?03:05
cbreak switch to your branch?03:05
you can switch branches with git checkout branchnameyouwanttogoto03:06
but I don't know why you'd want to03:06
yml cbreak: sorry don't know the git wording03:06
cbreak: I did : git clone git://github.com/justquick/django-varnish.git03:06
cbreak you can just push with git push remotenameyoujustchose branchnameyouwanttopush03:06
yml hack commit hack commit03:07
SpookyET left03:07
locklace joined03:07
cbreak of course, you know you can't push to git://, right?03:07
j416 joined03:07
cbreak at least if my infos are correct, git:// is read only03:07
yml I now want to push my modification there: [email@hidden.address]03:07
cbreak then git remote add that...03:08
and git push03:08
DWSR cbreak: You don't have to add it as a remote.03:08
yml so that would be : git remote add [email@hidden.address]03:08
git push03:08
helloworld_xyz left03:08
cbreak yeah... but I asume he wants to push repeatedly...03:08
no03:08
defectiv joined03:08
yml yes03:08
cbreak yml... read the docs03:08
yml: man git-remote-add03:09
ah, it's git-remote03:09
yml thanks03:09
cbreak you have to give the remotes you add a name03:09
git remote add nameyouwanttogiveit url03:09
anyway03:09
bed time.03:09
Tommy[D] joined03:09
j416 left03:10
munichlinux joined03:12
hyperair joined03:15
sshc_ joined03:16
jast left03:17
sergio_ left03:17
Bass10 left03:18
squisher left03:18
reprore joined03:18
Fernandos what do I used "tag" for?03:19
eh I mean what is "tag" for03:19
fryguy provide a name to a fixed state of the repository (a released version, for example)03:20
jhelwig Fernandos: Generally people use tags to mark the various releases. If you get a copy of git.git, and do "git tag -l", you'll see all the various versions of Git.03:20
Fernandos so it's kind of a bookmark03:21
fryguy sort of03:21
Fernandos okay03:21
jast joined03:22
sshc_sshc03:23
DWSR jhelwig: Can't you do a *lot* more with tags?03:23
cytrinox left03:24
jhelwig DWSR: You can tag any object, but tagging releases is the most common use.03:24
johnw joined03:25
cytrinox joined03:25
Fernandos can someone help me rebasing the concrete5 branch and refining_search branch into master?03:26
http://image-upload.de/image/Raph1N/4b28792ff2.png03:26
DWSR git rebase -i?03:27
jhelwig Fernandos: Git checkout concrete5 && git rebase master #<-- That doesn't do what you want?03:28
Fernandos ah I didn't know that I had to checkout03:28
I tried git rebase concrete5 master without success ^03:29
lol03:29
hakunin joined03:29
Blaine joined03:29
DrNick joined03:29
Blaine in a git diff, what would "index ba57016..9b46a3f 100644" mean?03:30
Fernandos jhelwig: and then: git checkout refining_search && git rebase master ?03:31
jhelwig Fernandos: Yeah.03:31
Fernandos error: pathspec 'refining_search' did not match any file(s) known to git.03:31
jhelwig Blaine: The two SHA1s are the hashes of the file in the diff, and the last bit is the permissions of the file.03:32
Fernandos jhelwig: aah it is git checkout refining_search/master && git rebase master..right?03:32
jhelwig Fernandos: No? Is refining_search a remote or a branch?03:33
Fernandos a branch03:33
jhelwig Then you shouldn't have the "/master".03:33
Blaine jhelwig: in `git show <commit>`, is the first SHA1 the file before the commit?03:33
FFForever Anyone know a good reliable git host? with 10-15 projects?03:33
jhelwig Blaine: Yeah, if you're still talking about the "index ..." line.03:35
DWSR FFForever: github.03:35
Blaine jhelwig: yup, same line03:35
FFForever DWSR, for private projects?03:35
Blaine I'm having trouble figuring out which version the -/+ lines are referring to03:36
DWSR FFForever: You can probably configure github projects to be private.03:36
jhelwig FFForever: If you have a paid account, you can have private repos on GitHub.03:37
fryguy or just get a server somewhere03:37
and do git via ssh03:37
Blaine jhelwig: same goes for version a and version b?03:37
e.g. a/somefile b/somefile03:37
coolcat left03:37
Blaine a is before commit, b is after?03:37
RolaBlade joined03:38
jhelwig Blaine: You might want to check out man git-config and consider setting diff.mnemonicprefix03:38
Gitbot Blaine: the git-config manpage can be found at http://git.or.cz/man/git-config03:38
Blaine so if I have: --- a/somefile +++ b/somefile; + foobar; - foobaz; the commit adds foobar to somefile03:38
RolaBlade hello... I am trying to omit all object file when commiting but it does not work. I have *.o on my .gitignore file03:39
Rolenun left03:39
Blaine oh, sweet03:39
jhelwig RolaBlade: Have you already committed the .o files at some point in the past?03:39
RandalSchwartz RolaBlade - do they show up in "git status"?03:39
magn3ts left03:39
RandalSchwartz yeah - already added?03:39
Rolenun joined03:39
RolaBlade RandalSchwartz: yeah... they do show up in "git status"03:40
dys` joined03:40
RolaBlade jhelwig: I guess so03:40
jhelwig RolaBlade: If they show up in git status as anything other than "untracked files", then you need to "git rm <file>" and commit that before the .gitignore will keep them from showing up.03:41
If they show up as untracked files, then your .gitignore isn't quite right. ;-)03:41
FFForever does the server I am pushing to have to have git?03:41
jhelwig FFForever: As a general rule: Yes.03:42
FFForever as a requirement?03:42
DWSR No03:42
jaysern left03:42
bcoca might just have a repo, but then your methods are limited03:42
FFForever how so?03:42
I don't need public reading03:43
dys left03:43
RandalSchwartz you can't "push" unless you can push :)03:43
bcoca access methods, i think w/o git you only have local and ssh03:43
FFForever ahhh03:43
alus left03:43
RandalSchwartz and push requires git remote :)03:43
Ilari Without git on remote side there's only dumb HTTP (aaa...) or rsync (aaa...)03:43
jhelwig bcoca: You need git on the remote end with ssh.03:43
jaysern joined03:43
jaysern left03:43
bcoca stands corrected03:44
parasti left03:45
AkumaStreak_ joined03:46
AkumaStreak left03:48
RobertMeta left03:52
multigrain_ joined03:53
magn3ts joined03:55
multigrain left03:57
multigrain_multigrain03:57
consolers joined04:00
hipe joined04:00
eletuchy joined04:05
stringo0 left04:08
Twisted_Mentat left04:10
ArdRigh joined04:14
aziz left04:16
MetaCosm_ joined04:18
RobertMeta joined04:23
MetaCosm_ left04:24
Fernandos1 joined04:26
Fernandos left04:26
Fernandos1Fernandos04:26
RolaBlade left04:26
tedoc2000 joined04:27
dys`dys04:30
kukks left04:30
defectiv left04:31
ilteris_ joined04:32
Blaine left04:32
Blaine joined04:32
khmarbaise joined04:34
Fernandos left04:35
ankit9 joined04:38
dcampano left04:38
defn joined04:39
dcampano joined04:39
defn If i have a repo.git on my server and I scp it to another server, can I just change my local copy to point to the new server and continue where i left off without any issue?04:39
sunil joined04:39
hipe left04:39
xinming_ joined04:39
hipe joined04:40
consolers defn yeah04:40
so far so good04:40
sunil left04:41
Azeroth-Work joined04:42
Azeroth-Working left04:42
xinming left04:43
DWSR Is there a way that I can split a git repository into two repositories?04:43
RobertMeta left04:43
consolers sideways? or across?04:45
susheel joined04:47
tedoc2000 left04:47
DWSR http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository <-- Something like this is what I'm looking for.04:48
I'm assuming that those instructions are pretty accurate?04:48
sven^ left04:51
sven^ joined04:51
greg8si joined04:53
AAA_awright DWSR: Yep04:54
munichlinux left04:57
DWSR ok04:57
I just used git clone --no-hardlinks and somehow git's saying that a bunch of files are modified?04:58
aresnick left05:00
susheelsusheelvarma05:00
multigrain left05:00
susheelvarmasusheel05:01
MetaCosm_ joined05:01
DWSR http://xkcd.com/ win.05:02
greg8si left05:06
greg8si joined05:06
Leemp joined05:07
MetaCosm_ left05:07
MetaCosm_ joined05:08
Rolenun left05:08
khmarbaise left05:08
magn3ts left05:10
susheel left05:12
anathematic joined05:13
amerine joined05:14
anathematic how do I revert to an old commit? git checkout hash right?05:14
bob2 depends what you mean by revert05:14
checkout will revert the working copy05:14
revert will "revert" a branch05:14
bugfux joined05:15
ben_h http://twitter.com/hyazvco05:15
anathematic waves to ben_h05:15
ben_h ergh wrong chan, sorry folks05:15
eletuchy left05:15
ben_h hi anathematic :)05:15
anathematic bob2: I'd like to remove that commit for the moment05:15
ankit9 left05:16
ben_h anathematic: revert makes a new commit that reverses an existing commit05:16
anathematic ben_h: that sounds like what I'm after05:16
ben_h you can remove previous commits with either reset —hard or rebase, but both of those change your history05:16
anathematic so git revert hash_number ?05:16
ben_h so you shouldn't use them unless you haven't pushed05:16
yep05:16
anathematic thanks <305:17
ben_h in general you should only actually remove commits that were mistakes05:17
as opposed to code-level mistakes, which are legitimately part of your dev history05:17
anathematic ben_h: that's what I figured, I wasn't really sure what to do05:17
eletuchy joined05:17
anathematic I don't make mistakes so I odn't understand what you mean sorry ;-)05:17
ben_h lol.05:19
psankar joined05:19
yml left05:20
ben_h there's another undo concept i like as well, which is 'undo the fact that i just made a commit'05:20
git reset —soft HEAD^05:20
anathematic that whole reset --soft --hard thing confuses me a bit05:20
disappearedng left05:20
ben_h which means, reset HEAD to its parent, but don't change the working copy05:20
yeah it makes sense, just not in the way you might expect05:20
reset means "reset HEAD to a given commit"05:21
—soft means don't change the working copy, —hard means do change it05:21
anathematic ohh05:21
ben_h there's also —mixed, which i haven't looked into :)05:22
anathematic I think --soft and --hard are enough for me to deal with atm05:22
ben_h oh right, of course.05:22
—soft means don't change the index or the working copy05:22
—mixed means change the index, but not the working copy05:22
—hard means change both05:22
—mixed is the default05:22
anathematic kay will I'm going back to rails now because I know rails :-D05:23
thanks!05:23
consolers does gits getopt only accept -- (2 ascii char 45s) or does it accept unicode #x2014 em-dash05:24
cgkm left05:25
reprore left05:25
consolers ben_h your software is surreptitiously converting your -- to some unicode nonsense!05:25
ben_h consolers: i think it's &mdash;05:28
or whatever the char is05:28
irritating, let me see if i can turn it off05:28
ajonat joined05:28
MetaCosm_ left05:29
MetaCosm_ joined05:29
disappearedng joined05:30
anathematic left05:31
webus joined05:32
eut joined05:33
eut hello05:33
is there a way to temporarily revert a few commits? (i want to test performance between different patches)05:33
bob2 git help revert -> -n05:34
cloudhead left05:34
mssm left05:34
eut once they have been reverted, how do i un-revert them?05:38
offby1 "git reset --hard SHA1-FROM-BEFORE-YOU-REVERTED"05:39
defectiv joined05:39
ben_h eut: you should use a branch for that05:39
ttvd left05:39
bob2 git checkout -f05:39
ben_h git stash; git checkout -b test; git reset —hard OLD_ID05:40
bob2 oh, no need for -f05:40
we already did the other bit05:40
ben_h then just 'git checkout branch_name' to switch between master and test05:40
ttvd joined05:40
ankit9 joined05:41
jmcantrell left05:41
roop joined05:43
MetaCosm_ left05:44
Matt_R joined05:45
disappearedng left05:46
consolers left05:46
MetaCosm_ joined05:46
rgr left05:49
cgkm joined05:49
rgr joined05:49
rgr left05:51
xxthink joined05:51
rgr joined05:51
xxthink How to cancel a commit by git?05:51
bob2 cancel = ?05:51
xxthink I use git commit -a -m "xxx"05:51
bob2 commit the inverse?05:51
xxthink yes05:52
bob2 or remove it from history?05:52
xxthink I want to cancel this commit05:52
I only want to change the log message from "xxx" to "yyy"05:52
bob2 commit --amend05:53
xxthink bob2: do you know how to do that?05:53
ok05:53
bob2 assuming you never pushed it05:53
if you have, yhl, hand05:53
xxthink I still not push05:53
tildeequals joined05:53
ben_h if all you want to do is change the commit message, then you just want to recreate the commit05:54
which is commit —amend as bob2 said05:54
to "cancel" the commit, you can remove it from your history, using reset —hard, but that's probably not what you want.05:55
nullvariable left05:55
nullvariable joined05:55
project2501a left05:56
nullvariable left05:56
moconnor joined05:58
disappearedng joined06:00
scarabx left06:00
defectiv left06:01
project2501a joined06:02
brettgoulder left06:04
roop left06:05
roop joined06:07
muri_one joined06:09
RobertMeta joined06:09
MetaCosm_ left06:10
xxthink yes, thank you very much, ben_h and bob206:10
I use --amend06:10
loincloth joined06:11
muri_one does git look at file modification times before it does any hashing on files?06:11
Determinist left06:11
magn3ts joined06:11
taufiqkh joined06:12
johnw left06:12
ben_h muri_one: afaik git ignores modification times altogether06:13
loinclot_ left06:14
Ratler joined06:15
amerine left06:16
muri_one it seems surprisingly fast to be relying soley on a hash of file contents06:16
DrNick it looks at both mtime and ctime06:18
Textmode left06:18
amerine joined06:19
webus left06:20
ben_h oh sorry i'm with you now06:20
i was thinking of what's included in the commits06:20
defn If i have a repo.git on my server and I scp it to another server, can I just change my local copy to point to the new server and continue where i left off without any issue?06:21
bob2 should do06:22
scp might have trashed the perms though06:22
eli I'm getting lots of "Use of uninitialized value $git_dir in concatenation (.) or string at [...]" -- is there some known problem?06:25
bob2 that's not from git06:25
that's from perl06:25
eli Yeah -- gitweb.06:25
bob2 perhaps you didn't configure git_Dir06:25
spelt correctly even06:25
eli Looks like it's the repo directory, not a configuration option.06:26
(And otherwise things work fine.)06:26
dutchie left06:26
MetaCosm_ joined06:27
Adaptee joined06:27
rgr left06:27
project2501a left06:28
rgr joined06:28
ph^___ left06:29
eli ...and it also happens only on the gitweb top page, not when viewing a repository.06:29
amerine left06:30
RobertMeta left06:31
taufiqkh left06:32
ph^ joined06:32
reprore joined06:32
EricInBNE left06:36
magn3ts left06:36
reprore__ joined06:39
codeshepherd joined06:41
codeshepherd what is HEAD? I understand that HEAD points to the current branch.. but apart from that what is its purpose?06:41
rgr left06:42
reprore left06:42
rgr joined06:44
repro____ joined06:44
bugfux left06:44
reprore__ left06:45
Mage to point to the top of the current branch06:45
without having to know the exact branch head06:45
numer06:45
or hash, as it were06:45
greg8si left06:47
codeshepherd left06:47
codeshepherd joined06:48
repro____ left06:49
codeshepherd thanks maattd|away06:49
thanks Mage06:49
psoo joined06:49
marc_kdab left06:51
magn3ts joined06:51
mattcodes left06:51
Theravadan joined06:52
Ingmar joined06:52
VVSiz_ left06:55
codeshepherd left06:55
VVSiz joined06:56
codeshepherd joined06:56
RobertMeta joined06:57
sven^ left06:57
sven^ joined06:57
cjs joined06:58
codeshepherd left06:58
codeshepherd joined06:59
rgr left07:00
MetaCosm_ left07:00
tomekw joined07:01
krawek left07:02
wolog left07:03
bambule left07:03
rgr joined07:04
codeshepherd left07:06
voxpelli joined07:06
codeshepherd joined07:06
dpino joined07:07
codeshepherd left07:07
rgr_ joined07:08
cgkm left07:08
mattcodes joined07:09
thiago_home joined07:11
RdeWilde joined07:17
defectiv joined07:19
NetHawk left07:21
ph^_ joined07:22
mastro joined07:23
sde_antrix1 joined07:23
ajonat left07:24
maxthoursie joined07:24
artagnon left07:25
froschi joined07:27
Jeena left07:28
Azeroth-Working joined07:28
Azeroth-Work left07:29
spacebat left07:31
codeshepherd joined07:31
codeshepherd I did " git pull origin master" ==> git said the following ..07:32
From [email@hidden.address]07:32
* branch master -> FETCH_HEAD07:32
Already up-to-date.07:32
what exactly does *branch master -> FETCH_HEAD mean?07:32
spacebat joined07:32
moconnor left07:35
taufiqkh joined07:35
priidu joined07:35
ProperNoun joined07:36
Adjective left07:38
Jeena joined07:40
giallu joined07:40
ph^ left07:40
ph^ joined07:41
munichlinux joined07:41
voxpelli left07:43
thiago_home codeshepherd: it means git pull did: git fetch origin master07:45
which in turn downloads the master branch off origin and saves it in FETCH_HEAD07:45
FETCH_HEAD is a temporary ref that contains the result of the last fetch07:45
defn i need to learn git and quit doing crappy commits and learn how to merge properly07:45
i always get conflicted merges and then go through and edit files, commit stuff, get out of the conflicted merge but feel dirty afterwards07:46
codeshepherd thiago_home: where did it merge FETCH_HEAD with?07:46
DavidKlein joined07:46
thiago_home codeshepherd: master07:46
but the result was "Already up-to-date"07:46
voxpelli joined07:47
codeshepherd what confuses me is... which master does it refer to .. local master or origin master ... I am taking about the line * branch master -> FETCH_HEAD07:47
thiago_home: ^07:48
bob2 local07:48
eletuchy left07:48
skoop joined07:48
skoop left07:48
skoop joined07:48
eletuchy joined07:49
voxpelli left07:50
Jeena left07:50
Matt_R left07:51
thiago_home left07:51
taufiqkh is there any easy way to get git to ignore cr/lf eol differences when merging or cherry-picking?07:53
bob2 ultimately, fixing your developers will pay huge dividends07:54
robinr left07:54
bob2 or adding hooks that forbid it07:54
taufiqkh definitely, but in the meantime there's a fair bit of work to be done with an existing code base07:54
Pupeno left07:55
maxthoursie left07:55
Jeena joined07:55
maxthoursie joined07:55
Pupeno joined07:56
Pupeno left07:57
wolog joined07:58
steffkes joined07:58
maxthoursie_ joined07:59
maxthoursie left07:59
maxthoursie_maxthoursie07:59
maattd|awaymaattd07:59
maxthoursie_ joined08:00
maxthoursie left08:00
maxthoursie_maxthoursie08:00
taufiqkh left08:00
defectiv left08:00
gnufied joined08:02
alreadygone joined08:08
yhager left08:08
yhager joined08:09
Jeena left08:10
EricInBNE joined08:13
freedrull i can't git pull on windows, it just sits there forever. however, i did a git clone fine...08:13
maattd left08:15
janders joined08:15
FelipeMcMont joined08:15
janders Hi,08:16
project2501a joined08:16
janders I'm trying to create a new branch in a supermodule08:16
project2501b joined08:17
FelipeMcMont left08:17
janders however, when I include some submodules with branches e.g. a,b and c, other submodules also get these branches08:17
Which they should not have.....08:17
Anyone familiar with these operations? I have more infomation if someone can help08:18
sis joined08:19
Arafangion left08:19
project2501a left08:20
fmardini left08:22
ixti joined08:25
loincloth left08:26
loincloth joined08:27
fmardini joined08:28
fmardini left08:32
mbroeker joined08:38
fmardini joined08:38
sergio__ joined08:39
eckzow left08:40
ArdRigh left08:40
Jeena joined08:40
kristian42_ Is there a global option for .gitignore ?08:43
loincloth left08:43
loincloth joined08:43
kristian42_ I.e. not just per-repo ?08:43
codeshepherd git config --global core.excludesfile ~/.gitignore kristian42_08:45
psoo left08:46
d0ugal joined08:51
NetHawk joined08:52
psoo joined08:55
hyperair left08:55
froschi left08:55
dreiss left08:56
mssm joined08:57
shruggar joined08:57
khmarbaise joined08:58
reprore joined08:58
muri_one left09:01
twb joined09:02
r11t left09:02
aziz joined09:02
twb Does git://git.sv.gnu.org/screen.git have any tags? A simple clone of it has an empty "git tag" output, but I'm not sure if I'm doing it wrong.09:02
ISTR needing some trick to make tags "visible" in the local checkout09:03
Ilari twb: It does not.09:04
twb OK, so obviously the OTHER repo, I've manually create a tag.09:05
Ilari twb: It has only three branches.09:05
(caption-never, cmd-alias and master)09:05
ph^_ left09:06
rgr left09:06
ph^_ joined09:07
xxthink left09:08
twb How do I get "git tag" to tell me which hash the tag is pointing to?09:09
EricInBNE left09:09
EricInBNE joined09:10
twb Never mind, I brute-forced it09:10
Saur git show <tag> should work09:10
loincloth left09:11
loincloth joined09:11
twb I tried git log <tag>, which started from that tag09:11
Pupeno joined09:12
EricInBNE left09:12
Ilari twb: 'git rev-parse <tag>^{}'.09:12
twb What's the ^{} for?09:13
Saur twb: To get the SHA1 for the commit the tag is pointing to, rather than the SHA1 for the tag09:14
Ilari twb: Peel tags operator.09:14
nicoulaj joined09:14
twb My head hurts09:14
nithin joined09:15
Pupeno left09:16
nithin Hi ...is there any resource available that explains the git alternates mechanism?09:16
munichpython joined09:17
Ilari nithin: You are short on disk space or have some very large repositories?09:19
nithin no .. actually I have some code that I share b/w projects.. So was looking for the best way to set that up..09:19
munichlinux left09:20
Ilari nithin: Alternates has nothing to do with that... Submodules or subtree merges maybe?09:21
janders left09:21
janders joined09:22
nithin Ilari: would it be possible to share submodules with another repo?09:24
xxthink joined09:24
xxthink left09:25
JoseLobato joined09:27
Ilari nithin: It is. Submodules are independent repos.09:27
JoseLobato left09:27
nithin ILari: Thanks ..then I think thats what Im looking for..09:28
froschi joined09:28
frogonwheels nithin: look at it the other way round. you have your library as sperate project, then you import it as a submodule into the projects that require it.09:29
unreal_ joined09:30
Paraselene__ joined09:30
mason-l left09:30
eyzn i use submodules to fetch a bunch of projects im interested in09:30
nithin ILari: Im confused on one point.. any changes made to a submodule via a project branch that includes it .. how does it reflect on the separate library project.. ?09:30
eyzn instead of writing a script, which fetchs each project - i do one git submodule update and its ok09:31
nevyn left09:31
eyzn u have to push your changes in the submodule itself09:31
themill joined09:31
frogonwheels nithin: it's a seperate project from that point of view - you just push changes up.09:31
eyzn cd into it, change stuff commit and push09:31
unreal left09:31
unreal_unreal09:31
nithin frogonwheels: oh ok ..makes sense.. ill just need to read up a bit on submodules.. any pointers?09:34
tomekw left09:35
psankar left09:35
Theravadan left09:35
jkp joined09:36
ph^_ left09:36
ph^_ joined09:36
frogonwheels nithin: this was suggested to me, and helped: http://progit.org/book/ch6-6.html09:37
tbf joined09:38
frogonwheels nithin: I'm only just ahead of you. gathering info about them before using them :)09:38
dj_tjerk joined09:38
tomekw joined09:43
unreal_ joined09:44
PointMan joined09:44
reaVer left09:44
nizuri joined09:44
rgr_rgr09:45
tatsuya joined09:45
unreal left09:45
unreal_unreal09:45
simNIX joined09:47
mason-l joined09:47
NetHawk left09:48
steffkes if i have an f.e. symfony project .. with an _big_ lib/vendor folder .. a good idea to split this one in a submodule? or perhaps another idea for it?09:50
because lib/vendor inside the main project .. costs some seconds on an normal "git status" :/09:50
froschi left09:51
bluenovember joined09:53
Caelum what's the command to see diff to previous commit (without using the md5)09:54
twb left09:54
Ilari Caelum: 'git diff HEAD^'?09:54
Caelum: Or 'git diff HEAD'?09:54
Caelum: HEAD is last commit on current branch, HEAD^ is first parent of that.09:55
Caelum Ilari: thank you!09:55
Ilari Caelum: Also, MD5?09:55
Caelum from git log09:55
bob2 man git-rev-parse09:55
Gitbot bob2: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse09:55
bob2 ^ handy09:55
Ilari Caelum: Git uses SHA-1 as object name hash, not MD5.09:56
Caelum oh sorry09:56
nizuri left09:56
nizuri joined09:57
steffkes nobody an suggestions for git / sf & submodule yes/no/do-it-the-other-way-round? :>09:59
reprore left09:59
reprore_ joined10:00
aatanasov joined10:00
reaVer joined10:01
reaVer left10:01
reaVer joined10:01
alreadygone left10:02
anno^da joined10:04
sagsousuke joined10:06
willvarfar joined10:06
psankar joined10:07
willvarfar is terribly confused; I have a git server, and I have existing sourcecode, and I want to put it on the server10:09
Kelly_zhou left10:09
maxthoursie left10:10
willvarfar I have login working fine; on the git server there is a myproj.git already, but its empty; I clone it and I get an empty folder; I go into it, copy in my source, add, commit, push10:10
maxthoursie joined10:10
willvarfar it doesn't work: "You did not specify any refspecs to push" and "Perhaps you should specify a branch such as 'master'."10:10
froschi joined10:11
codeshepherd what is the difference between ^ and ~ ?10:12
defn git push origin master10:12
codeshepherd: in what context10:12
charon codeshepherd: man git-rev-parse10:13
Gitbot codeshepherd: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse10:13
codeshepherd git diff HEAD^1 or git diff HEAD~110:13
willvarfar defn, sweet! thx. so simple10:13
defn does anyone have a link to a good tutorial on git that uses branches, merges, etc. in a sort of real life context?10:14
kind of the git workflow for most users in an easy to follow tut.10:14
nithin frogonwheels: :)... thanks10:14
PointMan defn: check learn.github.com10:14
psankar left10:15
dajero joined10:15
defn PointMan cool site -- thanks10:15
RobertMeta left10:16
psankar joined10:18
consolers joined10:19
reaVer left10:22
loincloth left10:23
loincloth joined10:23
nizuri left10:23
eletuchy left10:24
zjason``` left10:24
zjason``` joined10:24
orafu left10:26
orafu joined10:26
novas0x2a left10:28
novas0x2a joined10:28
rolando joined10:29
viniciusluiz joined10:30
_Vi left10:31
consolers left10:31
robinsmidsrod left10:32
ijuma_ joined10:33
jetienne joined10:33
jetienne q. i got 7 repositories to pull, i currently do 7 git clone, is there a way to speed this up ?10:33
_rane pull?10:34
TDJACR left10:34
_rane you could do shallow clones10:35
if that suits your needs10:35
tobiassjosten joined10:35
Caelum where do I put my ssh key for msys-git10:38
Ingmar left10:38
Caelum if using the openssh it comes with10:38
TDJACR joined10:38
mstormo joined10:39
offby1` joined10:40
jetienne _rane: ok i do pull too. so i guess there is no magic bullet to speed up this case. Thanks10:40
offby1 left10:40
reaVer joined10:41
reaVer left10:41
reaVer joined10:41
jast jetienne: well, if they are completely different repositories, each clone has to get completely different data, so I don't think there could possibly any way to speed it up10:42
jetienne jast: thats cool. just wondered and ask to be sure10:42
jast sure :)10:42
tzafrir joined10:42
maxthoursie_ joined10:45
maxthoursie left10:45
maxthoursie_maxthoursie10:45
_Vi joined10:45
janders left10:45
tzafrir http://paste.debian.net/61951/ - my old git svn issue. Any idea what my next move can be?10:46
yhager left10:47
helloworld_xyz joined10:48
yhager joined10:48
helloworld_xyz left10:49
sylr joined10:50
sylr Hi10:50
willvarfar left10:51
maxthoursie_ joined10:51
sagsousuke left10:51
tzafrir sylr, hi10:51
sylr I have commited some changes on a wrong branch some times ago, what is the good behavior to have knowing this branch has been published and tagged ?10:51
maxthoursie left10:51
maxthoursie_maxthoursie10:51
maxthoursie_ joined10:53
maxthoursie left10:53
maxthoursie_maxthoursie10:53
sylr I was thinking : git diff 45baa94b~1 path/to/file/wrongly/commited | patch -R10:53
but i'm not sure this is the best thing to do10:53
jast sylr: git revert does pretty much that, but automatically10:54
reverts a complete commit, though. I'm not sure whether you want that.10:54
maxthoursie left10:54
maxthoursie_ joined10:54
maxthoursie_maxthoursie10:54
Ingmar joined10:54
beeman_nl left10:55
cYmen left10:55
sylr well, I don't want to revert entirely the commit, In fact I have switched branch but I forgot to commit in the previous branch10:55
maxthoursie left10:55
sylr and the change has been commited in the checkedout branch10:55
maxthoursie joined10:56
sylr and I can not use git revert because the branch has been published and it will rewrite the branch history, right ?10:57
teuf git revert creates a new commit, does not mess with earlier history10:58
git rebase -i / git commit --amend would rewrite published history10:58
sylr ok but I have a lot of commit since the "wrong" commit10:59
jast revert just takes a single commit and commits the reverse of it on top of the current history10:59
teuf you can start with git revert (if it works cleanly) and then amend that commit before pushing it to get what you want ?11:00
jast it works exactly like cherry-pick but it reverses the patch, too11:00
sylr Ok I will try that11:00
thank you11:01
hyperair joined11:02
robinsmidsrod joined11:03
bentob0x joined11:05
rolando left11:07
tzafrir specifically: how can I get rid of this wrongly-added commit 3504509917fab5479ba55ab7c008e92496463bd1 ?11:09
kang_ joined11:10
tzafrir (I'm not sure if this is the right question to ask, but it looks like a start)11:10
maxthoursie left11:13
jinzhu left11:13
maxthoursie joined11:13
_rane depends on your situation11:19
is it the latest commit, have you published it, etc.11:19
reprore_ left11:21
shruggar and what you mean by "get rid of"11:22
_rane we need a "how to remove a commit" flow chart11:24
shruggar sounds like a good way to kill a lunch break :)11:25
darkskiez joined11:26
darkskiez im trying to use git svn, and it has created a bunch of remote branches, "trunk@rev", i'd like to rename these remote branches to the correct thing, any suggestions11:27
shruggar what do you think the "correct thing" would be?11:27
darkskiez the branch name that it came from11:28
Rhonda darkskiez: If you want to keep using git svn to commit back simply don't touch them.11:29
darkskiez right..hmm..11:31
sven^ left11:31
TDJACR left11:31
darkskiez we have a fairly convoluted and horrible svn repository, we dont have a 'trunk', just branches for each major release, in order to migrate to git, there would need to be a transitional period. I was hoping to educate the team in the way of the git, but its just so extra complicated when using an svn backend :[11:31
sven^ joined11:32
shruggar darkskiez, my recommendation tends to be "if your situation is even remotely complicated, do not track multiple branches using git-svn"11:32
doener mine is: If you have a choice, drop svn11:33
Rhonda darkskiez: blame that on git and the way "tags" work in there, and that branches don't need to have any clear branch point to start off with. :)11:33
darkskiez I want to drop svn entirely11:33
tzafrir darkskiez, http://gitorious.org/asterisk-tools/asterisk-tools/blobs/master/update_branches11:33
Rhonda bleah, s/on git/on svn/ obviously11:33
darkskiez but i need a migration path11:33
tzafrir (but then again, using git-svn with the asterisk repo and recent git will break your repo)11:33
Rhonda darkskiez: You are raising much more pain with wanting to have a transition period where both works, most of the times even with just basic svn usage.11:34
darkskiez at the moment we have a bunch of hook scripts to validate svn commits, will have to port those to git first, tho, because you can push multiple commits to the server in one got, the commit validation is all a bit different.11:34
s/in one got/in one go/11:34
d0k joined11:36
dj_tjerk left11:36
TDJACR joined11:37
darkskiez I actually only wanted to checkout the current main branch as the trunk with git11:38
but it auto added all of these remote entries11:38
ivan joined11:40
shruggar what command did you use to clone the svn repos?11:40
Caelum the openssh in msysgit is giving me "referenced memory at "0x00000..."" probably because I have cygwin installed too...11:41
darkskiez git svn init --trunk=branches/build20 file://path/to/repo11:41
shruggar did you try "git svn init file://path/to/repo/branches/build20" ?11:42
(personally I tend to use git svn clone anyway)11:43
darkskiez shruggar: no, not tried that, will see what it does11:48
tzafrir Caelum, that is not really related to git11:49
reaVer left11:50
tzafrir gives up on any chance of actually getting answers to his questions in this channel11:50
darkskiez shruggar: it did the same but named them git-svn instead of trunk11:51
tzafrir maybe it's time to look at hg-svn or bzr-svn :-(11:51
defn tzafrir: irc does not part like the red sea every single time you need a tooltip11:51
if i could help you i would11:51
tzafrir defn, I don't expect it to11:51
maxthoursie_ joined11:52
maxthoursie left11:52
maxthoursie_maxthoursie11:52
tzafrir But right now I'm blocked by this issue, and lack the time to dig deeper into the technicalities (I already spent days on it)11:52
anno^da left11:53
tzafrir git-svn is a useful svn browsing tool for me, but I can't afford to spend too much time maintaning it11:53
Jeena left11:53
tzafrir I have already asked my question here and on the list several times, and hardly even got useful follow-ups11:54
sven^ left11:55
tzafrir I really don't expect IRC / mailing list support to do my job. But I have some minimal expectations of a project that attempts to be thriving11:55
</rant>11:55
sven^ joined11:55
locklace is git-svn thriving?11:57
i see more problem reports than people capable of providing answers for it, at least here11:57
tzafrir locklace, so you suggest I check the alternative? :-(11:57
locklace i assumed the right forum for it was a dedicated mailing list11:57
i'm not suggesting anything, just mentioning what i've seen11:58
shruggar locklace, git-svn is still actively being developed11:58
locklace, that is, a quick skim of the git logs shows that there have been several commits for it in the past week. It's not dead or anything11:58
tzafrir locklace, I asked twice about problems I had with it. Once I got several useful followups, and the issue is still a "missing feature"11:58
(certificate authentication over https)11:59
Second time was this issue. And I only got one follow-up, suggesting something trivial.11:59
locklace the list must be the best place for hardcore git-svn questions then. best bet is probably just to repost there regularly until you get a useful response12:00
parasti joined12:01
dajero left12:02
consolers joined12:02
catphish joined12:06
hipe left12:08
abms1116 joined12:09
hipe joined12:09
dajero joined12:10
Adjective joined12:13
ProperNoun left12:15
munichpython left12:19
munichpython joined12:19
pheaver joined12:21
catphish left12:21
comps left12:21
tzafrir locklace, actually if you look at the paste I posted here, I'm not sure it's strictly a git-svn question:12:25
http://paste.debian.net/61951/12:25
snearch joined12:29
loinclot_ joined12:31
radarek joined12:31
locklace tzafrir: definitely looks like an issue for the git and/or git-svn devs. you might have more luck here at a different time of day, or else send mail to the git list as well as the git svn one12:32
loincloth left12:32
locklace tzafrir: another pointed approach to take if you haven't done so already is file a bug report12:33
multigrain joined12:34
neunon left12:38
rduplain left12:38
JonathanT joined12:38
comps joined12:40
oliver3 joined12:41
Shapeshifter joined12:41
giallu left12:42
Shapeshifter We have a terminal server with hundrets of users (they don't use it very often). Now amongst other things, we would like to provide some sort of git repository. People should be able to create a branch and allow others to make changes on it. any ideas how to do this? with multiple users having different branches on the same machine?12:42
spaceonline joined12:42
loincloth joined12:43
consolers left12:43
loinclot_ left12:43
maxthoursie_ joined12:45
maxthoursie left12:45
maxthoursie_maxthoursie12:45
tzafrir Shapeshifter, sorry for the stupid question: how do users connect? (I'm not really sure what you mean by "terminal server)12:46
loincloth left12:47
loinclot_ joined12:47
Shapeshifter tzafrir: mhh, I called it terminal server because people also have nx access. In any case, people have access over ssh, and we can open any ports we like if neccessary12:47
alienBOB joined12:48
tzafrir Do users have some sort of public_html ?12:49
spb if everyone has ssh access, you can just create a git repo in your home directory and use regular unix permissions to allow access12:49
unijunction left12:51
tzafrir Shapeshifter, if they have, just consider the simple and lazy option: allow anybody to set up a repo on their home dir. No special write access12:52
Shapeshifter tzafrir: yes, we have public_html. what if we allo anybody to set up a repo in their home dir, can they allow others to access it nevertheless (even though other people do not have actual file access to other users folders?)12:53
loinclot_ left12:54
loincloth joined12:54
JEEB left12:55
JEEBcz joined12:55
Ilari Shapeshifter: Then if admins can get involved for setup, gitolite with "wildrepos" support enabled?12:55
dogmatic69 joined12:56
dogmatic69 hi all12:56
Ilari ...12:56
hced joined12:56
aatanasov left12:56
Shapeshifter mhh, sounds interesting12:56
dogmatic69 i have some new code/fies that are not yet commited to the repo, can i stash them and branch and then commit them to a new branch?12:56
Ilari Shapeshifter: The default mode works akin to MAC (Mandatory Access Control), but wildrepos mode is bit more like DAC (Discretory Access Control).12:57
Shapeshifter: You presumably need dedicated user account for gitolite... And also you need SSH keys from users (but CAP_DAC_READ_SEARCH/CAP_DAC_OVERRIDE is available, one could just read the from homedirs).12:59
xinming_ left12:59
JackTheRabbit joined12:59
charon tzafrir: still looking for help on http://paste.debian.net/61951/ ? have you tried skipping the problematic revision with the -r option?13:00
tzafrir: also, the real issue is that a ref can never end in a dot, see git-check-ref-format(1)13:01
swordz joined13:03
charon i also suspect that ignore-paths only works for files in the repo, and not for paths that are branches/tags, but that's just a theory.13:03
swordz Hi. I'm fairly new to git, and am using it on a ubuntu machine (or 2). For the previous weekend I cloned some repositories onto my laptop to work on them as I went away. I've just pushed them back and all the commit messages are in the log. The files however, are not.13:04
What have I forgotten?13:04
Ilari swordz: $faq non-bare13:04
Oh darn, gitbot's borked.13:04
Shapeshifter Ilari: okay thanks13:04
tzafrir charon, thanks. The option -r for what? (I don't see it for 'git svn fetch)13:05
loincloth left13:05
swordz so git push --non-bare ?13:05
It's not in the man pages13:05
loincloth joined13:06
Ilari swordz: Basically, don't push to checked out branch of repo with working copy.13:06
charon tzafrir: 'git svn fetch' takes a -r option that only lets it fetch the specified SVN revision range. so if revision N is problematic, you can try 'git svn init <options>; git svn fetch -r 1:N-1; git svn fetch -r N+1:HEAD'13:06
unijunction joined13:06
tzafrir charon, any idea what I can do to remove that broken commit?13:07
Ilari Shapeshifter: It seems even possible to only allow user 'foo' to create repos within '/users/foo/' (and then allow others to read and write to them).13:07
charon tzafrir: what do you mean "remove"?13:07
tzafrir not sure technically13:07
(git svn managed to put it in somehow already)13:07
dogmatic69 left13:07
charon oh, it did?13:07
i.e., git show 3504509917fab5479ba55ab7c008e92496463bd1 works fine?13:08
kpreid_ left13:08
tzafrir I also have a repo which worked fine with an older version of git, before that sanity check got in action13:08
charon, yes13:08
works fine13:09
charon hmm.13:09
i think you'll still have to use -r to skip it13:09
janders joined13:09
charon the fact that the commit object exists in your git repo doesn't seem to help much13:09
janders left13:09
charon and/or devise a patch that filters git-svn's ref names through some sanitizer function that lets it be compatible with git's rules13:10
abms1116 left13:10
tzafrir charon, -r seems to work . So far so good.13:13
Recreating this repo will probably take over a day13:13
f0rkit joined13:13
tzafrir So I'll only know for sure then13:14
charon tzafrir: you can keep that 'autotag_for_.' tag by using the update-ref provided, but adjusting the tag name so that git can cope with it13:14
tzafrir: also, if you have access to the server, i hear loading from file:// is much faster13:15
fahadsadah left13:15
tzafrir no, I don't13:15
pheaver left13:16
tzafrir at work I use svn over ssh, but connect through a control socket, which greatly reduces connection overhead13:16
auslander joined13:17
auslander left13:17
auslander joined13:17
RdeWilde left13:18
defn left13:19
corni joined13:19
icwiener joined13:20
darwin_ left13:20
darwin_ joined13:21
scarabx joined13:22
deuterium_ joined13:22
deuterium_ re guys13:22
psankar left13:23
FND joined13:23
loincloth left13:24
loincloth joined13:24
Ryback_ joined13:24
deuterium_ i've pushed my changes to origin/master, but now when my friend tries to pull these changes to his local repository, the tortoisegit client doesn't notice this change. what could be the problem?13:24
sven^ left13:24
sven^ joined13:25
FND when defining a custom alias (e.g. foo = !echo $PWD), CWD is always the repo root - is this intentional, or could it be considered a bug?13:25
charon FND: hysterical raisins, can't be changed any more.13:26
bentob0x left13:26
FND charon: is "hysterical raisins" code for backwards compatibility?13:26
charon it's a play on "historical reasons" that seems to be fairly common on the git list13:27
FND I don't suppose there's a workaround, as there's no way to pass in the spawning CWD?13:27
ah gotcha13:27
so it's a known wart13:27
jetienne old joke :)13:27
charon i'm afraid not. but you can place git-foo in your path and it will be invoked normally when you do 'git foo'13:27
FND that'll do, thanks13:27
(I currently have an alias gitsend, will make that git-send)13:27
reaVer joined13:28
bentob0x joined13:28
saccade_ left13:28
bentob0x left13:30
kpreid_ joined13:31
bentob0x joined13:33
deuterium_ left13:34
maxthoursie left13:36
maxthoursie joined13:37
deuterium joined13:38
deuterium re, sorry for the disconnect..13:38
mklappstuhl joined13:38
Adaptee left13:38
GarethAdams|Work joined13:39
style joined13:40
deuterium charon: do you have an idea what might have gone wrong if there are two "master" in my remote repository? might this be the reason why my collegue doesn't see my pushes when he pulls from the same remote repo (and me not seeing his)? i.e. that we both push to each our own remote masters instead of the same?13:40
roop left13:40
ben_h that's normal, deuterium13:41
style any ideas, why git push says: "ssh: connect to host gitorius.org port 22: bad file number"?13:41
sven^ left13:41
Yuuhi joined13:41
sven^ joined13:41
uau left13:41
wereHamster style: proxy/firwall in the way?13:41
multigrain left13:42
ben_h oh wait, sorry, i was thinking about the reverse, deuterium13:42
style firewall yes, but port 22 is open13:42
does it need some other ports too?13:42
ben_h i.e. fetching doesn't update your local master branch, only remotes/blah/master13:42
wereHamster style: no. try 'ssh -v [email@hidden.address] and see if anything stands out in the output13:42
style wereHamster: hmm says same13:43
uau joined13:44
maxthoursie left13:44
LRN joined13:44
wereHamster style: I didn't expect any different outcome, but the output can give you a clue as to where the problem might be13:44
jaql joined13:44
maxthoursie joined13:44
jaql left13:44
wereHamster style: use 'ssh -vvv ..' to get even more verbose output13:45
style mmh ok13:45
Saur style: Might wanna try strace as well...13:45
bremner joined13:45
style btw ssh connection to other servers works.. :(13:45
deuterium ben_h: so any idea what might be wrong with our remote repo? anybody ever experienced a similar situation (i.e. one doesn't see/get the other's pushes or that there are two masters in the remote repo)?13:45
ben_alman left13:46
Saur deuterium: What do you mean by two masters?13:46
style it says "Attempt to connec timed out whitout establishing a connection"13:46
connect*13:46
snearch left13:47
EXAAFZJ9 joined13:47
wereHamster deuterium: post the output of 'git for-each-ref' in the repo with the two masters13:47
defn joined13:47
nothingmuch joined13:47
style stupid me... its gitorious.org, not gitorius.org :D13:48
Saur lol13:48
eletuchy joined13:49
deuterium left13:49
chuck joined13:49
deuteriunm joined13:50
SpookyET joined13:50
deuteriunmdeuterium13:51
yashi joined13:51
tychoish joined13:51
SpookyET Wondering if anyone uses git porcelains like eg, yap, etc.13:51
deuterium wereHamster, Saur: ok, mompl13:51
tstclair joined13:51
swordz left13:52
deuterium Saur: in tortoisegit's pull dialog window there's a dropdown box to select/choose which remote branch to pull from. there are two 'master' entries there. there either seem to be two master branches in the remote repo or tortoisegit is buggy. which is more likely?13:53
ben_h deuterium: how do you mean, two masters?13:53
what does 'git branch -a' say?13:53
oh sorry, i lagged behind there13:53
hugoxrosa joined13:53
deuterium ben_h: two branches with the same name, i.e. two "master"13:54
ben_h deuterium: sounds like a tortoisegit bug13:54
you should use the commandline instead :)13:54
deuterium ben_h: oh ok13:54
Saur or it is not showing the full repfspec...13:54
ben_h yeah13:54
could be remotes/blah/master13:54
and it's just doing a basename13:54
deuterium let me check wereHamster's suggestion, too13:54
fahadsadah joined13:55
ben_h nice, wereHamster - didn't know that one13:55
Bass10 joined13:57
loinclot_ joined13:58
deuterium wereHamster: ok, the output is here: http://dpaste.com/166402/13:58
wereHamster deuterium: that repository has only one local branch 'master' (refs/heads/master)13:59
refs/remotes/origin/master is a remote tracking branch13:59
ben_alman joined13:59
style left13:59
deuterium wereHamster: that's what's displayed when i do a 'git for-each-ref' on the same server that holds our remote repo13:59
wereHamster: so is this the expected output? or anything wrong?14:00
Caelum what's the difference between GIT_AUTHOR_NAME and GIT_COMMITTER_NAME14:00
loincloth left14:00
remi joined14:00
wereHamster deuterium: is that repository non-bare?14:00
Caelum: author is the person who wrote the patch, committer who committed it to the repository14:00
mm_work joined14:01
giallu joined14:01
deuterium wereHamster: i.e. whether the one i issued 'git for-each-ref' contains outchecked files and dirs? yes14:02
wereHamster deuterium: it's not recommended to push into a non-bare repository14:02
Caelum wereHamster: thank you14:02
deuterium wereHamster: sorry, it's not the one we push to.. the one we push to should be bare (how can i check this?)14:03
should i do for-each-ref in the one we push to?14:03
eletuchy left14:04
FND left14:04
munichpython left14:05
wereHamster yes14:06
well, do it in the repo which has two 'master' branches (which is what seems to confuse you)14:06
vmiklos joined14:07
mvanholstyn joined14:07
deuterium wereHamster: here's the output when i do 'for-each-ref' in the remote repo directly: http://dpaste.com/166403/14:08
mvanholstyn left14:08
deuterium wereHamster: will also post the output when i do the same in the repo's clone on my client box (windows) here14:09
LRN left14:10
vmiklos left14:12
LRN joined14:12
maxthoursie left14:12
bcardarella joined14:12
rgr left14:13
vmiklos joined14:13
maxthoursie joined14:14
scarabx left14:14
SLiMIT joined14:16
deuterium left14:19
deuterium joined14:19
yhager left14:20
SLiMIT left14:20
yhager joined14:20
deuterium wereHamster: here's the output of 'git for-each-ref' when i execute it in the repo's clone on my local client box here: http://dpaste.com/166419/14:25
bauruine joined14:25
spb left14:25
deuterium wereHamster: to me, that actually looks like everything's fine with the remote repo and the local clones?14:25
jspiros left14:29
jspiros joined14:30
jspiros left14:30
jspiros joined14:30
bblfish left14:30
vmiklos left14:31
deuterium does anybody else here use the latest stable version of tortoisegit? if so, experiencing similar problems?14:32
LiamH joined14:32
JJoop joined14:32
kibab joined14:32
vmiklos joined14:33
kibab git gc is only for working copies isn't it? (i.e. non-bare repositories)14:34
JJoop left14:34
Mezner joined14:37
shruggar why wouldn't it be for bare repositories?14:37
Mike_MnD joined14:37
Mike_MnD i've added a file to the .gitignore but it's already tracked hot to make git stop tracking it from now on14:38
kokx git rm14:38
eletuchy joined14:38
wereHamster Mike_MnD: git rm --cached14:38
kokx wereHamster: thats only when its in the index14:38
wereHamster no, that's the one to use if you want to remove it from the index but not from the filesystem14:39
kokx Mike_MnD: is it already in the repo?14:39
wereHamster: and what if its in the repo?14:39
wereHamster he said it's already tracked.. (that means it's in the repo)14:39
Mike_MnD yes14:39
kokx does --cached work then?14:39
ok, then use --cached14:39
kang_ ive a stupid question, i rsync'd a .git directory with a comitted merge on it, but i can't find the merge on the rsync'd version. is there anything obvious i've missed?14:40
Mike_MnD mmm how can check without making a pull :)14:40
wereHamster Mike_MnD: for what purpose?14:40
kibab shruggar: because it keeps saying it's not a repository (because no .git file exists in the parent-chain)... which makes sense for bare repositories14:41
Mike_MnD well i've did a git rm --cached14:41
so i'm going to make a pull and see what happeneds14:41
PointMan left14:41
Mike_MnD but i'm curios if there is other way to check14:41
wereHamster you need to commit first14:42
ntoll joined14:42
Mike_MnD aham ok cause i was going to miss it since i commit jsut before removing the cached14:43
michuel joined14:43
Cascade- joined14:44
Cascade- MsnBot [Freezer] [MassAdder] [And More] Add 'bot@hackersrus.info' to your contact list for FREE access!14:44
vmiklos left14:44
Cascade- left14:44
mm_work left14:44
Mike_MnD hmm :( after a pull it still takes and replace the file14:45
vmiklos joined14:45
michuel left14:45
Mike_MnD i've got .gitignore in main folder and have webroot/index.php14:46
radarek left14:47
wereHamster Mike_MnD: maybe you misunderstand how .gitignore works and expect a different outcome ...14:48
loincloth joined14:49
loinclot_ left14:49
plediii_ left14:51
dcampano left14:52
kpreid_ left14:52
cannonball joined14:52
Mike_MnD wereHamster: i don't misunderstand it since it's working for other files14:53
Yuuhi left14:53
Mike_MnD but the case is i want to ignore and stop track14:53
Yuuhi joined14:53
wereHamster git rm --cached <file>; git commit14:53
Mike_MnD a file which is added and tracked in the moment14:53
wereHamster I don't see what that has to do with pull/checkout14:53
Mike_MnD well i've got some settings in index.php which are for dev and pub and14:54
when i make a pull for public for example it takes the dev settings14:54
and vice versa14:54
btw i think i found solution14:54
http://www.pagebakers.nl/tag/git-ignore-tracked-files/14:54
jast read the hints in the manual about --assume-unchanged. it has some pitfalls.14:55
bblfish joined14:55
kpreid_ joined14:56
Mike_MnD jast ok do you use/recomend other way for this ?14:56
nanoo joined14:57
GarethAdams|Work left14:57
Mike_MnD left14:59
tomekw left15:00
kukks joined15:02
loincloth left15:02
rgr joined15:03
stepnem joined15:04
dcampano joined15:04
spb joined15:04
Haarg left15:05
hakunin left15:06
rgr left15:06
stepnem left15:08
jmcantrell joined15:08
stepnem joined15:08
enyovelcora joined15:09
steveire left15:10
pheaver joined15:11
agile joined15:11
sagsousuke joined15:11
binjured joined15:11
enyovelcora I have a Webproject in a git repository. This Project depends on other JS Frameworks; some of them are written by me, some of them by other people in either SVN or git or whatever repos. I now want them in my project, in my git repository, so I don't have to maintain different repositories on my deployment server, and have to worry about them being up to date.15:11
shruggar I've got a merge conflict, and the conflict markers read "<<< HEAD ..[some data here].. >>> WIP" Is there any way to get the conflict markers to say something more useful than HEAD? HEAD sounds wrong to me. "HEAD" is, in my mind, where I was before I ran rebase. (aka: the commit with the message "WIP"). I don't have any commits with the message "HEAD".. it's all very head-slam-into-wall-ish15:11
hugoxrosa left15:12
psankar joined15:12
yairgo left15:12
enyovelcora I now thought of hard linking those files on my local drive, so any changes I do to other frameworks will be changed in my git folder for the webproject.. This way I have total control of when I want to checkin a new version of another framework.15:12
The problem with that, is that git seems to destroy those links from time to time... (probably when creating branches)15:13
eMxyzptlk left15:13
enyovelcora Is there a good solution for that problem?15:13
eMxyzptlk joined15:15
marc_m joined15:15
khmarbaise_ joined15:17
alexpercsi joined15:18
smuf joined15:18
shruggar enyovelcora, submodules, perhaps?15:18
alexpercsi how do i create a branch from origin/master?15:19
enyovelcora shruggar: Is it possible to specify a specific version in submodules?15:20
marcusb joined15:20
khmarbaise left15:20
khmarbaise_khmarbaise15:20
nizuri joined15:21
shruggar enyovelcora, as far as I know, it is not possible to NOT specify a specific version in submodules15:22
marcusb left15:22
TeckniX joined15:22
enyovelcora shruggar: :) Ok... I guess that is what I'm looking for then... even it seems awfully complicated for what I need.15:22
binjured left15:22
shruggar though I'm pretty sure that they act in a stupid and utterly broken manner when switching branches15:23
marc_m left15:24
enyovelcora shruggar: arg.... that's no good then... I'm branching a lot!15:24
jaql joined15:25
marc_m joined15:26
alienBOB left15:26
maxthoursie left15:26
maxthoursie joined15:27
kibab left15:27
rgr joined15:28
shruggar enyovelcora, they may have fixed it by now, but I think the way it works is: when you switch branches, submodules are not effected. In order to make the submodule switch to whatever it was pointed at for that branch, you need to manually say something like "git submodule update"15:28
alexpercsi left15:28
enyovelcora shruggar: ... ok thanks! Sounds kinda horrible...15:29
jast you can write a hook to automatically run that. it takes about half a minute. ;)15:29
shruggar I don't know much about submodules because I gave up on them quickly15:29
angiez_way69 joined15:29
marc_m left15:31
marc_m joined15:32
spb left15:35
nizuri left15:35
sonicrules1234 joined15:36
loincloth joined15:36
lxsameer joined15:36
spb joined15:37
lxsameer hi how can i make my website a repository i mean when i want to change some code of my site just push my local to it15:37
skoop left15:38
steffkes lxsameer, what? :D15:38
kolokolo joined15:38
themill left15:38
themill joined15:39
brodyberg joined15:39
psoo left15:39
lxsameer steffkes: hmmmmmmm , hard to say . for example i work on example.com website , i want to add some code to it , so i add those code to my local clone and push them to server and example.com update with my code15:39
kolokolo quick question: I'm on a local branch (not yet present in the origin repo) that I have locally tagged. I want to push the tag (but ONLY the tag, not the branch). So I do "git push origin MYTAG". However, it won't work.15:39
Any idea ?15:40
sonicrules1234 left15:40
kolokolo Can I only "push" branches ?15:40
steffkes lxsameer, try post-receive hook?15:40
lxsameer steffkes: my problem is setting up such repo15:41
jast kolokolo: try: git push origin tag MYTAG15:42
steffkes lxsameer, then .. what's your exact problem? create the repo on the server? clone it? push to the server? or what?15:42
nizuri joined15:42
cilly joined15:43
pmarsh left15:43
lxsameer steffkes: if i put my repo in server then how can i access it , i mean with what url?15:43
nullvariable joined15:43
shd joined15:43
codeswing joined15:43
kolokolo jast: it says "everything is up to date".... but nothing was actually pushed15:44
marc_m left15:44
marc_m joined15:45
jammi joined15:47
kolokolo ok... I found out what was going on... tags are actually pushed, however you ned to "git fetch -t" (-t !!!!!) to fetch those tags that are not reachable from remote branches15:47
mattcodes left15:48
kolokolo Hmm... maybe "-t" shuld not be required for this... but anyway... :)15:48
jammi Hi, is it possible to clone a svn checkout (with uncommitted changes) using git svn somehow?15:48
The intention is to have a sub-repository using git and commit to svn now and then when things are in order.15:49
steffkes lxsameer, if you need to push to it .. ssh is your friend15:50
lxsameer, otherwise http or git:// or working for read-ony operations15:51
parasti jammi: that's what git-svn is for, except you would clone from the SVN repo and move your changes over manually15:51
lxsameer steffkes: thanks man15:51
aresnick joined15:51
brendon_work joined15:51
jammi parasti: Thanks, I was just figuring out if there would be an automated process for it15:52
Novelocrat joined15:53
parasti jammi: I mean your current uncommited changes, not every change you ever make15:53
spearce joined15:53
rduplain joined15:53
jammi parasti: Yes, I got that :)15:54
pheaver left15:56
sumangurung joined15:56
webchick joined15:57
shbwvl joined15:58
esc hey, whats the syntax for using 'recursive' with 'theirs'?15:59
as a merge strategy15:59
kolokolo left16:00
kpreid_ left16:00
mbroeker left16:01
smotchkkiss joined16:01
AAABeef joined16:02
binjured joined16:03
kpreid_ joined16:04
krawek joined16:05
ixti left16:07
maxthoursie left16:07
maxthoursie joined16:07
bauruine left16:08
gnufied left16:08
Matt_R joined16:08
codeswing left16:09
angiez_way69 left16:09
codeswing joined16:09
codeshepherd left16:10
malumalu joined16:10
f00li5h[HireMe] left16:10
krawek left16:10
krawek joined16:11
charon -Xtheirs ?16:11
esc: ^16:11
psankar left16:12
catphish joined16:12
esc charon: error: unknown switch `X'16:15
:-(16:15
charon update your git?16:15
esc: -X is only in 1.716:16
esc awwww :-(16:18
ph^ left16:18
ph^ joined16:19
kumbayo joined16:19
sde_antrix1 left16:19
ph^_ left16:20
munichlinux joined16:23
jaql left16:24
ab3 left16:25
f00li5h[HireMe] joined16:25
deuterium left16:28
deuterium joined16:28
lxsameer steffkes: i build every thing but when i try git clone ssh://user@host.com/www/project/16:33
deuterium left16:33
Matt_R left16:34
lxsameer i get an error that say can not chdir to the address16:34
steffkes: what should i do16:34
steffkes lxsameer, not sure .. but insert an : bewteen host.com & the path16:34
alley_cat joined16:34
steffkes and use the absolute path on your box after the hostname16:34
jast no, that would be mixed syntax16:34
if you use the ssh:// URL style, use an absolute path16:35
steffkes mixed syntax jast?16:35
ah okay16:35
jast otherwise, use user@host:relative/path/to/home16:35
*without* URI scheme prefix16:35
aresnick left16:35
lxsameer jast: so should i enter this user@host:www/project/?16:36
jast: should i append .git to path ?16:36
k23z__ joined16:37
SRabbelier joined16:38
lhz joined16:39
lxsameer jast: its works thanks man16:39
aresnick joined16:39
jrmuizel joined16:39
offby1`offby116:40
offby1 left16:40
offby1 joined16:40
sh1mmer left16:40
steffkes lxsameer, append .git or not is mainly depending on you've created an bare-repo or not .. i guess16:42
hugoxrosa joined16:42
minaguib left16:43
inffcs00 joined16:43
inffcs00 left16:44
ph^_ joined16:44
minaguib joined16:46
mike8901 left16:46
GarethAdams|Work joined16:47
Matt_R joined16:49
catphish left16:49
nanoo left16:49
xperience joined16:49
marc_m left16:51
lresende joined16:52
nizuri left16:53
nizuri joined16:53
mklappstuhl left16:53
f0rkit left16:54
maxthoursie left16:55
maxthoursie joined16:55
kpreid_ left16:57
abergal joined16:57
pheaver joined16:59
kang_ left17:00
mike8901 joined17:00
nizuri left17:00
mike8901 left17:02
JonathanT left17:02
Haarg joined17:02
muri_one joined17:04
Yuuhi left17:06
dj_tjerk joined17:08
sagsousuke left17:09
Yuuhi joined17:09
fmardini left17:10
hugoxrosa left17:11
psoo joined17:12
maxthoursie left17:12
kipras joined17:13
tstclair_ joined17:13
maxthoursie joined17:13
tstclair left17:13
priidu_ joined17:13
pheaver left17:14
yann joined17:15
mike8901 joined17:16
steffkes left17:16
lhz left17:18
themill left17:18
SpookyET left17:19
tobiassjosten left17:19
Matt_R left17:19
froschi left17:21
bblfish left17:21
hipe left17:21
defectiv joined17:22
mcdebugger left17:22
NetHawk joined17:24
chouquette left17:25
chouquette joined17:25
shruggar is there a quick way to see "what branch was I last on?", I know I can read through the reflog, looking for an entry that says "moving from foo/bar to foo/baz", but is there anything cleaner?17:25
hugoxrosa joined17:25
novas0x2a left17:27
tzafrir shruggar, 'git branch' ?17:27
dancor left17:27
tzafrir sorry, I missed the whole question17:27
troyt joined17:27
christophsturm joined17:28
bradhaydon joined17:29
GarethAdams|Work what would happen if I put .gitignore in my .gitignore file?17:29
dancor joined17:29
locklace shruggar: i think the reflog exists pretty much to answer exactly that sort of question17:29
GarethAdams|Work something would explode, right?17:29
like searching for Google in Google17:29
RdeWilde joined17:31
shruggar yeah, the reflog is a bit too human-centric for me :/17:31
"do-able, but uglier than I'd like"17:32
parasti left17:32
pasky human-centric?17:32
locklace GarethAdams|Work: i assume it would prevent the .gitignore file from being tracked17:32
tetha left17:32
bdiego joined17:33
kpreid_ joined17:33
shruggar pasky, as in: it has text descriptions of what happened, designed to be read by a human. It tends not to have everything laid out in a nice clean layout which is simple for a script to parse17:33
gnufied joined17:33
pasky /checkout: moving from (.*) to (.*)/ ? :)17:33
but yes it does have ugly warts17:34
9b7e3fb8fd8af3d48a8ff847d81429b41e3f6973 0564a7fc7dddb48006c3f244ca34c9a7a205e2b2 Petr Baudis [email@hidden.address] 1265847046 +0100 HEAD^: updating HEAD17:34
especially this17:34
tetha joined17:34
pasky and the space after pull is not nice either :/17:34
disappearedng left17:35
locklace shruggar: maybe what you actually want to do is read the files reflog reads17:35
mcdebugger joined17:36
shruggar GarethAdams|Work: if you add .gitignore to .gitignore, exactly the same thing happens as would in any other situation you add something to .gitignore17:37
GarethAdams|Work, ie: .gitignore (if not already tracked) will not show up in "git status" output, and (if not already tracked) recursive adds will not add it17:38
pasky locklace: but they are in the same format :)17:38
locklace oh well.17:39
nik0 joined17:39
wolog left17:39
shruggar left17:40
nikoGuest7918817:43
nik0niko17:43
stringo0 joined17:43
Guest79188 left17:44
Vortex35 joined17:45
tedoc2000 joined17:45
MetaCosm_ joined17:46
MetaCosm_ left17:46
mw joined17:46
MetaCosm_ joined17:47
mklappstuhl joined17:47
Vortex34 left17:47
disappearedng joined17:49
uau left17:50
kpreid_ left17:50
remi left17:50
uau joined17:50
Mike_lifeguard joined17:51
dreiss joined17:51
ixti joined17:52
remi joined17:52
nanoo joined17:53
PerlJam joined17:54
kpreid_ joined17:54
nizuri joined17:54
munichlinux left17:55
munichlinux joined17:55
bradhaydon left17:57
przemoc left17:57
d0ugal left17:57
przemoc joined17:58
kpreid_ left18:00
greg8si joined18:00
bradhaydon joined18:00
brodyberg left18:01
greg8si left18:01
mbroeker joined18:02
ksn joined18:03
disappearedng left18:03
sh1mmer joined18:05
tildeequals left18:08
f00li5h[HireMe] left18:09
Chillance joined18:09
csgeek is there an easy way of saying.. commit all these files that changed except these 3. I guess I could temporarily add to .gitignore.. but wonder if there's a cleaner way18:10
jhelwig csgeek: git add . && git reset the three files ?18:10
csgeek hmm.. that would work.. I suppose though the files are in different directories.. but general idea18:11
hipe joined18:12
brizly joined18:12
doug8429 joined18:13
shbwvl left18:13
jaysern joined18:14
bauruine joined18:15
smuf left18:16
abergal anyone have any idea why a 'git svn clone' might silently fail after the message "This may take a while on large repositories"?18:16
greg8si joined18:16
bblfish joined18:16
abergal doing a trace, the last msg is "trace: built-in: git 'gc' '--auto'"18:17
psoo left18:17
jhelwig You sure it's silently failing, and not just done?18:17
pantsman joined18:17
abergal well the .git folder is created, so i guess it does the init, but not the fetch, since there's no other files in the directory18:18
f00li5h[HireMe] joined18:19
lxsameer left18:20
jhelwig abergal: Is this a publicly available repo? What arguments are you giving to git clone? Can you pastie the full output you're getting, and what "echo $?" gives immediately after it silently fails?18:21
dpino left18:21
abergal no, not publicly available...18:21
psoo joined18:21
disappearedng joined18:21
thiago $ git br --set-upstream staging/4.718:21
Branch staging/4.7 set up to track local branch tmp/qtimestamp.18:21
hmm... I wanted the exact opposite. Aren't the semantics of git branch --set-upstream somehow inverted?18:22
abergal args: git svn clone --prefix svn/ -s svn://svnrepo/subdir/18:22
Theravadan joined18:22
abergal would you prefer the trace output for the pastie?18:23
jhelwig thiago: That does seem completely backwards to me. Post something to the mailing list about it?18:24
sven^ left18:25
sven^ joined18:25
Ilari thiago: You hit the 'create branch' case?18:25
thiago Ilari: yes18:25
jhelwig abergal: I'm not sure what would help, honestly. If it was publicly available, I was just going to try cloning it myself using the same args as you.18:25
abergal ah ok, well "echo $?" returns 0 if that helps...18:27
jhelwig Well, that means that it thinks it completed successfully.18:28
abergal right18:28
nicoulaj left18:28
zodiak joined18:28
bluenovember left18:28
sven^ left18:29
abergal fyi, i cloned the repo successfully using my Mac OS 10.5 machine, but having trouble on this Snow Leopard machine18:29
jhelwig abergal: Same version of git on both?18:29
sven^ joined18:29
abergal yep, 1.6.618:29
blaines joined18:30
viniciusluiz1 joined18:31
viniciusluiz left18:31
jhelwig abergal: Are there any differences in the normal output, or the trace output between the two boxes up until it fails on the one?18:32
_iron joined18:32
maxter joined18:33
abergal dont have the 10.5 machine on hand, but IIRC, they're the same18:34
loincloth left18:35
loincloth joined18:36
abergal (the normal output that is, didnt do a trace on the 10.5 machine)18:37
ericpugh joined18:37
tg left18:37
nadavoid joined18:38
GarethAdams|Work I wrote my git remote add wrong: `git remote add [email@hidden.address] gareth`18:38
now when I try and remove it, I get `fatal: Invalid refspec 'refs/heads/*:refs/remotes/git@github.com:gareth/jti.hand-i.net.git/*'`18:38
tg joined18:38
jhelwig GarethAdams|Work: You can just edit your .git/config file, and remove the remote that way.18:39
flazz joined18:39
GarethAdams|Work jhelwig: is that the only place it's stored?18:39
JEEB__ joined18:39
jhelwig Yeah.18:39
GarethAdams|Work cool18:39
doug8429 left18:40
flazz say i want to split a project in two. can i get the history of only certain files from the old project and put them in the new one before i delete the files?18:40
tildeequals joined18:40
jhelwig flazz: You can by using filter-branch. man git-filter-branch18:40
Gitbot flazz: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch18:40
flazz jhelwig: thanks18:40
JEEBcz left18:41
jhelwig Basically, make a new branch, or copy the repo, and use filter-branch to delete everything _except_ what you want to split into a new repo.18:41
toxx_ joined18:41
d0ugal joined18:42
project2501b left18:43
GarethAdams|Work left18:44
oliver3 left18:44
godsflaw joined18:45
blaines left18:45
ribasushi left18:47
sven^ left18:55
kpreid_ joined18:55
sven^ joined18:55
psoo left18:56
nizuri left18:57
jrosdahl_ joined18:58
christophsturm left18:59
jrosdahl_ left19:00
jrosdahl joined19:00
tatsuya left19:01
flazz jhelwig: is a straight cp good enough to copy the repo?19:01
f00li5h[HireMe] left19:02
jhelwig flazz: cp -r, but yeah, there's nothing special you need to do.19:02
flazz nice19:02
sh1mmer left19:02
GodEater_ joined19:04
GodEater_ left19:04
GodEater_ joined19:04
f00li5h[HireMe] joined19:05
JEEB joined19:05
GodEater_GodEater19:05
froschi joined19:06
rapha joined19:06
rapha Hi all!19:06
JEEB__ left19:07
rapha A developer has asked me to check out a specific branch of his software, the URL is http://github.com/newrelic/rpm/tree/2.10.6_dev - how do I do that?19:07
justin-george joined19:07
dr_jesus joined19:07
k23z__ is there a github client so that I can check my messages and send messages to other users19:08
smotchkkiss left19:08
dmsuperman joined19:08
dmsuperman I'm having a strange behavior that makes me think I don't understand gitignore19:08
http://paste.cjohnson.me/25219:08
That says block all and then allow everything that begins with .vim right?19:09
Except .vim/swap and .viminfo19:09
priidu left19:10
priidu_ left19:11
sergio__ left19:11
doener dmsuperman: the * isn't anchored, so it applies in every directory19:12
magn3ts left19:12
sergio_ joined19:12
doener dmsuperman: you might want to use /* instead19:12
dmsuperman Ah19:14
Thank you :)19:14
berndj joined19:15
sh1m joined19:16
timcharper joined19:17
sven^ left19:18
sven^ joined19:18
dutchie joined19:19
dutchie left19:19
dutchie joined19:19
mjf joined19:20
tesseracter joined19:20
Tureba joined19:21
bambule joined19:21
tesseracter i want to revert the last... 17 commits. git revert HEAD-17?19:21
dmsuperman ^1719:21
zomg Revert only reverts a single commit19:22
tesseracter zomg: so... how do i do git "HULK SMASH!"19:22
zomg I think you could git checkout head~17 and then just commit19:22
Not sure really19:22
=)19:22
tesseracter thats something i can try...19:23
zomg git help revert may provide more info19:23
ikrabbe left19:23
locklace tesseracter: do you actually want to revert, or reset19:24
dmsuperman left19:25
ehabkost joined19:25
sagsousuke joined19:26
DanielHolth joined19:27
DanielHolth Does "git tag" with no arguments do anything? I notice it fails on older versions of git, but runs without output on newer git.19:27
matthieu joined19:27
doener DanielHolth: it shows a list of existing tags19:28
robinr joined19:28
mastro left19:29
DanielHolth thanks doener. on old git, I just have to say "git tag -l" I guess.19:29
codeswing left19:31
dr_jesus hey, I'm trying to merge two repositories together and I'm not sure how to do it with git merge19:31
rgr left19:33
brodyberg joined19:33
dr_jesus anyone?19:34
Textmode joined19:34
rgr joined19:34
kim-day joined19:35
Weiss dr_jesus: you merge branches not repositories (probably you understood correctly though)19:35
dr_jesus actually the two branches are in different repositories19:35
Weiss dr_jesus: best way is to have local copies of both branches, check out the one you're merging *into*, and do "git merge <otherbranch>" where <otherbranch> is the branch you want to merge in19:35
... or is it a more complicated scenario giving problems?19:36
locklace dr_jesus: something wrong with adding one as a remote of the other, fetching, and merging branches as usual?19:36
ankit9 left19:36
broonie or git pull which isn't ideal but is a combined fetch+merge19:36
dr_jesus locklace: ah, I think that's what I want19:36
just set remote.otherbranch.url in the target branch?19:37
davr yeah you basically just add a second remote. your local git repository can have multiple remotes19:38
then you'd do something like 'git checkout remote1/branch -b new_local_branch_name' then 'git merge remote2/branch'19:39
dr_jesus hmm it looks like I can use git-remote to do that19:39
JonathanT joined19:39
dr_jesus hmm git branch -r doesn't show the branches in the other repository after I add it to the first one19:41
davr you have to do 'git fetch <remote>' first19:41
dr_jesus ah19:41
psoo joined19:41
brizly left19:43
aresnick left19:43
thiago_home joined19:44
DanielHolth left19:44
tesseracter locklace: umm, whatever brings me back to before i tried the crazy thing that took 17 commits. is revert or reset appropriate? at the moment im in a new branch, because the changes were made on master.19:44
bdimcheff joined19:45
leitao joined19:45
aresnick joined19:45
dr_jesus winces as the merge creates a bunch of conflicts19:46
locklace tesseracter: revert creates a new commit that reverses the effect of an earlier one. reset (--hard) blows away the current state and replaces it with an earlier one19:46
agliodbs joined19:47
kpreid_ left19:47
kpreid_ joined19:47
agliodbs hey, is there any way I can make git ignore emacs backup files?19:47
that is, files ending in ~19:47
shen joined19:47
DrNick stick *~ in .gitignore19:47
locklace agliodbs: man gitignore19:47
Gitbot agliodbs: the gitignore manpage can be found at http://git.or.cz/man/gitignore19:47
agliodbs thanks19:47
Weiss I thought they were ignored by default actually...?19:47
agliodbs Weiss: apparently not19:47
DrNick nothing is ignored by default19:48
mike8901 left19:49
leitao Hi, after a lot of modification (without commit), I'd like to "reset" one specifically file to HEAD. How should I do that ?19:49
agliodbs hmmm, I think setting this in my git configm makes more sense19:49
man gitconfig19:50
Mike_lifeguard left19:50
agliodbs hmmm19:50
Gitbot doesn't listen to me?19:50
jast agliodbs: man git-config19:50
Gitbot agliodbs: the git-config manpage can be found at http://git.or.cz/man/git-config19:50
blaines joined19:50
jast small but significant difference :)19:50
blaines left19:51
agliodbs yeah19:51
anyone know where the gitconfig file lives on a mac?19:52
blaines joined19:52
locklace leitao: reset, not surprisingly. man git-reset19:52
Gitbot leitao: the git-reset manpage can be found at http://git.or.cz/man/git-reset19:52
leitao locklace: yea. I looked at it, but I want to keep the other files there. It says that I can't hard-reset just a file19:53
locklace you don't want to reset hard, just reset19:54
agliodbs core.excludesfile is a reference to a file of excludes, not a value, right?19:54
locklace checkout works too19:54
dr_jesus locklace: thanks!19:55
munichlinux left19:55
thiago_home agliodbs: yes19:56
agliodbs why does this not work, then?19:57
git config --add core.excludesfile=~/.gitignore19:57
thiago_home because of the ~19:57
agliodbs but the docs specifically say to use ~/ for my home dir19:57
and apparently that's not the problem19:58
flazz left19:58
agliodbs what I mean by "doesn't work" is "git config rejects the command"19:58
shen left19:58
thiago_home you didn't paste an error, so I assumed the command succeeded19:58
agliodbs thiago_home: well, it just spits back the git command syntax19:59
that is, the git config command syntax19:59
no specific error19:59
locklace because the syntax is "variable value" not "variable=value"19:59
agliodbs ah, ok, thanks19:59
shen joined20:00
agliodbs since the format of git config -l was variable=value, I assumed the command matcvhed20:00
locklace what version of git are you using anyway20:00
malumalu left20:00
Adjective left20:01
agliodbs 1.6.320:01
Twisted_Mentat joined20:01
agliodbs yaaaay, that worked20:01
thanks for help20:01
ProperNoun joined20:03
godsflaw I need git log output on a particular file that I only know by sha1 hash. What is the quickest way to do this?20:04
in short, I need the log details of its last commit log.20:04
zodiak left20:05
davr one way is "git rev-list --objects --all | grep <HASH>", but it's a bit slow. might be a faster way20:06
_Vi left20:06
_Vi joined20:07
ProperNoun left20:09
Adjective joined20:09
magn3ts joined20:18
abergal left20:19
Boriskr left20:20
nizuri joined20:21
d0ugal left20:21
MacGyverNL_ joined20:22
MacGyverNL_ left20:22
pklingem1 joined20:23
ttvd left20:27
Plouj joined20:27
Plouj hi20:27
is changing bare=true in config (in a bare repository) the right way to avoid messages about "warning: updating the current branch" when pushing to a bare repository?20:27
Adjective left20:28
ProperNoun joined20:28
jast Plouj: yes20:29
Plouj jast: do you know if bare could have been set to false on actually bare repositories in and old version of git?20:30
wereHamster jast: no, the right way is not to push into a bare repo20:30
PointMan joined20:30
wereHamster s/bare/non-bare/20:31
juan_arandaalvar joined20:31
agib joined20:31
Plouj wereHamster: Hi. If you're talking about my scenario then I'm actually pushing to a bare repo where core.bare=false, for a _strange_ reason.20:32
wereHamster yeah, that was to you, sorry. Try to figure out why bare was set to false..20:32
salty-horse joined20:32
Plouj I'm not sure how. This repo was created long before I joined.20:32
I suspect it's due to a bug in an older git.20:33
salty-horse "time echo $(__git_ps1)" takes half a second on my machine. anyone else noticing how slow it is?20:33
agib left20:33
johnw joined20:33
wolog joined20:33
neunon joined20:34
Ilari salty-horse: Cold caches? It takes 'real 0m0.639s' for fist time and subsequent ones are in class of: 'real 0m0.066s'.20:34
salty-horse Ilari, consecutive ones keep giving real ~0m0.520s20:35
I'm using the supplied ubuntu karmic bash completion script20:35
should I try the latest git?20:35
imajes left20:36
hugoxrosa left20:36
agib joined20:36
nizuri left20:36
salty-horse others with ubuntu aren't seeing such a slowdown. maybe it's due to github's "hub" :/20:36
silly github and their silly ruby20:37
wereHamster heh? what does __git_ps1 have to do with github/ruby?20:37
ehabkost left20:37
salty-horse yes, that's it. I was using http://github.com/defunkt/hub as a git alias20:38
ehabkost joined20:38
imajes joined20:38
nadavoid left20:39
jast Plouj: I think it's more likely that a mistake was made when setting up the repository20:39
Tureba left20:40
hakunin joined20:40
viniciusluiz1 left20:42
gebi joined20:45
anjen joined20:47
ericpugh left20:48
ttvd joined20:49
tillberg joined20:49
tillberg left20:50
ericpugh joined20:51
saiiangs joined20:52
WebDragon joined20:52
icwiener left20:53
nanoo left20:55
grawity joined20:56
grawity left20:56
hipe_ joined20:56
saiiangs left20:57
nadavoid joined21:00
kpreid_ left21:00
hipe left21:00
kpreid_ joined21:00
DanielHolth joined21:08
mklappst1hl joined21:10
saste joined21:13
pklingem1 left21:13
mklappstuhl left21:13
tjc joined21:14
zodiak joined21:15
pklingem1 joined21:15
kipras left21:15
kipras joined21:18
alcoheca joined21:18
sven^ left21:19
tlb joined21:20
minaguib left21:24
mike8901 joined21:24
minaguib joined21:25
maxter left21:26
alcoheca evening. I'm getting loads of conflicts while merging a branch (fair enough I'm used to this from svn). But the strange thing is many of the supposed 'conflicts' are really simple changes. like <height>123</height> changing to <height>234</height>, or one line insertions. have tried other merge strategies but to no avail21:27
corni left21:27
kpreid_ left21:28
grumpytoad is git supposed to be stable over an nfs mount ?21:30
stringo0 left21:31
fr0sty alcoheca: if the line was changed in both branches you are trying to merge it is not possible for git to resolve the conflict automatically.21:31
grumpytoad: It has worked fine for me...21:31
greg8si left21:32
grumpytoad fr0sty: even using git stash, and git stash apply ?21:32
fr0sty yeah,21:33
What trouble are you having?21:33
grumpytoad hmm.. it must be my nfs mount options21:33
salty-horse left21:33
grumpytoad on the nfs client after a stash apply, it keeps complaining about a dirty working tree21:33
though if I log onto the server it works normally21:34
bdiego left21:34
d0k left21:38
fr0sty usually your tree would be dirty after 'git stash apply'21:38
JEEB left21:39
fr0sty btw, what command thinks your tree is dirty?21:39
simNIX left21:39
RdeWilde left21:39
sergio_ left21:40
jaql joined21:41
shen left21:42
jaql left21:42
JEEB joined21:42
sergio_ joined21:43
shennyg joined21:44
project2501a joined21:44
jaql joined21:45
jaql left21:45
robacarp joined21:45
maxter joined21:46
JackTheRabbit left21:46
robacarp is there a special way to get to handle binary files? Its trying to make me merge versions of a binary file21:46
webus joined21:47
jaql joined21:47
tjc_ joined21:49
csgeek left21:49
DanielHolth left21:49
tjc left21:49
emil_87 joined21:49
maxter left21:49
emil_87 what a sily question but what is git?!21:50
csgeek joined21:50
tjc_ left21:50
thiago_home a distributed version control system21:50
emil_87 thanks :)21:50
DaveIngram joined21:50
robacarp emil_87: source code management suite21:50
froschi left21:50
dj_tjerk left21:50
jaql left21:50
magn3ts left21:51
DaveIngram left21:52
rapha A developer has asked me to check out a specific branch of his software, the URL is http://github.com/newrelic/rpm/tree/2.10.6_dev - how do I do that?21:54
robacarp rapha: git clone <url>21:54
sis left21:55
ehabkost left21:55
mike8901 left21:55
sis joined21:55
DaveIngram joined21:55
rapha robacarp: when i do that it gives me lots of error messages and html21:56
DaveIngram left21:56
robacarp I would surmise that the url is wrong then21:56
rduplain left21:57
rapha robacarp: at the url there is a link to another url which works, but doesnt get me the branch im supposed to get ... i think you need to modify the command to get that branch21:57
JonathanT left21:57
emil_87 left21:58
PointMan left21:59
robacarp rapha: far as I know you have to clone the repo first then switch to the branch22:00
PointMan joined22:00
psoo left22:00
robacarp or rather, then pull the branch22:00
rapha but how do you do that?22:01
robacarp after you clone the repo, git pull origin <branch>22:01
alcoheca left22:02
rapha oh that did something22:02
* branch 2.10.6_dev -> FETCH_HEAD ... i think that was it - thanks robacarp :-22:02
:-)22:02
robacarp yep22:02
WebDragon left22:02
uau left22:02
spearce left22:03
uau joined22:05
pklingem1 left22:07
kpreid_ joined22:08
cj error: unable to create temporary sha1 filename ./objects/68: File exists22:08
huh?22:08
this from C<git push origin master>22:08
kumbayo left22:08
nevyn joined22:11
lxsameer joined22:11
brodyberg left22:12
uau left22:12
Mezner left22:15
ntoll left22:17
ProperNoun left22:17
mike8901 joined22:17
lxsameer hi i try to pull but i get some conflict i delete that file but when i try to commit i get this error22:18
http://pastebin.com/kYeQk1Sc22:18
cj it was a permissions issue22:18
jmcantrell left22:19
lxsameer hmm what should i do22:19
PointMan left22:21
thiago_home lxsameer: have you fixed the merge?22:21
the merge conflict, that is22:21
ProperNoun joined22:22
lxsameer thiago_home: i delete that file , there is no need of that eny more22:22
_iron left22:22
thiago_home how did you tell Git you deleted the file?22:22
kipras_ joined22:22
lxsameer thiago_home: how should i tell that ?22:23
k23z__ left22:23
uau joined22:23
kipras left22:24
TeckniX left22:24
thiago_home lxsameer: how do you tell Git that a file should no longer be tracked?22:24
webchick left22:24
TeckniX joined22:24
pklingem1 joined22:24
lxsameer thiago_home: i dont know , can you tell me22:24
mrlarner joined22:25
_rane thiago_home: git rm --cached <file>22:25
Ryback_ left22:25
thiago_home lxsameer: git rm didn't occur to you?22:26
lxsameer let me try22:26
kpreid_ left22:27
lxsameer thiago_home: i get this22:28
database: needs merge22:28
rm 'database'22:28
nevyn left22:28
thiago_home lxsameer: what does git status now say?22:28
d0ugal joined22:28
nevyn joined22:28
kpreid_ joined22:29
webus left22:29
lxsameer thiago_home: http://pastebin.com/HqcnsfMy22:30
ben_alman left22:31
thiago_home lxsameer: your conflict is fixed. Commit.22:32
tlb left22:32
Paraselene___ joined22:32
stringo0 joined22:33
loincloth left22:34
Paraselene__ left22:34
difekta joined22:35
difekta left22:38
LiamH left22:39
lxsameer left22:40
johnw left22:40
loincloth joined22:40
hugoxrosa joined22:46
Azeroth-Work joined22:46
Azeroth-Working left22:46
enyovelcora left22:47
sis left22:48
cj is it possible to have a repo be updated when a commit is pushed to it? I've got a web page that I want to see update when I do a git push22:48
last time I pushed, I had to ssh to the host and do a 'git reset' in order to see the changes22:49
tango_ cj: you probably want a post-receive hook that does the job22:49
ikiwiki for example does this22:49
Plouj jast: yeah, very possible, thanks22:49
shennyg so I have a problem with my workflow...22:50
hced left22:51
Rolenun joined22:51
shennyg I have a svn repo I am connecting to, I am using git-svn to manage it. I make changes, then I do a git-svn rebase to get changes from the repo... and there are always conficts22:51
bcardarella left22:52
shennyg so I don't think I am doing things in the righ torder22:53
I use git-svn rebase to update from the svn repo22:53
dcampano left22:53
shennyg I edit the files, I do another git-svn rebase to get any changes that may have occured...22:53
alley_cat left22:54
shennyg then I do a git-svn dcommit22:54
is that correct?22:54
AAA_awright left22:54
AAA_awright joined22:54
dj_tjerk joined22:55
stringo0 left22:55
jotik left22:56
jotik joined22:56
Goosey joined22:56
Theravadan left22:57
v0n left22:57
hakunin left22:58
Goosey I am using git-svn to interface with a centralized SVN repo. during "git svn fetch" i am repeatedly failing at the same place with the message "fatal: write error: Invalid argument". This seems to be happening during git's process of building it's revisions from the SVN revisions. The source repo has 554 revisions and includes many large binaries.22:58
hugoxrosa left22:58
jas4711 left22:58
Goosey Any advice for how I can furthur diagnose this error? "fatal: write error: Invalid argument" doesn't tell me much.22:59
freedrull joined22:59
mike8901 left22:59
sagsousuke left22:59
tbf left22:59
Ramblurr joined23:00
jas4711 joined23:01
neunon left23:01
trochala joined23:03
dj_tjerk left23:03
neunon joined23:04
ixti left23:04
yatiohi left23:04
Twisted_Mentat left23:04
ph^_ left23:04
hgimenez joined23:05
Twisted_Mentat joined23:05
mike8901 joined23:08
sh1m this is, I'm sure, quite stupid of me. However, if I'm ahead of origin/master by 2 commits and I want to drop them how do I do it?23:11
something like `git revert master~2` ?23:11
bob2 revert commits a new changeset undoing some previous changeset23:12
maybe you want reset?23:12
sh1m I did a reset, but they are commits so they weren't dropped23:12
thiago_home if you want to remove the latest commits from history, simply move your branch backwards to a past commit23:12
dajero left23:12
thiago_home that's the git reset commit23:12
locklace sh1m: reset --hard23:12
sh1m I merged a branch and wanted to perge them23:12
thiago_home are they the top two commits in git log?23:13
doener left23:13
sh1m thiago_home: yep23:13
thiago_home reset to the commit prior to both of them23:13
smuf joined23:14
doener joined23:14
sh1m oh I think I got it23:14
thanks :)23:14
agile left23:17
bdimcheff left23:17
JayM joined23:18
tbf joined23:18
bcardarella joined23:20
cj hurm... doesn't look like putting 'git commit --hard' in .git/hooks/post-receive and chmod +x .git/hooks/post-receive did what I expected23:20
xperience left23:20
cj er, git reset --hard23:20
am I misunderstanding the docs?23:21
bob2 maybe you just don't want to push to a non-bare repository23:21
and instead have a hook that pulls to another working copy23:21
davidfetter joined23:22
davidfetter hello23:22
Gullik joined23:22
mklappst1hl left23:23
davidfetter i'd like to pull this project into git. this is a one-time operation http://pgfoundry.org/scm/?group_id=100028823:23
i don't have commit bits on it23:23
cj bob2: hurm... so push to the bare repo and have a hook there that pushes to the site that's in the document root?23:23
bob2 no23:24
cj or cd to the document root and then do the git pull?23:24
bob2 pull23:24
shennyg i just merged two local branches (that had conflicts I had to manualy fix) and wanted to do the exact merge on the second branch... will I have to do the same manual conflict merges?23:24
bob2 sounds amenable to experimentation!23:24
dj_tjerk joined23:25
davidfetter anybody?23:25
cj okay ;)23:25
bob2 davidfetter: what was the question23:26
davidfetter i'd like to pull this project into git. this is a one-time operation http://pgfoundry.org/scm/?group_id=100028823:26
ereslibre joined23:26
ereslibre left23:26
ereslibre joined23:26
bob2 that's not a question ;)23:26
davidfetter how do i pull it in?23:26
Nugget http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html23:28
lresende left23:28
Goosey left23:28
khmarbaise left23:28
Nugget or just cvs co it, delete all the CVS detritus, and do a "git init"23:28
if you don't care about historical activity23:28
redbaritone joined23:29
davidfetter that sounds like a way better idea, Nugget :)23:29
redbaritone left23:30
remi left23:30
pklingem1 left23:32
Nafai joined23:32
loincloth left23:33
Nafai I'm trying to use git filter-branch to remove commits, but the implementation of skip_commit on the man page is confusing (what's map? Is this perl code?)23:33
TeckniX left23:33
remi joined23:33
niki_niki23:35
nikiGuest6298223:35
Guest62982 left23:36
niki_ joined23:36
lresende joined23:36
lresende left23:36
tesseracter left23:37
mecromace1 joined23:39
niki_niki23:40
shennyg I am in the middle of a rebase and it is telling me to "did you forget to use 'git add'?"23:40
Theravadan joined23:40
nevyn shennyg: you've got to git add after fixing conflicts23:40
shennyg I did add the file in conflict, and doing status tells me I have .dotest/ not added23:40
I think the problem is the file doesn't show up as staged23:41
maybe b/c I fixed the confilct to what it was originally23:41
thiago_home left23:44
bcardarella left23:44
tiglionabbit joined23:45
shennyg I just have to edit the file slightly23:45
and it will recognize it as changed, then I can add it23:45
why does it do that?23:45
Paraselene___ left23:45
tiglionabbit how can I look at the patch that was applied when a branch was merged? I look at the commit message, and all it says is "merge branch x into y" with no changed lines in it23:45
jhelwig tiglionabbit: Try this: git diff <merge-sha>^1 <merge-sha>^223:46
tiglionabbit interesting23:48
jhelwig You should also check out the -c and --cc flags in man git-log23:48
Gitbot jhelwig: the git-log manpage can be found at http://git.or.cz/man/git-log23:48
anjen left23:49
Yuuhi left23:52
shennygshennyg|away23:54
cj yep, cd && git pull worked23:54
bob2: thanks23:54
Nafai left23:54
cousine joined23:56
davidfetter left23:56
Plouj shennyg|away: you get conflicts when doing dcommit?23:57
nvm23:57
cannonball left23:58
plediii_ joined23:59

Logs Search ←Prev date Next date→ Channels Documentation