IRCloggy #git 2011-03-08

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.

2011-03-08

patrikf what is foo/?00:00
part of the name of your branch, or a remote?00:00
cannonball left00:00
eletuchy_ left00:00
happynoff left00:01
Slix` joined00:02
explodes branch name.00:02
git checkout master; git branch -D foo_branch00:02
all good!00:02
amerine joined00:02
explodes thanks, also i'm out.00:03
explodes left00:03
wilmoore left00:04
Xorlev left00:05
deuterium left00:05
kukks joined00:07
sbecker left00:07
fr0sty|mobile joined00:08
ericdc left00:13
Wicked hmm. crap. imlooking over a one of my projects...i stupidly included a password in a source file then pushed the commit to my gitserver. Im now one commit ahead of that...and im wondering how i can remove just that commit from my git repo?00:13
engla Wicked: rebase -i to remove the commit and and force push to overwrite the old branch with the new00:14
Wicked hmm.00:14
ok00:14
shennyg joined00:14
Tuller left00:14
acts_as left00:15
radarek left00:15
acts_as joined00:16
sivy left00:17
madewokherd joined00:17
dr_ick left00:20
Pacman` joined00:21
cutmail joined00:21
al3k left00:22
amling_home joined00:23
Wicked hmm...not sure i understand how this works. i only have one branch and i only want to remove one commit. Doing "git rebase -i master" opens up a text editor with some stuff in it...and at the top it has "noop"00:23
im not sure what that means or what i need to choose.00:23
Pacman_Home` left00:23
ayust git rebase -i master~100:23
alastair_ left00:23
ayust (if the commit you want to remove is the most recent)00:24
if the commit you want to remove isn't the most recent, then00:24
git rebase -i xxxxxxxx^00:24
where xxxxxxx is the sha of the commit you want to remove00:24
Zenergy`lapp left00:24
welly_ joined00:24
Wicked ah00:24
linusoleander left00:25
nixness left00:25
ayust then in the editor that opens, delete the line corresponding to the commit you want to remove00:25
Wicked and im assuming trailing ^ is meant to be there?00:25
ayust yes00:25
Wicked ok00:25
ayust it means 'parent of'00:25
ISF joined00:25
f00li5h left00:25
Wicked ah00:25
thanks :)00:25
rgl left00:25
mando left00:25
nixness joined00:25
nchaimov joined00:27
Wicked hmm. of course it didnt just work for me. says could not apply00:28
hjertnes left00:28
Wicked hint: after resolving the conflicts, mark the corrected paths00:28
hint: with 'git add <paths>' and run 'git rebase --continue'00:28
theycallmeniv left00:29
Wicked i dont think i added any new files...00:29
shyam_iyer joined00:31
squinteye left00:32
theycallmeniv joined00:33
fr0sty|mobile What does git status say?00:34
eijk_ left00:34
drako left00:34
fr0sty|mobile Wicked: you probably want to abort the rebase, do it again and change 'pick' to 'edit" for the bad commit.00:35
f00li5h joined00:35
Wicked hmm00:35
eletuchy joined00:35
fr0sty|mobile Rebase will stop there and you can remove the password from the commit (leaving the other changes)00:35
Wicked let me see...reading a bit more about all this.00:35
fr0sty|mobile Then git rebase --continue00:35
I'm guessing there was more than just adding the password in the commit you dropped.00:36
Wicked yea00:37
its been a while so im not exactly sure what00:37
cbx33 left00:37
Wicked but i think using the edit will work...doing a test now00:37
jmil joined00:37
Tuller joined00:39
f00li5h left00:40
kenichi left00:40
jrmuizel left00:40
Wicked bah.00:41
thats still not working.00:41
i rebased and chose to edit....removed the password from the file00:42
it would not let me --continue so i tried to do git add src/changed/file00:42
then continue00:42
still saying could not apply00:42
Kobaz joined00:44
Slix` left00:44
Kobaz Your branch is ahead of 'origin/master' by 3 commits. how would i see which commits are missing from origin/master00:44
DrNick git diff origin/master..master00:44
intralanman left00:44
Kobaz ah, makes sense00:44
engla Kobaz: git log origin/master..00:44
DrNick or git log00:44
__name__ left00:45
adamm left00:45
mikedeezle left00:46
cutmail left00:46
GeertB joined00:47
Kobaz yeah the log was what i was interested in mostly, nifty00:47
f00li5h joined00:47
bdiu joined00:48
rendar left00:49
Squarism joined00:49
SimonP86 left00:50
optikfluffel joined00:50
gusnan left00:50
cutmail joined00:51
abstrakt left00:52
shiba_yu36 left00:52
f00li5h left00:53
Wicked bah. nothing i do is working00:54
ive wasted so much time today on gitweb and this00:54
Dafted joined00:54
theycallmeniv left00:54
banisterfiend Wicked: ok, take a deep breath. Believe in yourself, and try again.00:55
If you believe in yourself you can do anything00:55
Wicked ha. yea. i have been all day...id have broken something already had i not00:55
sterlo left00:55
Tuller left00:55
kpreid joined00:55
Wicked but its at the point of the effort far out weighing the end result.00:55
when i do rebase XXXXXX^ then select edit to edit one of the commits....i then edit the file i want to change. then do git commit --amend...then try to git rebase --continue00:56
but it wont let me00:56
f00li5h joined00:56
Wicked says file needs update00:57
working tree is dirty00:57
banisterfiend can you really do a git commit --amend in the middle of a rebase?00:57
Wicked i thought that the git commit --amend would fix that00:57
thats what it says00:57
adamm joined00:57
Wicked http://pastebin.com/Pq4jfezK00:58
maybe i need to do the ammend then edit the file?00:58
dreiss joined00:59
Wicked bah.00:59
i have no idea.00:59
nothing im trying is working. i think its about time to just say f it00:59
mosno joined01:00
mosno left01:00
mosno joined01:00
engla banisterfiend: yes01:01
drako joined01:01
drako left01:01
drako joined01:01
Wicked am i missing a critical step?....i just dont understand why this is not working01:01
engla Wicked: did you git add the file before commit --amend?01:01
Wicked might be my own stupidity...might be my lack of git knowledge01:02
engla, no01:02
cutmail left01:02
BobJelly left01:02
engla ok, why not?01:02
Wicked im not sure. am i supposed too?01:02
sorry if this is complete noob talk01:03
i dont know much about git yet.01:03
engla you should commit the change you want to make01:03
f00li5h left01:03
engla so edit the file then commit that change as --amend01:03
which you normally do by issuing git add <filename here> ; git commit --amend01:03
before you issue commit, be sure to look at git status01:04
banisterfiendtrick01:04
Wicked ok so. git rebase -> select edit for the commit -> edit the file -> git add file -> git commit ammend -> git rebase continue?01:04
engla Wicked: yes01:04
cutmail joined01:04
GeertB left01:05
lightcap left01:05
Wicked bah. still errors01:05
fr0sty|mobile Don't need the commit, actually...01:05
drako left01:06
fr0sty|mobile --continue will commit what is in the index01:06
Wicked http://pastebin.com/Bj3baHf801:07
chessguy joined01:07
superflit left01:07
engla Wicked: It's perfectly possible that the edit you are doing actually conflicts with the next commit01:08
and then you have to manually resolve that conflict01:08
ayust fr0sty_: for Edit, I don't believe it does01:08
Wicked all i really want to do is fix/remove one commit. my dumbass commited a source file with a password in it. id like to share the repo with people but dont want the password to be in it01:09
ayust since edit is designed to work with --amend01:09
not to create a new commit01:09
fr0sty|mobile Eh? Rebase makes new commits01:09
ayust fr0sty_: yes, but 'edit' commits the commit that was marked for edit01:09
and then stops01:09
linusoleander joined01:09
ayust and lets you amend that commit01:10
engla Wicked: well history is a string of commits right, and depending on your history, all later commits might depend on the commit you are trying to remove.. In that case you have to adjust them (that's only a small change)01:10
ayust 'edit' doesn't then make a second commit if you have un-committed changes when you --continue01:10
jarrod_ left01:10
engla Wicked: git will only ask you to resolve conflicts when it can't be done automatically01:10
Remixman joined01:10
ericdc joined01:10
Swimming_bird left01:10
Wicked hmm. not really sure what all that means. im about to just blast this repo away and start a new one....ill lose all the history of it...but it wont contain my password01:11
leavittx_ left01:11
Wicked ive already wasted 1-2 more hours then i wanted to with his.01:11
Kobaz s/wasted/spent time learning/01:12
bdiu left01:12
Wicked well if i figured it out id say learning :)01:12
since i didnt. i feel it wasted ;)01:12
engla Wicked: you can also just throw away the two latest commits01:12
that's less than removing a whole repo01:13
Wicked maybe ill just copy the file to a tmp file. remove those 2 commits...then paste it back in lol01:13
yea.01:13
how can i throw those two commits away?>01:13
ayust git reset --soft HEAD~201:13
(soft reset to 2 commits before the current HEAD)01:14
engla so you move back your branch two steps. But the changes to the files are still there uncomitted01:14
wilmoore joined01:14
engla so now you can edit those maybe and make one good commit out of it01:14
Wicked hmm01:15
chrisshattuck joined01:16
johnw joined01:16
nixness left01:16
d0k left01:17
GeertB joined01:18
shiba_yu36 joined01:19
fr0sty|mobile Wicked: the Googl.java conflict is likely because you removed the password in that commit.01:19
Xorlev joined01:19
Xorlev left01:19
Xorlev joined01:19
smolyn left01:19
tony_hit joined01:19
alberto56 left01:19
fr0sty|mobile ayust: you are right about 'edit'. I thought it worked like conflict resolution but it ain't so.01:20
f00li5h joined01:20
fr0sty|mobile Wicked: also, did you perhaps add the GooglTest.java file in one of the recent commits?01:22
Remixman left01:22
fr0sty|mobile That might explain the uncommitted change thing...01:22
Wicked i think i achieved what i needed.01:23
i did a soft reset...then added...then committed. i no longer see my password01:23
kermit joined01:23
Wicked but git push failed and i had to do a git push --force01:23
justin_george joined01:23
kermit left01:23
kermit joined01:24
bitcrumb left01:24
fr0sty|mobile ayust: one nit pick: rebase --continue won't work with a dirty-work tree01:25
Wicked well i appreciate your guys's help01:25
i was really frustrated01:25
justin-george left01:25
Wicked and you guys helped me out :)01:25
jrmuizel_ joined01:25
fr0sty|mobile And if you have staged changes it commits them01:26
shyam_iyer left01:26
alberto56 joined01:26
fr0sty|mobile commit --amend that is...01:26
jbwiv left01:27
RaceCondition left01:27
ymasory joined01:27
subsonic left01:28
engla Wicked: yes a forced push is needed when you are "backtracking" history as you were01:30
chrisshattuck left01:30
alberto56 left01:31
amerine left01:31
jfkw left01:31
ereslibre_laptop left01:31
Evious left01:31
MikhX left01:32
hjertnes joined01:32
iamjarvo joined01:33
g0bl1n left01:35
fisted_ left01:36
noahcampbell left01:38
versatiletech joined01:38
sivy joined01:39
sivy left01:40
versatiletech If I do git rm --cached myfile.ext, I push to a central server, and someone else pulls, does it delete their myfile.ext working file or does it just get removed from the index?01:40
flov left01:40
sivy joined01:41
aah left01:41
jbwiv joined01:41
fisted joined01:41
flov joined01:42
flov left01:43
varioust joined01:44
ISF_ joined01:44
optikfluffel left01:46
ISF left01:47
GeertB left01:47
smolyn joined01:49
linusoleander left01:50
Yannick_Gagnon joined01:50
wliao joined01:50
MikhX joined01:51
alastair_ joined01:54
ayust versatiletech: if they don't have any modifications to the file, it will delete their working file when they merge your changes01:54
if they do have modifications, it will show up as a conflict01:54
versatiletech ok01:54
welly_ left01:55
versatiletech what would happen if they do a git rm --cached myfile.ext BEFORE pulling?01:55
Zenergy`lapp joined01:55
versatiletech would that screw things up?01:55
Yuffster joined01:56
ISF__ joined01:57
ISF_ left01:58
GeertB joined01:58
Wicked left01:58
t0rc joined01:59
jbwiv left01:59
ayust well either way, things wouldn't be "screwed up" - even if Git showed a conflict, it's not like it'd be a hard one to resolve01:59
I'm not sure whether Git would auto-merge it or not if both independent rm'd a file, but it wouldn't be a huge problem01:59
Wicked joined02:00
sechrist left02:01
sechrist joined02:01
Dafted left02:01
thedangler joined02:02
thedangler does git keep track of things you have cloned? I cloned a repo the other day but I can't find it for the life of me02:02
saysjonathan left02:02
fr0sty|mobile left02:03
Schmallon left02:03
optikfluffel joined02:03
Remixman joined02:03
trick thedangler: lol02:04
cutmail_ joined02:04
cutmail left02:04
thedangler trick: I think my server did a backup or something this is so messed up. the locate command doesn't work. So i tried looking through the history like history | grep git. command doesn't even show up as if i didn't do anything02:05
omg, half way through the tutorial i swiched to my local comp. wow.02:07
tewecske left02:07
panike joined02:07
ayust thedangler: hehe02:10
versatiletech_ joined02:10
ki__ joined02:11
Vampire0 left02:11
sivy_ joined02:12
sivy left02:12
optikfluffel left02:12
versatiletech left02:12
versatiletech_versatiletech02:12
jbwiv joined02:13
dr_ick joined02:13
foocraft joined02:13
linusoleander joined02:15
_psychic_ joined02:16
tsbtmn joined02:17
tsbtmn left02:17
tsbtmn joined02:17
chessguy left02:18
guybrush joined02:18
f00li5h left02:18
dr_win left02:18
ChanServ set mode: +v02:20
kukks left02:20
rgr_ joined02:20
XPS_1645 joined02:20
guybrush is there any built in git-tool to archive a git-repo with all its submodules?02:20
or do i have to use scripts outside of git02:20
alvaro_o left02:21
justin_george left02:21
Hypnos joined02:22
warthog9 left02:22
hunmonk left02:22
ayust guybrush: scripts, I believe02:22
guybrush ayust: thx02:22
AAA_awright left02:25
Vampire0 joined02:27
warthog9 joined02:28
Hypnos left02:28
Hypnos joined02:28
mizerydearia gitolite question: If users are having issues connecting or authenticating to a git repo, what log file can I look for issues? I created a repo in which some users are able to connect without issues, but other issues are having problems. I have no idea which log file to look at for info pertaining to errors they are receiving.02:28
XPS_1645 left02:29
XPS_1645 joined02:29
XPS_1645 left02:30
ChasBrown joined02:30
ChasBrown left02:30
ChasZZZBrown joined02:31
jaeckel left02:31
jaeckel joined02:31
jaeckel left02:31
jaeckel joined02:31
bremner mizerydearia: most such questions are answered https://github.com/sitaramc/gitolite/blob/pu/doc/ssh-troubleshooting.mkd02:33
AAA_awright joined02:33
cutmail_ left02:34
rgr_ left02:35
Chaser left02:35
_psychic_ left02:35
rgr left02:37
alvaro_o joined02:37
rgr joined02:38
pyrony left02:42
ChasZZZBrown left02:44
f00li5h joined02:44
ChasZZZBrown joined02:45
jbwiv left02:46
MikeM_ joined02:46
panike left02:47
stliu joined02:47
stliu left02:47
stliu joined02:47
jbwiv joined02:48
dmsuperman joined02:49
dmsuperman Can you push to a working copy?02:49
OR does it have to be to a bare repo02:49
then get pulled to a working copy02:49
DrNick left02:50
cutmail joined02:52
bremner dmsuperman: have you read faq non-bare?02:53
jast dmsuperman: Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare [automatic message]02:53
MikeM_ left02:53
dmsuperman I'm curious for a deployment environment02:54
turbofail left02:54
dmsuperman With a stage where possibly changes are pushed to teh stage and then the stage pushes to final, but with a working copy to run on staging02:54
pheaver left02:55
ianmcorvidae|altianmcorvidae02:55
DrNick joined02:56
fr0sty|mobile joined02:56
Schmallon joined02:57
Red_Hill_Studios joined02:57
justin-george joined02:57
bdiu joined02:57
rgr left02:58
xxthink joined02:58
engla left02:58
surikator joined03:01
rondon joined03:01
alvaro_o left03:01
justin-george left03:02
f00li5h left03:02
justin-george joined03:02
pyrony joined03:03
tstclair left03:06
ChanServ set mode: +v03:06
cbreak_work joined03:06
phantomcircuit left03:06
phantomcircuit joined03:06
Aaaarg joined03:07
acts_as left03:09
ChasZZZBrown Hi all - I have successfully configured cmd line git on Win 7 to use SourceGear Diffmerge as mergetool/diff - but failed utterly to get git gui to do the same... any suggestions?03:09
alberto56 joined03:10
pyrony left03:10
alberto56 left03:10
hyperair joined03:13
wilmoore left03:13
Squarism left03:14
hunmonk joined03:14
amondracorp joined03:15
hunmonk left03:15
wilmoore joined03:15
Yannick_Gagnon left03:17
f00li5h joined03:17
agile left03:22
FunkyFortune joined03:22
f00li5h left03:22
flov joined03:23
linusoleander left03:23
ISF_ec09 joined03:24
intripoon_ joined03:25
fmilo left03:26
Bass10 left03:26
Schmallon left03:26
ISF__ left03:26
timepilot joined03:27
intripoon left03:28
acts_as joined03:29
juangiordana_ joined03:32
mizerydearia bremner, thanks for link03:33
jbwiv left03:33
juangiordana left03:34
agile joined03:37
jpieper left03:37
Zenergy`lapp left03:38
marshall joined03:39
t3i joined03:39
kfogel joined03:41
scelis left03:42
ChanServ set mode: +v03:42
kfogel Anyone else have trouble turning off the pager? I've tried core.pager, GITPAGER, --no-pager, everything I and Google can think of; no luck -- it's still paging. Help?03:42
phantomcircuit left03:43
jfkw joined03:44
jpieper joined03:44
kfogel jpieper: hey03:45
leo2007 joined03:46
amh345 left03:47
ChasZZZBrown dmsuperman: At our shop, we push to a canonical bare repo; and then pull by hand to a non-bare repo for production. Since we use flash, our organization is to have separate source and deploy folders, and then we symlink the deploy folder on the production server to be accessed via http. This is rather inefficient since the source folder is not needed on the production server, but not a big...03:47
...deal for us. As noted in the update-hooks doc, it is possible to use hooks to push directly to the non-bare repo (and e.g., automatically git reset master --hard), but in practice it's not a big deal to pull it by hand. Another alternative to consider is to use rsync to move files from the deploy folder of a non-bare repo on your staging area (on whatever server) to your production server.03:47
amh345 joined03:49
amh345 left03:49
amh345 joined03:49
bmahe2 left03:49
eletuchy left03:51
Schmallon joined03:51
phishy left03:52
QinGW1 joined03:53
phishy joined03:53
owst left03:54
johnw left03:54
spearce left03:55
QinGW left03:55
Elfe joined03:56
jbwiv joined03:56
RahulT joined03:56
nbjoerg joined03:57
nbjoerg why would fast-import tell me about 2613 commits, but "git log --all | grep '^commit ' | wc -l" only return 2588?03:58
versatiletech left03:58
Elfe_ left03:58
welly_ joined03:59
alastair_ left03:59
welly_ left03:59
welly_ joined03:59
alastair_ joined04:01
welly_ left04:01
mizerydearia http://privatepaste.com/f190731485 - Top chunk is output of /var/log/auth.log from user who is having issues connecting to gitolite repo. Bottom chunk is output from me successfully accessing repo. I believe the rsa pubkey is correct. What other issue could cause the user having issues to not connect? Also, conf/gitolite.conf is properly configured I believe.04:01
phantomcircuit joined04:01
mizerydearia both myself and the user have the same access level for the particular repo04:01
the other user04:02
OOPMan left04:04
timepilot left04:04
ketas-av- left04:06
ec|detached left04:06
agateau_ left04:06
cbx33 joined04:06
bdiu left04:07
dreiss left04:07
_1094kms left04:07
rayners joined04:07
Caius left04:08
ki__ left04:08
agateau joined04:08
_1094kms joined04:08
Guest88182 left04:08
segher_ left04:08
sitaram mizerydearia: do it from the client side using "ssh -vvv" and you will probably find that the failing client is not even *offering* a pubkey04:09
marshall left04:09
iAsterisk left04:09
ISF_ec09_ joined04:09
dr_G left04:10
fr0sty|android joined04:10
ec|detached joined04:10
ketas-av joined04:10
chargingllama joined04:11
ymasory left04:11
ISF_ec09 left04:12
pcc1 joined04:12
fr0sty|mobile left04:13
segher_ joined04:13
Caius joined04:13
wolfpython joined04:13
foocraft left04:15
MmikeMRMA joined04:15
jmorris joined04:16
Dafted joined04:16
sivy joined04:16
jmorris I have project: /var/www/project/ I want to fork something on github, that will be user in my project: /var/www/project/thing_i_forked/ is it ok to have a git within a git?04:17
user = used*04:17
nbjoerg left04:17
sivy_ left04:17
kfogel Anyone else have trouble turning off the pager? I've tried core.pager, GITPAGER, --no-pager, everything I and Google can think of; no luck -- it's still paging. Help?04:18
heftig joined04:18
heftig Can I fetch from a git-instaweb?04:19
Mmike left04:19
sivy left04:21
rondon left04:21
sivy joined04:22
OOPMan joined04:23
heftig also, can I have instaweb (webrick) bind to :: instead of 0.0.0.0 ?04:23
fr0sty|android jmorris: git within git is not recommended04:23
serialx joined04:23
fr0sty|android kfogel: what os? What command? What shell?04:24
ChasZZZBrown jmorris: If you have a repo /var/www/project/, and you have a git repo in in /var/www/project/someVariant/, then the repo in /var/www/project/ will stop tracking any changes south of /var/www/project/someVariant. Instead it sounds like you want to add a branch to /var/www/project/ named 'someVariant' instead of 'master'.04:25
phishy left04:25
rayners left04:26
jmorris ChasZZZBrown: i don't think i could contribute back to the person i forked off of then?04:28
ChasZZZBrown jmorris: they would just have to merge your branch (named someVariant) into master. Of course they would need to agree to that! But it sounds like you're more used to SVN - yes?04:29
fr0sty|android jmorris: make a submodule (man git-submodule)04:29
jast jmorris: the 'git-submodule' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html [automatic message]04:29
cognominal joined04:29
jmorris i have only ever used git04:30
jast: thank you for that04:30
fr0sty|android Submodule is just a subcommand. Like log, cherry-pick, etc.04:31
jmorris yeah that sounds like what i want04:31
OOPMan left04:32
ChasZZZBrown fr0sty: a submodule would be useful to provide, say, a library of additional code; but it wouldn't be useful to provide amendations to existing code (since it would refer to a different tree).04:32
jmorris i want to pull in some's repository into an git i already have, but i want to be able to push back into the other persons, with the changes i made04:33
fr0sty|android ChasZZZBrown: he said he wants to fork a github project to use inside of his current project04:33
jmorris: you would use it like a library?04:34
jmorris i think so04:34
ChasZZZBrown He wants to modify potentially existing code in a tree; so I think what he wants is to offer a branch - modifications and additions to the existing code base. If the maintainer likes the changes, he/she can merge/cherrypick the branch.04:35
jmorris the person's code i am pulling in, i want to extend it, and be able to send it back to them04:35
maestrojed joined04:35
fr0sty|android Nothing precludes that from happening in a submodule, ChasZZZBrown04:35
jmorris it cant be a branch of my own git though04:35
Hypnos left04:35
ChasZZZBrown Why not?04:35
jmorris that project is HUGE, what i am pulling in is just a few files04:35
Xorlev left04:36
fr0sty|android A submodule is a complete repo.04:36
jmorris why would i want to give him my code, for something that has nothing to do with what i got from him?04:36
fr0sty|android: sounds like its what i need04:36
fr0sty|android It will be the whole other project, though....04:36
ChasZZZBrown fr0sty: a submodule is part of the tree structure; no?04:37
jmorris i'm more confused now lol04:37
heftig its root is part of the parent repo04:37
Mage if you have a project comprised of other projects04:37
those other projects could be submodules04:37
as they'd have their own repositories, history, etc.04:38
but they'd still jell with your stuff too04:38
jmorris How would branching off of my project, adding his code, be of any use to him? Why would I want to give him my code, and not just his code with changes?04:38
Mage (to my understanding)04:38
posciak joined04:39
trick left04:39
wolfpython left04:42
ChasZZZBrown jmorris: Hypothetical example... I have a project made up of many libraries. I collect those libraries as model, view, controller, each their own submodule. You pull the model submodule, and make a new branch 'jmorris/awesome'. You make edits to my code, and then push to the 'jmorris/awesome' branch of the models submodule. I look at your code ('cause you told me it was awesome!) and take...04:43
...(cherrypick) almost all of them, and merge them into the master branch of the model submodule. Everyone who considers me the maintainer then pulls those changes. Happiness!04:43
jmorris Wouldnt they see all my code in that branch though?04:43
ChasZZZBrown jmorris: of course... it's an open source model. If you want to be tidy, you'd squash your commits before pushing (because you might have many intermediate commits that are not of interest toi anyone else), but that's just bookkeeping.04:45
fr0sty|android All the code in the "model" submodule (which would be one directory of your project)04:45
Would be seen by the others, but not the rest of your project.04:45
dreiss joined04:45
jmorris that's the killer though, i dont want to branch of, like i was saying04:45
fr0sty|android jmorris: what do you mean "brench off"?04:46
What VCS are you used to using?04:46
jmorris lol none04:46
only git04:46
how ChasZZZBrown, i dont want to create a branch from any of my branches with the code i am getting04:46
ChasZZZBrown Is brench a verb?04:46
jmorris yes04:47
my miss spelling is a verb04:47
heftig your Ms. is a verb? :p04:47
fr0sty|android jmorris: the link between superproject and submodule is one way (a pointer from the superproject to a commit in the submodule)04:47
ChasZZZBrown The whole point of git (or other cvs) is that branches are GOOD not bad04:48
jmorris glad you caught that one04:48
fr0sty|android The submodule has no knowledge of the superproject's existence.04:48
jmorris i branch all the time04:48
pheaver joined04:48
jmorris but i dont want the person whom i am sending code back to, to see my entire project that has nothing to do with his04:48
Anubisss_ left04:48
heftig he won't04:48
fr0sty|android jmorris: look up04:49
ChasZZZBrown as fr0sty said submodule is not all module04:49
jmorris does it make sense what i'm saying?04:49
steph021_h joined04:49
fr0sty|android jmorris: do you understand what I just said?04:50
jmorris I think I understand what people are saying, but I don't get why I'm getting different answers, and being told branching my own project is the aswer.04:51
I want to branch off of this: https://github.com/fakewaffle/sequence, extend it to work as a tree, and give back to him.04:52
heftig adding a submodule is not branching your own project04:52
fr0sty|android jmorris: you want to add that repository (or your fork of it) as a submodule in your repository.04:52
jmorris ok04:53
fr0sty|android You tree-ify the submodule04:53
Then point your project to the new submodule commit and use it.04:53
jmorris ok04:53
Slix` joined04:54
fr0sty|android You also give a pull request from your submodule to the maintainer.04:54
ChasZZZBrown fr0sty: I am agreeing04:54
Slix` left04:54
jmorris Ok. That sounds like what I was looking for.04:54
kfogel left04:55
heftig can I have instaweb (webrick) bind to :: instead of 0.0.0.0 ?04:55
fr0sty|android The manpage gives a decent example I believe: man git-submodule04:55
jast the 'git-submodule' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html [automatic message]04:55
fr0sty|android Getting familiar with the concept and the mechanism will save you trouble down the road.04:56
ChasZZZBrown Submodules are a bit confusing at first... to say the least!04:57
fUD joined04:57
fUD Hi - I've got a case where git svn info doesn't work any longer, nor git svn rebase.04:58
git-svn version 1.7.3.4 (svn 1.4.2)04:58
orafu left04:59
orafu joined04:59
wolfpython joined04:59
fr0sty|android heftig: beats me, sorry.05:00
fUD: what error do you get?05:00
ChasZZZBrown To repeat my question of the day - Win 7, SourceGear Diffmerge configured to work sweet with cmd line mergetool/difftol but can't get it to work with git gui - advice?05:01
fr0sty|android ChasZZZBrown: what have you tried?05:01
And who had the pager question earlier?05:02
harshu_ joined05:02
mdel left05:03
toabctl joined05:04
Adys left05:04
ChasZZZBrown fr0sty: In git gui config dialog box, mergetool named same as in config (i.e., diffmerge) but it complains that that is not one of the accepted options (lists standard e,g, meld, etc.)05:04
LongBeach joined05:04
trick joined05:04
ChasZZZBrown can invoke desired tool in e.g., merge, by simply enterring "git mergetool"05:05
at cmd line05:05
frustrating!!05:05
fr0sty|android ChasZZZBrown: is your custom mergetool defined globally?05:06
ChasZZZBrown fr0sty: yes05:06
Dafted left05:07
ldigas_ left05:07
ChasZZZBrown kfogel was earlier pager question; offline now05:07
fr0sty|android thnx05:07
jmil left05:09
fr0sty|android Tried restarting git-gui?05:09
ChasZZZBrown yeppers - I suspect that since diffmerge is not supported OOTB, it isn't possible without jiggery-pokery to trick git gui to invoke my script that wraps Diffmerge... maybe?05:11
sangi joined05:12
ChasZZZBrown I'm running 1.7.something...05:12
fr0sty|android Could you hijack a different tools cmd configuration option?05:12
thedangler left05:13
fUD fr0sty|android: I don't get any error as such, just hangs forever05:14
wolfpython left05:15
Kernton joined05:17
ChasZZZBrown So maybe if I setup mergetool meld to invoke exactly what I do for nergetool diffmerge in config... I'll try that...05:17
ChanServ set mode: +v05:17
Kernton Hi, I keep having the same problem with git and I don't know what to do about it05:17
mdel joined05:18
Kernton My team is all working out of one directory, I'm doing all my work on a sub-directory that no one else is touching...05:18
fr0sty|android I'm full of ideas, not all of them good...05:18
Kernton So my pulls/pushs and my teams shouldn't lead to conflicts05:18
But for some reason I occasionally get some error about conflicts in a file I've never touched...05:18
frogonwheels left05:18
Adys joined05:18
Kernton And now I can't pull --rebase because of it05:18
I've tried doing reset and checkout to just get the OK version of the file, since I know I haven't made any changes05:19
And that doesn't fix it05:19
fr0sty|android Kernton: in the same directory?05:19
Kernton Not the directory I work in...05:19
But in the same git directory yues05:19
ChasZZZBrown Kernton: Mixed PC and Mac/Unix workers?05:20
Kernton Maybe05:20
But I just want a way to tell git "F*** THIS FILE JUST USE WHAT YOU HAVE!" and nothing seems to do that...05:20
I just tried to check it out and got "YOURFILE is unmerged"05:20
I don't care... I just want your server version!05:21
TanEk joined05:21
fUD left05:21
ChasZZZBrown Sometimes with mixed OS's, what git is complaining about is the diffference between line endings between 'Nix systems and PC systems05:21
fr0sty|android Checkout --theirs file05:22
Kernton Hmm that would probably explain it, I think the guy working on this file is mac05:22
t0rc left05:22
fr0sty|android Actually in rebase it would be --ours05:22
Either way you should fix the line ending issues...05:23
Kernton What's the way to do that?05:23
ChasZZZBrown It's a bit of an art vs a science those line ending thingy's - there are settings in git config that control this, but I often have troubles with it.05:23
There are settings in the config for autocrlf - but not utterly obvious which are correct05:24
urkud_ left05:24
Kernton Hrm sounds nasty... and I have a tenuous enough grip of git as it is...05:24
jmorris left05:25
ChasZZZBrown The idea is that the repo should hold the 'canonical' settings - and when you pull/push git should adjust for your local settings.05:25
hunmonk joined05:25
Kernton fr0sty|android: Do I do the checkout --ours before my rebase or after it stops for the conflict?05:25
(I just tried prior and its still having the conflict...)05:25
fr0sty|android After05:26
stliu left05:27
Kernton Hrm not working05:27
I did that, said "git rebase --continue", and it says "No changes - did you forget to use 'git add'?"05:27
urkud_ joined05:27
Kernton (No, I used "git add THEFILE" after "checkout --ours")05:28
git status shows no problems... but my code has also reverted to the version on the server... not what I'm trying to push05:28
fr0sty|android Kernton: git rebase --skip05:28
Deesl joined05:28
Kernton Oooh that looks better05:28
ChasZZZBrown go fr0sty go!05:28
Kernton :/ ok so that finished... now I tried to push it back to the repository05:29
ChasZZZBrown and...?05:29
Kernton And it says "Failed to push some refs, non-fast-forward updates were rejected. Merge the remote changes before pushing again"05:30
Is that just relics from my failed attempts with this?05:30
ak0rn|2 left05:30
Kernton My latest commit appears in "git log" so I assume it would be safe to delete whatever is causing that issue?05:31
scelis joined05:31
ak0rn joined05:31
Kernton Git status shows no issues...05:31
nevyn Kernton: you commit to the repository.05:31
fr0sty|android Kernton: git remote update && git diff @{u}05:32
nevyn Kernton: run git fetch05:32
jfkw left05:32
nevyn or git remote update will work too.05:32
Kernton fr0sty: do I replace "u" with something? I just entered that whole line and it says: fatal: ambiguous argument '@{u}': unknown revision or path not in the working tree.05:33
nevyn: Isn't fetch included with "pull --rebase"?05:33
ChasZZZBrown Sounds like you have resolved the problem in you working tree, but you still need to commit those changes before you push05:34
FunkyFortune left05:34
Kernton But git status says nothing to commit?05:34
ChasZZZBrown git log says...?05:35
fr0sty|android Kernton: how do you push?05:35
Kernton ChasZZZ: Shows my latest commit...05:36
fr0sty: First, "git pull --rebase github master", then "git push github master"05:36
fr0sty|android The @{u} is shorthand for "upstream branch"05:36
Kernton So why wouldn't that work?05:37
fr0sty|android Then git remote update && git log ..github/master05:37
Because you have not set it apparently05:37
Kernton Blame my team members :P05:37
fr0sty|android Hence why you need to specify a remote and branch when you push/pull05:37
ChasZZZBrown Damn them with their incessant changes! :)05:38
Kernton Ok that ran ok05:38
So now I should be back to normal? Pull --rebase and push with "impunity"?05:38
fr0sty|android No, that's your local config that determines that05:38
There was no output from git logankoester05:38
Kernton No05:38
fr0sty|android Log?, I mean...05:38
Yeah push away...05:38
Kernton Wait you mean the && command I ran? No no output05:39
fr0sty|android Give it a go05:39
Kernton Nope, same error about non-fast-forward updates05:39
Dafted joined05:39
fr0sty|android Something's fishy...05:40
ChasZZZBrown What happens on a pull now? Could a teammate have pushed during the whole fol-de-rol?05:40
Kernton Nope jsut did a pull again and it worked fine05:40
hunmonk left05:40
fr0sty|android Define: fine05:40
sivy left05:41
Kernton Well it printed out stuff like this: a couple tiems05:41
usage: git merge-base [-a|--all] <commit> <commit>... -a, --all outputs all common ancestors05:41
tizzo joined05:41
Kernton And then said "Current branch HEAD is up to date"05:41
(usually when it prints a bunch of the "usage" lines it won't work...)05:41
ChasZZZBrown thinking....05:42
hunmonk joined05:43
fr0sty|android What command did you run?05:43
Kernton For push or pull?05:43
hunmonk1 joined05:44
hunmonk left05:44
fr0sty|android The one that told you usage info for git-merge-base05:44
Kernton git push github master05:44
fr0sty|android Btw, I don't regard commands spitting usage information to run 'fine'05:44
Kernton Yeah.. I'm a total github nub sorry05:45
But I don't understand what would be wrong with my usage when I always do the same command... and sometimes it says all that and othertimes nada05:45
fr0sty|android Not github's fault, probably...05:45
ChasZZZBrown if a pull is successful, and noone has touched the repo since the successful pull, then it is not possible for the result to be 'can't fast forward'.'05:45
Kernton (command is "github pull --rebase github master")05:45
Aaaarg left05:45
surikator left05:45
Kernton fr0sty: Probably not, but that makes it MY fault :D05:46
fr0sty|android ?!05:46
Github? Not git?05:46
wentasah joined05:46
Kernton Sorry05:46
Er no git05:46
Second one is github though05:46
hunmonk1 left05:47
fr0sty|android Well something in your install is fishy05:47
Looks like rebase is misbehaving somehow05:48
Kernton Work around suggestions? I just want to get this pushed and wash my hands of it...05:48
surikator joined05:48
fr0sty|android That's what is spitting the usage info...05:48
Kernton (Thanks for all your help so far, you and Chaszzz)05:48
ChasZZZBrown That would be my guess as well... rebase has rewritten history in a way that the github repo finds confusing...05:49
Kernton So how do I clear it and just make things work? :)05:49
fr0sty|android git merge-base HEAD FETCH_HEAD05:49
Kernton And now push?05:50
Or pull first05:50
fr0sty|android Use that output for git rebase --onto FETCHCHEAD [output from merge-base]05:51
FETCH_HEAD, sorry...05:51
foocraft joined05:51
Kernton Current branch HEAD is up to date05:51
thiago_home joined05:51
fr0sty|android Any line noise before that?05:51
Kernton Nope05:52
fr0sty|android Hmm, but the push fails...05:52
Kernton Here's the full error...05:52
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'REPOSITORY' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.05:52
fr0sty|android Wait, does git diff ..github/master return anything?05:52
Kernton Yeah...05:52
Changes in the original trouble file?05:53
fr0sty|android Err git log --oneline github/master, actually05:53
Kernton Could the rebase --skip be just igorning the issue it was having, but push won't work because there's unresolved conflicts?05:53
ChasZZZBrown If you want to get that nice good feeling, first clone the remote.... so you know that you got /something/....!!!05:53
fr0sty|android Crap, lost the dots: ..github/master05:53
bburhans_bburhans05:53
chargingllama left05:53
Kernton With dots prints nothing...05:54
Without prints a bunch of stuff, but not my recent commit that won't push05:54
chargingllama joined05:54
fr0sty|android What about git log --oneline github/master.. ?05:54
Kernton ^^, a bunch of stuff, but it doesn't have my latest commit05:55
ljungk left05:55
Kernton (as opposed to git log)05:55
stepnem left05:55
Dafted_ joined05:56
stepnem joined05:56
fr0sty|android And git fetch github returns ?05:56
Also, git --version?05:56
Kernton fetch github prints nothing..05:57
Version 1.7.0.305:57
fr0sty|android But git push github master still fails...05:58
Kernton Yeah05:58
ChasZZZBrown so because fetch prints nothing, your local repo has no conflicts with remote... so what about git merge...?05:58
Kernton Oh wait..05:58
fr0sty|android If you look at the github page does it show the same commit as 'git show github/master'?05:58
Kernton I just did "git fetch github master" (added master on the end) and it printed something..05:58
Let's see if a push works05:58
hunmonk joined05:59
Kernton Nope :/05:59
hunmonk left05:59
hunmonk joined05:59
Dafted left05:59
fr0sty|android What did it print?05:59
Kernton From github.com:repository * branch master -> FETCH_HEAD05:59
ChasZZZ: "git merge" then what?05:59
dreiss left05:59
Kernton Apparently that's invalid usage...05:59
smolyn left05:59
fr0sty|android Meh, that's normal...06:00
orafu left06:00
ChasZZZBrown then git should say "merge awesome" or "merge not awesonme"... which...?06:00
Kernton fr0sty: github page shows same commit as git show github/master06:00
fr0sty|android Kernton: chech the github site and compare it to git show github/master06:00
Kernton ^06:01
jceb joined06:01
dreiss joined06:01
fr0sty|android H06:01
orafu joined06:01
leo2007 left06:01
fr0sty|android is stumped...06:01
Kernton ChasZZZ: No I mean is there more to the command? I typed just "git merge" and it wants some other usage06:01
fr0sty|android Look at git log --oneline --graph --decorate --all06:02
ChasZZZBrown try "git merge origin master".... (peeps to man page...)06:02
Kernton Looks fine... I see the commit on github page, and my latest commits on top of it06:02
All in one line06:02
posciak left06:02
Kernton With (HEAD) by my latest changes06:02
Chas: "git merge master" maybe? Using origin (or in my case, github) wouldn't work06:03
tizzo left06:03
Kernton This says Already up-to-date though...06:03
adamm left06:04
xiangfu joined06:04
cesario joined06:04
fr0sty|android Kernton: is github/master just below it?06:04
Kernton Ah this might be it...06:04
ChasZZZBrown Okay - so git thinks master (local) is up to date with master (remote). So - what's the problem?06:04
Kernton So there is github/master a few bellow06:04
Which coincides with the latest commit06:05
mdel left06:05
Kernton But then two commits are apparently duplicated right above (github/master), and above those are my HEAD06:05
Is there a way to get back to the github/master commit, then apply my work?06:06
fr0sty|android As long as it is a straight line from github/master to HEAD it should work.06:06
Kernton Looks like it06:06
What'd be the command for that?06:06
fr0sty|android Git rebase -I github/master will let you change those commits06:06
Small i, not I06:07
But that shouldn't matter...06:07
Kernton It did :P06:07
fr0sty|android The extra commits, that is06:07
Not the i06:07
Kernton oh06:07
fr0sty|android :-)06:08
Kernton So what now? It's opened up rebase mode or something?06:08
mosno left06:08
anathematic left06:08
tizzo joined06:09
stliu joined06:09
stliu left06:09
stliu joined06:09
smolyn joined06:09
smolyn left06:10
tony_hit left06:10
Kernton Oh I'm in VIM it turns out... and have apparently messed something up here too cause now I can't quit...06:10
tony_hit joined06:10
ChasZZZBrown I hate vm.... :)06:11
Kernton Ok got out of that, re-doing the rebase command, and then what's next?06:11
maestrojed left06:12
Deesl left06:13
ThomasLocke joined06:13
fr0sty|android has to run. Back later, maybe.06:13
Deesl joined06:13
Kernton Ok thanks for the help...06:13
(Sorry ... makes that sound sarcastic, but really thanks!!)06:13
MikhX left06:13
amondracorp left06:14
Kernton Argh. Screw this06:16
Just going to checkout again and redo all my work06:16
Thanks for the help git :(06:16
Aaaarg joined06:16
amh345 left06:16
trick left06:18
Kernton Thanks again ChasZZZ06:20
Kernton left06:20
dim_ joined06:22
jceb left06:22
b14ck_ left06:30
BlindOracle joined06:30
b14ck joined06:30
MikhX joined06:31
dim_ left06:32
tizzo left06:32
dr0id joined06:32
dreiss left06:37
Chaser joined06:40
hunmonk left06:40
cesario left06:43
ISF_ec09_ left06:43
orafu left06:44
joel_falcou left06:47
thiago_home left06:48
chrisshattuck joined06:49
napster_123 joined06:50
toabctl left06:51
ChasZZZBrown left06:51
jrmuizel_ left06:52
rgr joined06:52
chrisshattuck left06:52
chrisshattuck_ joined06:53
mosno joined06:54
chrisshattuck_ left06:54
chrisshattuck joined06:54
Yuffster left06:55
chrisshattuck left06:55
chrisshattuck joined06:55
ilpoldo joined06:56
dannas joined06:56
chrisshattuck left06:58
chrisshattuck joined06:59
ec|detached left06:59
jankoprowski joined06:59
elliottcable joined06:59
drothli left06:59
chrisshattuck left07:00
chrisshattuck_ joined07:00
elliottcableec|detached07:00
iamjarvo left07:00
ec|detachedelliottcable07:00
xiangfu left07:01
QinGW joined07:01
int3__ joined07:02
harshu_ left07:03
pratz joined07:03
QinGW1 left07:03
chrisshattuck_ left07:04
phantomcircuit left07:05
chrisshattuck joined07:06
dr_win joined07:06
harshu_ joined07:07
TrineLocke joined07:08
dr_ick left07:08
dr0id left07:09
Schmallon left07:10
chrisshattuck left07:12
rgr left07:12
madewokherd left07:15
project2501a left07:15
flov left07:17
zzing joined07:17
hobodave joined07:19
mosno left07:19
juangiordana_ left07:20
sechrist left07:22
BlueAidan joined07:22
shennyg left07:22
rgr joined07:23
goshawk joined07:24
Mage left07:24
lightcap joined07:25
codebrainz left07:25
vsayer left07:26
Guest65612 joined07:26
dr_win left07:27
pheaver left07:28
reber joined07:28
reber hi07:28
wich tool that would be more or less like kdesvn for svn please ?07:30
git tool07:30
guardian left07:30
OOPMan joined07:30
Dafted_ left07:31
LouisJB left07:31
opalka joined07:33
opalka left07:33
opalka joined07:33
joel_falcou joined07:35
dekroning left07:35
serialx left07:36
giallu joined07:37
giallu left07:37
giallu joined07:37
saschpe joined07:38
jankoprowski left07:39
RahulT left07:40
t3i_ joined07:40
amerine joined07:41
dannas left07:41
radarek joined07:41
agile left07:43
t3i left07:43
t3i_t3i07:43
eletuchy joined07:43
BlueAidan left07:43
mejla__ joined07:45
BlueAidan joined07:45
sechrist joined07:46
radarek left07:47
ph^ joined07:48
napster_123 left07:48
sivy joined07:48
jceb joined07:48
rgr left07:49
teweWork joined07:49
Chaser left07:49
rgl joined07:51
optikfluffel joined07:52
radarek joined07:53
doener left07:54
int3__ left07:54
Badiss joined07:57
agile joined07:58
troessner joined07:59
eletuchy_ joined07:59
McMAGIC-- left08:00
acid left08:01
project2501a joined08:02
_ollie joined08:02
_ollie left08:02
leavittx_ joined08:02
Guest65612 left08:03
eletuchy left08:03
heda left08:05
thiago_home joined08:05
cebewee wq08:05
thiago_homethiago_workshop08:06
napster_123 joined08:07
heftig left08:07
goshawk left08:07
Deesl left08:07
Deesl joined08:07
cesario joined08:08
jceb left08:09
guardian joined08:09
ljmarkus joined08:10
chargingllama left08:11
emptyflask left08:12
ljmarkus left08:13
amerine left08:13
tewecske joined08:14
ExtraSpice joined08:16
cesario left08:17
ExtraSpice left08:17
borwar joined08:19
happynoff joined08:19
Textmode left08:19
borwar Can't I just copy my local id_rsa.pub file to my dev server, and use it to connect to github.com the same way I do from my local machine?08:20
justin-george left08:20
nevyn borwar: no.08:21
borwar: you'd need id_rsa not id_dsa.pub08:21
borwar nevyn: ahh... let me try08:21
acid joined08:22
nevyn borwar: copying id_rsa.pub to authorised_keys on your server would let you ssh without a password to your dev server.08:22
ExtraSpice joined08:22
nevyn so pub keys go in authorised key files08:22
orafu joined08:24
t3i_ joined08:25
MmikeMRMA left08:25
borwar nevyn: I seems to be working fine now, thanks.08:25
simplechat joined08:26
t3i left08:28
t3i_t3i08:28
nevyn borwar: so if you want to be able to ssh to your dev server without using a password copy the .pub file into .ssh/authorized_keys on your server...08:29
happynoff left08:29
mcmat joined08:29
mcmat left08:30
rrecio joined08:30
thiago left08:30
gebi left08:30
dpino joined08:34
soxofaan joined08:34
workmad3 joined08:35
Nonpython joined08:36
heda joined08:36
Nonpython how do I rename a commit with non-losable progress afterwards?08:37
heda left08:37
koltroll joined08:38
thiago joined08:38
Predominant left08:41
t3i_ joined08:43
Buglouse left08:44
saintdev joined08:45
bitcrumb joined08:45
t3i left08:45
t3i_t3i08:45
ceej left08:46
koltroll left08:46
eletuchy_ left08:46
poindontcare left08:48
saintdev if do an interactive rebase, is it possible to squash several commits into one, then amend that commit in the one run?08:48
or do i need to do it as two interactive rebases?08:49
giallu left08:52
muep joined08:54
PigeonFriend joined08:55
workmad3 left08:56
tango_ saintdev: use fixup for most of them and squash for the last one of the bunch08:56
that way git will try squashing them altogether and will allow you to edit the last one08:56
saintdev so do fixup, fixup, edit?08:57
gebi joined08:57
gebi left08:57
gebi joined08:57
liquidproof joined08:58
rgl left08:58
rgl joined08:58
flov joined08:59
theoros left08:59
borwar left09:02
saintdev or guess not. fixup needs a previous commit also :/09:02
mastroDani joined09:03
davzie joined09:04
bentob0x joined09:05
nonnooo joined09:06
giallu joined09:07
xerora left09:08
larsl joined09:09
radarek left09:09
radarek joined09:10
deuterium joined09:10
koltroll joined09:12
niko left09:12
steph021_h left09:13
niko joined09:13
ogzy joined09:17
ogzy i created a repo and initialized sub repos at my local machine09:18
how can i push them to remote09:18
jaeckel ogzy: man git-push09:19
jast ogzy: the 'git-push' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-push.html [automatic message]09:19
lightcap left09:20
surikator left09:20
mainrain_ left09:21
napster_123 left09:21
jelmer left09:21
sangi when i try clone a source of size 200MB from the git repository,which i have set up,Its throwing an error like09:24
fatal: Out of memory, malloc failed09:24
i understand that the problem is because of the large size of the source09:24
but how could i solve it09:25
jelmer joined09:29
jelmer left09:29
jelmer joined09:29
DieMumiee joined09:30
mainrain joined09:34
nevyn^ joined09:35
anderse joined09:37
albel727 left09:38
albel727_2 joined09:38
cbx33Guest7048209:38
cbx33 joined09:38
mastroWork joined09:39
davzie left09:39
cutmail left09:43
mastroDani left09:43
bauruine left09:45
davzie joined09:45
jhuon joined09:45
ormaaj left09:45
tro left09:46
mikewintermute joined09:47
optikfluffel left09:48
ormaaj joined09:48
BooK joined09:49
TanEk left09:50
thiago left09:51
tro joined09:52
mejla__ left09:53
achadwick joined09:54
siyb_ left09:54
rrecio left09:54
siyb joined09:54
mejla__ joined09:55
skoop joined09:55
xiong joined09:59
QinGW left10:00
mastroWork left10:00
leavittx_ left10:05
teweWork left10:06
henrikbjorn joined10:06
bitcrumb left10:07
ph^ left10:10
koltroll left10:10
ph^ joined10:10
ph^_ joined10:12
curtana joined10:13
ph^ left10:15
mastroDani joined10:16
harshu__ joined10:16
harshu_ left10:17
workmad3 joined10:18
ExtraSpice left10:20
teweWork joined10:23
superacuosupervacuo10:23
albel727_2 left10:24
scouredimage_ left10:27
Odd_Bloke joined10:27
gretch left10:29
reber left10:30
lundtor cd ..10:31
mastroWork joined10:31
Odd_Bloke left10:33
Odd_Bloke joined10:33
ExtraSpice joined10:33
Odd_Bloke left10:34
Odd_Bloke joined10:34
mastroDani left10:35
mastroWork left10:36
dr0id joined10:39
mastroWork joined10:41
darsk1ez left10:41
shiba_yu_ joined10:43
shiba_yu36 left10:43
ogzy left10:45
soxofaan_ joined10:45
bauruine joined10:46
rendar joined10:46
darsk1ez joined10:47
Nickeeh left10:47
soxofaan left10:49
borwar joined10:49
Zenith77 joined10:50
wliao left10:50
stamina_ joined10:50
trick joined10:52
stliu left10:55
soxofaan_ left10:56
soxofaan joined10:56
_Ludwig_ joined10:57
borwar left10:59
tro left11:01
Alagar1 left11:02
Alagar joined11:03
ereslibre joined11:06
ereslibre left11:06
ereslibre joined11:06
tsbtmn left11:06
tsbtmn joined11:06
tsbtmn left11:06
tsbtmn joined11:06
harryman200 left11:07
tro joined11:08
xiong left11:10
suds joined11:10
engla joined11:10
engla left11:10
engla joined11:10
suds Greetings All! I'm trying to detach a subdir into a separate git repo by following instructions at http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository11:11
but all branches are not appearing in the new repo11:11
any help please?11:11
mastro joined11:11
rcu joined11:11
thiago joined11:12
goj joined11:12
teuf suds: "EDIT -- For most uses, git filter-branch should have the added parameter -- --all. (Yes that's really dash dash space dash dash all. This needs to be the last parameters for the command.) As Matli discovered, this keeps the project branches and tags included in the the new repo." ?11:13
koltroll joined11:15
mastroWork left11:15
cilly joined11:18
cilly left11:19
cilly joined11:19
mejla__ left11:20
hyperair left11:20
MikhX left11:21
ChanServ set mode: +v11:24
koltroll left11:24
goj hi11:24
mastroWork joined11:25
goj when I do git branch master --set-upstream origin/otherbranch11:25
suds teuf: I've done that but other branches stay as remotes (origin/bug_fix_branch). I wanted bug_fix_branch to be local.11:25
goj and then git status11:25
NotTooDumb3 joined11:26
goj it says "Your branch and 'origin/master' have diverged,"11:26
comparing it to origin/master, not origin/otherbranch11:26
is there anything else I need to set besides --set-upstream11:26
adaptee joined11:27
teweWork left11:28
MikhX joined11:28
mastro left11:28
jhuon left11:30
teweWork joined11:31
offby1 goj: do you actually have "master" checked out?11:31
perhaps you have some other branch checked out, and _its_ upstream is origin/master11:32
goj offby1: yes11:32
no, it's master11:32
offby1 goj: could you type "git status", then "git branch -vv", and paste the result somewhere?11:32
anderse left11:32
sangi left11:33
goj git branch -vv looks bad:11:34
* master 57ba94b [origin/master: ahead 3, behind 2] Added rebar11:34
j416 joined11:34
goj git status as well11:35
# On branch master11:35
# Your branch and 'origin/master' have diverged,11:35
# and have 3 and 2 different commit(s) each, respectively.11:35
#11:35
nothing to commit (working directory clean)11:35
sangi joined11:36
rcu left11:37
dr_win joined11:37
offby1 the simplest explanation I can think of is that you fat-fingered your --set-upstream command11:37
goj % git branch master --set-upstream origin/escalus11:38
Branch master set up to track remote branch escalus from origin.11:38
offby1 from the man page, it looks like you may have gotten the arguments in the wrong order. I'd try "git branch --set-upstream master origin/otherbranch"11:38
although if I'm right, the command is clearly lying to you when it says what it's done.11:39
goj: you can always edit .git/config to set things up.11:39
dr0iddr00b11:39
goj offby1: switching arguments' order didn't help11:39
gusnan joined11:40
goj my .git/config ends with11:40
[branch "master"]11:40
remote = origin11:40
merge = refs/heads/escalus11:40
mikewintermute left11:40
rcu joined11:41
genjix joined11:41
EricInBNE left11:43
offby1 can't explain it.11:44
d0k joined11:45
tyteen4a03 joined11:46
goj it seems that if there is a branch with corresponding name on remote, it takes precedence over the one specified in branch.<name>.merge option (via --set-upstream)11:46
which seems wrong11:46
master tries to track origin/master no matter what I set11:46
I'll just rename my branch11:47
offby1: thanks for your help11:47
davzie left11:47
mastro joined11:47
shiba_yu_ left11:48
shiba_yu36 joined11:48
mastroWork left11:51
davzie joined11:51
gebi left11:52
tony_hit left11:53
tony_hit joined11:53
gemmes joined11:54
rgr joined11:55
Felicitus joined11:56
genjix i've git remote add a new repo... how do i fetch that into a branch locally?11:56
i tried git checkout -b remote/branchname localbranch11:57
(doesn't work)11:57
ereslibre left11:57
Felicitus I've got a submodule which points to a specific commit; how can I update the submodule to the latest remote commit? I tried git submodule update (also with merge option), but I can't get git to update it11:58
ereslibre joined12:00
ereslibre left12:00
ereslibre joined12:00
catphish joined12:00
catphish is it possible to stop git prompting for a username and password when it receives a 401?12:01
kpreid left12:02
RiaGuy joined12:03
docelic joined12:04
docelic Hey folks, how can I see 'git log' from the origin? That is, check any new commits on the origin without doing git pull?12:05
FauxFaux git fetch && git log origin/master12:06
urkud_ left12:06
urkud_ joined12:07
tony_hit left12:07
genjix c\12:08
kurrata joined12:09
genjix i did git remote add remote-repo... and git remote shows up the branches there, but git branch -a doesn't show them.12:12
kurrata how do i use normally branches? make a copy of my master files and put them under "testing" direcotry and point git that there is testing and start editing files. if it works then say copy changes from "testing" to "master"?12:12
genjix how can i make them appear in git branch -a?12:12
kurrata: no way. do a basic tutorial on git...12:13
git branch blaa12:13
sangi left12:14
genjix kurrata: http://www.youtube.com/watch?v=OFkgSjRnay412:14
urkud_ left12:14
lundtor left12:15
kurrata no sound on this machine ;(12:15
GeertB left12:15
mabrand joined12:18
offby1 genjix: you need to do "git fetch remote-repo" in order for the branches to appear12:19
mabrand left12:20
chrisshattuck joined12:21
gebi joined12:22
koltroll joined12:22
phishy joined12:24
chrisshattuck left12:25
genjix ahhh thanks offby1! i kept doing repo/branch :p12:25
rcu left12:27
emptyflask joined12:28
hyperair joined12:29
kurrata hmmm, i think i understood how it works. basically when i make a new branch and switch to it i use old files. and testing records all changes. when i switch to master branch it does diff magic and removes all changes from files. when back to testing another magic to add all the new stuff12:29
did i understood right how branches work?12:30
Yuuhi joined12:30
thiago_workshop no12:30
when you switch branches, git will check out all files from the commit12:30
kurrata ;(12:30
shiba_yu36 left12:31
esparkman left12:32
hyperair left12:33
ereslibre left12:33
catphish left12:33
gusnan left12:33
teweWork left12:33
soxofaan left12:33
stamina_ left12:33
Zenith77 left12:33
PigeonFriend left12:33
kurrata left12:33
BlindOracle left12:33
_1094kms left12:33
fisted left12:33
maleknet left12:33
avar left12:33
blast_hardcheese left12:33
btipling_ left12:33
bentkus left12:33
PerlJam left12:33
iravid left12:33
tokkee left12:33
redbrain left12:34
rideh left12:34
Pupeno left12:34
Fissure left12:34
comawhite left12:34
c00kiemon5ter left12:34
Cap_J_L_Picard left12:34
sontek left12:34
paulproteus left12:34
sgronblo_ left12:34
akheron left12:34
siprbaum left12:34
mastroWork joined12:35
PerlJam joined12:36
stamina_ joined12:36
zzing left12:36
catphish joined12:36
FunkyFortune joined12:37
dr00b left12:37
comawhite joined12:37
fisted joined12:38
mastro left12:39
t3i_ joined12:39
jcdny joined12:39
hyperair joined12:39
kurrata joined12:39
ereslibre joined12:39
gusnan joined12:39
teweWork joined12:39
soxofaan joined12:39
Zenith77 joined12:39
PigeonFriend joined12:39
BlindOracle joined12:39
_1094kms joined12:39
maleknet joined12:39
avar joined12:39
blast_hardcheese joined12:39
btipling_ joined12:39
bentkus joined12:39
iravid joined12:39
tokkee joined12:39
redbrain joined12:39
rideh joined12:39
Pupeno joined12:39
Fissure joined12:39
c00kiemon5ter joined12:39
Cap_J_L_Picard joined12:39
sontek joined12:39
paulproteus joined12:39
sgronblo_ joined12:39
akheron joined12:39
siprbaum joined12:39
Hypnos joined12:40
t3i left12:40
varioust left12:42
daviddoria joined12:42
harshu__ left12:42
daviddoria I know 'git diff --staged' will show the difference between staged changes and master, but is there a way to show changes between unstaged changes and master?12:42
harshu joined12:43
gemmes left12:44
mejla__ joined12:44
tephe joined12:45
t3i_ left12:46
ph^_ left12:47
airborn joined12:50
daviddoria I see, simply 'git diff' haha12:50
patrikf daviddoria: that's actually between working tree and staging area12:51
akheron left12:52
akheron joined12:52
rgr left12:53
cilly left12:53
f00li5h joined12:54
akheron left12:55
akheron joined12:56
gbz left13:00
mastroWork left13:00
gebi left13:01
scelis left13:01
gbz joined13:03
madsy joined13:04
BlueAidan left13:09
cilly joined13:09
teweWork how can i get all the tags for a given commit? describe --exact-match only shows one, log --pretty=%d shows branches too and i don't need those13:10
shiba_yu36 joined13:10
sebersole joined13:10
BlueAidan joined13:11
engla daviddoria: git diff HEAD13:12
daviddoria I see, thakns patrikf and engla!13:13
Remixman left13:14
Remixman_ joined13:14
jhuon joined13:16
NotTooDumb3 left13:18
akher0n joined13:18
jfkw joined13:18
akher0n left13:20
ereslibre left13:22
bdiu joined13:22
offby1 Does "git pull" ever fetch objects that aren't needed for the current branch? To rephrase that: if my remote repo isn't being committed to at the moment, and I type "git pull", and receive some objects from it; if I then check out some other branch and "git pull" again, will I download more objects?13:24
I realize I could try this myself :)13:24
just curious13:24
Zenith77 left13:25
trick offby1: im pretty sure it fetches for all branches but only merges for the current13:26
akheron left13:26
akheron joined13:27
offby1 sounds plausible.13:28
I just did "git pull" on (what I assume to be) a not-terribly-active branch of Emacs, and it downloaded a surprisingly-large amount of stuff. I was wondering if that stuff might be for other branches.13:28
trick wtf are you using emacs for13:29
1970s throwback13:29
do you wear flares too?13:29
teweWork offby1: i think it depends on how your remote is configured13:29
offby1 Actually, I'm being dense. After my "git pull", it listed a half a dozen branches that got updated, so _obviously_ it downloaded other stuff.13:29
intralanman joined13:29
joel_falcou left13:29
offby1 teweWork: it says fetch = +refs/heads/*:refs/remotes/origin/* which I assume means "git it all" :-)13:30
esparkman joined13:30
Aikar how do you checkout a specific tag name?13:30
offby1 Aikar: "git checkout tag-name"13:30
Aikar i have master cloned right now13:30
teweWork offby1: yes13:30
offby1 next question :)13:30
soxofaan_ joined13:30
anderse joined13:30
jast offby1: OTOH if you type "git pull someremote somebranch", it fetches only that branch13:30
trick offby1: but it only merges with the current branch right?13:30
mapreduce joined13:31
Felicitus left13:31
teweWork trick: it also depends on configuration i think :)13:31
mapreduce I committed files I didn't mean to, and I could do with having the changes how they were before committing.13:31
trick tewecske: assume default configuration baby13:31
bdiu left13:32
trick mapreduce: git reset --hard HEAD~513:32
mapreduce: git reset --hard HEAD~113:32
even13:32
no13:32
git reset HEAD13:32
soxofaan left13:32
soxofaan_soxofaan13:32
offby1 trick: for my setups, yes, it only merges with the current branch.13:32
trick no13:33
git reset HEAD~113:33
hahaha13:33
offby1 I suspect it's not possible to merge any other branch, since there's always the risk of conflict, and there'd be no way to resolve 'em13:33
trick dont ask me13:33
im ddrunk13:33
teweWork offby1: it merges all tracking branchesafaik13:33
mapreduce trick: I think I can see where you're going with that.13:33
soxofaan left13:33
soxofaan joined13:33
mapreduce git reset HEAD~1 might do it but I need to know what it's going to do - put the changes in the working copy or what?13:34
offby1 teweWork: well, surely if I just type "git pull" it only does a merge in my currently-checked-out branch.13:34
trick mapreduce: in the working directory yeah13:34
mapreduce: --hard will delete them out of the working directory13:34
mapreduce: --soft will put them in the index13:34
mapreduce Looks like you're right, cool.13:34
ereslibre joined13:34
jcdny left13:35
trick mapreduce: remember: --soft puts them in index, --mixed (or default) puts them in working directory, --hard removes them altoggether13:35
mapreduce I don't deliberately use the index anyway, so I won't remember --soft, but thank you.13:35
IslandUsurper joined13:36
orafu left13:36
offby1 not the most mnemonic option names.13:37
trick well --soft is useful if you wnat to put thigns back to how they were precisely before the commit13:37
orafu joined13:37
nonnooo left13:37
Remixman__ joined13:38
Remixman_ left13:38
tstclair joined13:39
catphish left13:40
lanthan joined13:41
tyteen4a03 left13:41
simplechat left13:41
dr_win_ joined13:43
trick offby1: what dou think of ruby13:45
dr_win left13:45
ping-pong left13:45
dekroning joined13:48
soxofaan left13:49
soxofaan joined13:50
xiangfu joined13:51
maleknet left13:52
rns left13:52
_Ludwig_ left13:52
c00kiemon5ter hey people13:52
linusoleander joined13:52
ping-pong joined13:52
Zenith77 joined13:53
dmsuperman left13:53
c00kiemon5ter say I have a repo I have 3 commits (a b c). All good but I notice I'd like to change something that would fit on changeset b. how can I make a change and have it stored as part of b's changeset (ie update b's diff) ?13:54
ofc that is local work, not something shared upstream13:55
genjix i do git checkout -b remoterepo/branchname and it creates a branch locally called "remoterepo/branchname" ... how can i specify the name?13:56
soxofaan left13:57
xiangfu left13:57
soxofaan joined13:57
daviddoria left13:57
Hypnos left13:58
ketas-av left13:58
leavittx_ joined13:58
IslandUsurper c00kiemon5ter, I would make a commit on top of c and then do git rebase -i13:58
ketas-av joined13:59
bauruine left13:59
bauruine joined13:59
IslandUsurper c00kiemon5ter, then switch c and d's lines, and change d to fixup or squash, depending on how you want to use the commit message13:59
cbreak_work c00kiemon5ter: git rebase -i the last few commits, and pick "edit" for the one you want to edit is an other way to do it13:59
maleknet joined13:59
dyer joined14:00
dyer left14:00
dyer joined14:00
cbreak_work genjix: git checkout -b <inserttargetbranchnamehere>14:00
znow joined14:00
cbreak_work you picked that branchname, so ... if you want an other one, use an other one14:00
genjix cbreak_work: it's a remote branch. i did git remote add foo git:// ... then git fetch foo... now I want a particular branch from foo14:01
znow Hi! I want to push my app to heroku by git, but everytime I do that, it installs all the "dependices" that are missing, gem's that is... how can I avoid that?14:01
cause it installs all the gems everytime I push14:01
cbreak_work genjix: doesn't matter what something else is14:01
genjix: git checkout -b makes a branch from HEAD (or the specified head) with the name you specify14:01
genjix oh thanks cbreak_work14:01
cbreak_work you should try git checkout -t14:02
(read man page)14:02
emptyflask left14:02
RaceCondition joined14:02
genjix yeah i'm pretty new to git... doing lots of tutorials and watchings vids to understand it14:02
cbreak_work vids?!14:03
...14:03
you should check out the man pages :D14:03
OOPMan left14:03
znow Hi! I want to push my app to heroku by git, but everytime I do that, it installs all the "dependices" that are missing, gem's that is... how can I avoid that?14:03
genjix znow: yeah we saw but nobody is sure :)14:04
maybe ask in #ruby14:04
znow oh okay, #ruby? :p14:04
what does that have to do with the Git cmd :p14:04
genjix you mentioned gem? isn't that a ruby library?14:04
cbreak_work znow: git push doesn't do anything with dependencies14:04
rns joined14:05
tango_ unless you have a hook that does that14:05
cbreak_work znow: and git push doesn't have anything to do with gem, what ever that is14:05
znow cbreak_work: well apparently ity does..14:05
Leemp left14:05
znow give me a sec, then ill do a screenshot ;)14:05
so you can see :p14:05
cbreak_work git push only updates refs in the remote repo14:05
offby1 trick: I've never really used Ruby, so my opinion is purely prejudice. But here it is: Ruby is what you get when Perl and Python collide at an intersection. It has no good reason for existence.14:05
Pewpewarrows joined14:05
Leemp joined14:06
FunkyFortune left14:07
trick oh ok, but yeah,hehe, it's nothing like that. semantically, in terms of the object model it's nothing like either of them, it's actually closer to being a variant of smalltalk, in fact many smalltalkers view ruby that way,i think kent beck is even quotes as saying "i always knew smalltalk would beat java in the end, i just didnt know it would be called ruby when it did"14:07
znow cbreak_work: http://myupload.dk/handleupload/3d5d93caad326bcd25a00d6b81baa06e129959321114:07
genjix offby1: hehe i have the same opinion14:07
somewhat weird syntax of ruby... sometimes newlines matter, sometimes they don't.14:08
cbreak_work znow: that's not git14:08
soxofaan left14:08
cbreak_work znow: that's something else14:08
znow O_o why the heck am I in the Git Bash right now?14:08
cbreak_work znow: seems it's called Heroku"14:08
znow that what happens when you do Git push heroku master14:08
soxofaan joined14:08
xiangfu joined14:08
cbreak_work do you understand what I am trying to say?14:08
genjix znow: this is a ruby problem14:09
znow heroku is a gem of RoR, that makes you able to push your app by git, to heroku, and heroku is a hosting platform for Rails apps14:09
okay14:09
cbreak_work the remote end executes foreign code14:09
genjix or whatever to do with the thing you're using14:09
cbreak_work after the push14:09
that foreign code that is not git does all the stuff you see14:09
genjix so sorry we don't know much about it :p14:09
cbreak_work it has nothing to do with git14:09
znow ^^14:09
cbreak_work not more than vim has to do with bash14:09
znow oh okay, well, still I am in git bash :p14:09
cbreak_work so?14:10
Leemp left14:10
cbreak_work you can start internet explorer from git bash too.14:10
it's a shell14:10
znow oh14:10
okay14:10
troessner left14:10
cbreak_work I will not support you with internet explorer problems14:10
you should use firefox instead14:10
troessner joined14:10
znow LOL14:10
mate...14:10
I am a fighter against IE :p14:11
Leemp joined14:11
cbreak_work do you have direct access to the remote?14:11
trick znow: but really, only extremely superficially could you call ruby a mix of python and perl, in reality it's nothing like that. It has extremely clear smalltalk roots, it just was inspired by python/perl syntax (though perhaps more perl than python)14:11
cbreak_work shell access?14:11
project2501a left14:11
cbreak_work if so, you could look into its hooks14:11
znow trick: yeah14:11
cbreak_work and delete out that heroku stuff14:11
acidave joined14:11
tizzo joined14:11
genjix i looked at --track but it seems to be something different14:12
http://pastebin.com/4xYAkTLU14:12
git checkout -b tcatm/daemon-mode daemon14:12
cbreak_work genjix: wrong order14:12
genjix ok14:12
Leemp left14:12
cbreak_work as I said above14:12
trick err that was meant for genjix *14:12
cbreak_work -b <branchnameyouwant>14:12
genjix hah thanks it works14:13
cbreak_work but as I also said14:13
check out -t, it's what you want14:13
Leemp joined14:13
cbreak_work it's similar to the command with -b14:13
but it picks a default name14:13
and also adds tracking meta data14:13
so you can pull without special args14:13
gazoombo joined14:14
mastroDani joined14:14
genjix git checkout -bt tcatm/daemon-mode14:14
you're right. thanks14:14
cbreak_work not bt14:14
-t14:14
genjix ok. nice14:14
owst joined14:15
genjix trick: well i don't get what the deal is with languages introducing lots of funky syntax everywhere :p14:15
sketchyd left14:16
trick genjix: what funky syntax are you referring to?14:16
genjix gets confusing once you need to read someone's code.14:16
shruggar joined14:16
znow left14:17
johnkary joined14:17
GeertB joined14:17
trick genjix: personally i dont think @var is any worse than self.var in python, thinkof the @ as just indicating 'self'14:18
genjix trick: ruby allows {} or def end for lambda's... the @ or #{sss} for concat in place ?, ! in function names =behin and =end ...14:18
soxofaan_ joined14:18
genjix at a glance def method(self, blaa): self.etc is more obvious than @somevar...14:18
trick genjix: nah it doesn't allow def end for lambdas, it allows two kinds of block syntax, {} and do/end, and they have different precedence14:19
genjix: it depends which you're used to, once you get used to @var it's very obvious indeed, in fact it attracts the eye immediately and you think 'instance var'14:19
genjix good thing about ruby is not needing ()'s for calling functions and implicit execution of functions when passed around.14:19
trick genjix: on the other hand 'self.var' could be mistaken for a sel.var' where sel is another object andyou're invoking the var method on it14:19
genjix not with code highlighting :p14:20
(i actually prefer no prefix like in c++)14:20
trick but if ther'es no prefix then that's even worse as you may confuse locals with instance variables14:20
soxofaan left14:21
soxofaan_soxofaan14:21
genjix it's not that bad.14:21
trick it's not bad, but it's certainly not better than @var14:21
soxofaan left14:21
trick which makes it explicit and obvious14:21
genjix because in c++ you always have the class headers easily accessible.14:21
soxofaan joined14:21
trick no, in a C++ IDE you may have the headers accessible14:22
not 'c++' itself14:22
bbl14:23
soxofaan_ joined14:24
anjen joined14:24
anjen left14:27
dyer left14:28
soxofaan left14:28
soxofaan_soxofaan14:28
trick left14:28
dyer joined14:30
dyer left14:30
dyer joined14:30
ouah joined14:30
ouah hi14:30
soxofaan left14:30
linusoleander left14:30
soxofaan joined14:30
acidave left14:31
jfkw left14:32
Deesl left14:37
nurey joined14:38
panike joined14:38
montylounge joined14:38
adaptee left14:39
Bisu[Shield] is there a way to jump up or down 30 or 40 lines with vim?14:40
iamjarvo joined14:40
rane_ like 40k?14:40
mastroWork joined14:40
rayners joined14:40
scelis joined14:40
emptyflask joined14:42
mastroDani left14:44
Swimming_bird joined14:44
tizzo left14:44
project2501a joined14:44
Remixman__ left14:45
project2501a left14:45
Predominant joined14:45
phishy left14:45
project2501a joined14:46
wysek joined14:48
ericbarnes joined14:49
linusoleander joined14:50
flaguy48 left14:50
fr0sty_ Bisu[Shield]: 40000j14:50
(for down)14:51
ericbarnes I am in the process of building a deployment script for a server and need to clone a bunch of repos when a new server is deployed. Because the number of repos will continue to grow would it be best to create one repo with all the others as submodules?14:51
Then clone that to pull in the latest from each other repo?14:51
fr0sty_ (and 40,000 not 40)...14:51
VladDrac Bisu[Shield] :30 to go to line 30l 30j to go 30 lines down (not very efficient probably)14:54
fr0sty_ ericbarnes: you probably just want a control file (or script) to git all of your repositories (unless there is a non-casual relationship between them.)14:54
wilmoore left14:54
VladDrac oh wait, that's what fr0sty_ suggested, never mind14:54
and rane.. but he's going up :)14:54
VladDrac suddenly understands the entire conversation! :)14:55
wilmoore joined14:55
ericbarnes fr0sty_ What I am doing it building an aws ami and when a new instance is created it needs to clone every site that will be on that instance14:55
ouah I have a big project in one repositoy I want to split in different repositories. With this model, if I want to go back to a specific commit in the past (for example to retreive a snaphost), how I can go back for all repositories? Check the date of the commit?14:55
BlueAidan left14:55
angelsl left14:55
flaguy48 joined14:55
g0bl1n joined14:55
BlueAidan joined14:56
Leonebarto joined14:56
wysek left14:56
fr0sty_ ericbarnes: maybe gitslave would work for you. Either way, coordinating the proper versions of X submodules sounds like a complex and error prone project.14:56
Leonebarto left14:57
fr0sty_ ericbarnes: submodules are always pegged to a commit and do not auto-advance in any way. so you would need to keep every submodule at the proper location within your superproject.14:57
panike left14:57
wysek joined14:57
fr0sty_ which may be a 'feature' where you come from, but I doubt it.14:57
ouah: use submodules.14:57
ericbarnes Yea sounds like it wouldn't be. Ideally I just want the latest from each one.14:57
lessthanzero joined14:58
ericbarnes The latest from a "production" branch14:58
ouah fr0sty_: what are submodules?14:58
fr0sty_ ericbarnes: gitslave might help.14:58
SethRobertson knows all...14:58
(regarding gitslave, at least)14:59
ouah fr0sty_: I wasn't aware of submodules, I'll check that, thanks14:59
fr0sty_ ouah: man git-submodule or read that chapter in Pro git (or the git book)14:59
jast ouah: the 'git-submodule' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html [automatic message]14:59
harshu left14:59
ouah thanks14:59
mastro joined15:01
cannonball joined15:02
mastroWork left15:05
hyperair left15:05
theycallmeniv joined15:05
soxofaan_ joined15:05
henrikbjorn left15:05
drubies|mbp joined15:07
dv310p3r joined15:07
soxofaan left15:09
soxofaan_soxofaan15:09
chrisshattuck joined15:09
mastroWork joined15:09
sgronblo_sgronblo15:10
tizzo joined15:11
drekaus joined15:11
ouah fr0sty_: now if I have another big repository made of several projects and one library project. All projects depend on the library project. I also want to split all projects (and the library project) in repositories. How can I keep the synchro of all projects with the library project?15:12
Also with git submodule, or is there something more adapted?15:12
mastro left15:12
jfkw joined15:13
dv310p3r left15:13
fr0sty_ each project would have the library as a submodule.15:13
dv310p3r joined15:13
ouah ok great, thanks for your help fr0sty_15:14
beatak joined15:14
TomyLobo joined15:15
karpar joined15:15
mando joined15:16
drekaus left15:16
chrisshattuck left15:17
mrconnerton joined15:19
montylounge left15:19
mastro joined15:19
leavittx_ left15:20
wilmoore left15:20
montylounge joined15:20
ph^ joined15:21
mrconnerton left15:21
mando_ joined15:22
wilmoore joined15:22
markatto joined15:22
mastroWork left15:23
smolyn joined15:24
johnkary left15:24
mando left15:24
oriba joined15:25
spearce joined15:26
g0bl1n left15:26
kurrata i made a mess and have some useless files. can i roll back to my last commit somehow?15:27
radarek left15:27
rns left15:28
opalka left15:28
kurrata i have those messed up changes in index15:28
mhi^ "git reset --hard", I believe :)15:29
Bass10 joined15:29
mhi^ (automatically takes HEAD as ref)15:29
Yuffster joined15:29
kurrata mhi^, thanks it removed the mess15:30
tonthon joined15:30
emptyflask_work joined15:30
tizzo left15:30
Bass10 left15:30
excess^ joined15:30
kurrata left15:30
tonthon I'd like to have an advice, is git-filter-branch a usable command when working on a project involving many person ?15:30
ceej joined15:31
tonthon I was wondering if playing with the rebase stuff and commit edition may not become a big mess15:31
jkyle left15:31
emptyflask_work left15:31
soze joined15:31
Bass10 joined15:31
rajeshsr joined15:31
Bass10 left15:33
accel joined15:33
accel is there any support / will there ever be support in git for ?don't checkout the history; only the current HEAD? this is for stuff on netbooks; where I don't want to sore the full history15:34
sivy left15:34
thiago_workshop left15:34
ChanServ set mode: +v15:34
tizzo joined15:34
sivy joined15:34
fr0sty_ tonthon: filter-branch is fine, provided you understand the troubles associated with rewriting history.15:34
mhi^ accel: I don't think so, cause it's not how git works. A git repo will always have the whole history.15:34
soze hi, is there any way to change gitweb to spanish for its html output ?15:35
fr0sty_ accel: you can do a 'shallow' clone, but such things are rather useless.15:35
wentasah left15:35
accel is there something to reduce a git repo's size more than git gc?15:35
fr0sty_ besides a shallow clone is not generally much smaller than a deep one.15:35
soze left15:35
soze joined15:35
mastroWork joined15:35
fr0sty_ accel: how large are the binary files you are storing in your repository?15:35
accel what's a shallow clone?15:35
GBs15:35
fr0sty_ man git-clone and look at --depth15:36
jast the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html [automatic message]15:36
accel mainly art work / 3d models15:36
tonthon fr0sty_, thanks15:36
fr0sty_ and don't store GB files in your git repositories, it's stupid.15:36
accel not quite TB level15:36
hmm15:36
Schmallon joined15:36
fr0sty_ it kinda voids the 'git is light and fast' warranty15:36
PerlJam fr0sty_: I think part of the problem is that people use git as a deployment tools as well as a revision control system.15:37
s/tools/tool/15:37
balor joined15:37
accel yeah; these days15:37
I dont' even use rsync/sftp much15:37
I just stick it in git15:37
then git commit; git push15:37
and git pull on another machine15:37
cbreak_work accel: git repack can repack the git repo15:37
balor is gitolite the One True Way of implementing access control on branches?15:37
ChanServ set mode: +v15:37
cbreak_work it happens automatically though15:37
balor: no.15:37
cenuij joined15:38
fr0sty_ balor: on repositories, yes. I'm unsure whether it has branch-level control.15:38
cenuij left15:38
cenuij joined15:38
soze hi, is there any way to change gitweb to spanish for its html output ?15:38
flaguy48 left15:38
PerlJam balor: it is *A* way15:38
cbreak_work there's also the hierarchic model of everyone-has-his-own-repo15:38
balor PerlJam: Is it recommended?15:38
PerlJam balor: sure. I use it.15:38
cbreak_work this obviously requires a human for access control15:38
grizz_ joined15:38
cbreak_work but it's way more flexible than gitolite15:38
more expensive too15:38
I think linux uses it15:39
balor cbreak_work: So a human gate-keeper15:39
mastro left15:39
jkyle joined15:39
balor PerlJam: Do you have an automated way of doing it?15:39
davzie left15:39
PerlJam balor: no.15:39
balor PerlJam: Thanks15:40
soxofaan left15:40
soxofaan joined15:41
grizz_ left15:41
nurey left15:41
darragh joined15:42
nonnooo joined15:42
anderse left15:43
mhi^ When having 2 'edits' on the stash, stash@{0} and stash@{1}, .git/refs/stash seems to always only reference the most current push, stash@{0}. Where are stash@{1} and above saved? (Background: I want to hack my prompt to show me the number of edits on the stash.)15:44
JP-Dery joined15:44
rns joined15:44
Schmallon left15:45
soxofaan_ joined15:46
cbreak_work mhi^: how about instrumentalizing git stash list?15:46
FunkyFortune joined15:48
soze left15:48
soxofaan left15:49
soxofaan_soxofaan15:49
soxofaan left15:50
soxofaan joined15:50
flaguy48 joined15:50
mhi^ Well, I guess that would work too.. I just wondered. :)15:50
mastro joined15:51
webPragmatist joined15:51
justin-george joined15:51
karpar left15:51
webPragmatist can you turn your current copy into a branch ?15:51
lattera joined15:51
orafu left15:52
davzie joined15:52
alvaro_o joined15:52
orafu joined15:52
owst left15:52
hobodave left15:52
alvaro_o left15:52
nd___ joined15:53
Remixman joined15:54
mhi^ webPragmatist: "git checkout -b test", where 'test' is the new branch name15:54
webPragmatist ah so it's not going to overwrite what i have?15:54
mastroWork left15:54
mhi^ it "copies" the current index to 'test' and your master will be in a clean state afterwards15:55
PerlJam webPragmatist: git doesn't destroy information except under extreme duress.15:55
webPragmatist thanks15:55
adamm joined15:55
nd__ left15:56
cbreak_work it doesn't copy the current index to test15:57
Heran joined15:57
cbreak_work it copies the current HEAD to test15:57
nadim joined15:57
Bass10 joined15:57
ChanServ set mode: +v15:57
Heran Hello15:58
I'm trying to write a pre-commit git hook which will timestamp one of my files15:58
fr0sty_ Heran: why?15:59
Heran however, it isn't working well, since when I do it in the pre-commit hook, it goes that way: get code (A version), add timestamp (A+timestamp=B), commit A version15:59
Bass10 left15:59
Heran and I end up with a modified git tree and timestamp from previous commit16:00
fr0sty_ again, why?16:00
acid left16:00
Heran well, I'm using it as some kind of VERSION= string in the program16:00
Bass10 joined16:00
tonthon left16:00
Heran the build date16:00
Nickeeh joined16:00
bremner Heran: but why commit that?16:00
Heran because it's displayed in the "About" section of the program and the program won't compile without that?16:01
koltroll left16:01
fr0sty_ Heran: you can determine that information automatically at compile time.16:01
jstemmer joined16:01
TomyLobo left16:02
fr0sty_ besides, commit-time is a terrible VERSION string...16:02
level09 joined16:02
level09 how do I track a directory of files without creating .git inside the dir ?16:02
Heran compile was a figure of speech, it's a python program ;-)16:02
tstclair left16:02
bremner Heran: well, you could use ident gitattributes, which is still horrible, but better than commiting it.16:03
shiba_yu36 left16:04
chrisshattuck joined16:04
TomyLobo joined16:04
tizzo left16:04
Heran I tried to put that timestamping in post-commit hook (and edit last commit with --amend), but since it's impossible to skip post-commit hook, it gets into an infinite loop16:04
tizzo joined16:05
Heran only solution right now to me seems to write a ./commit.sh which would do the thing... but I wanted to know if I can do it with hooks ;-)16:05
bremner we already suggested two other solutions...16:06
fr0sty_ Heran: no, you can't. and you don't really want to anyways.16:06
Heran bremner: you mean ident gitattributes in a hook? or at run-time?16:06
bremner Heran: man gitattributes16:06
jast Heran: the 'gitattributes' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html [automatic message]16:06
bremner Heran: see also https://git.wiki.kernel.org/index.php/GitFaq#Does_git_have_keyword_expansion.3F16:07
jds joined16:07
Heran bremner: thanks16:07
Anubisss joined16:07
Heran by the way, is datestring really so terrible in one-man no branch small project? i don't think so ;-)16:07
juangiordana joined16:08
LongBeach left16:09
bremner Heran: yes, it makes merging pointlessly difficult16:09
cbreak_work git describe? :)16:09
mastroWork joined16:09
jmil joined16:09
dekroning left16:11
cilly left16:12
cillybabe joined16:12
jrmuizel joined16:12
cillybabecilly16:12
mastro left16:13
resixian is there an easy way to show a log since a tag?16:13
urkud_ joined16:13
bremner git log tag16:14
resixian ah, nvm.. i thought ..HEAD was optional16:14
Heran left16:14
bremner oh, wait, since.16:14
cbreak_work there's git log --since16:14
resixian `git log tag` gives me the whole thing, but `git log <tag>..HEAD` works16:14
--since does sth wierd16:15
cbreak_work left16:15
Heran joined16:15
ChanServ set mode: +v16:16
Heran one more question16:16
skoop left16:17
lanthan left16:18
Heran is it possible to make changes in versioned files using hooks at all then? (.gitattributes seem to have a bit limited power of that)16:19
scelis left16:20
rolfb joined16:20
Heran another thing I wanted to do automatically prior to commit is to run pyuic4 on my .ui file from Qtdesigner, so the python code pulled from git repository is already ready to run without the need to run it16:20
bremner gitattributes is only changing the checked-out copy16:20
Heran however I stumbled at the same problem as with timestamping16:20
wow, I wrote it pretty complicated, it should be "so the main program python code pulled from git repository is already ready to run without the need to run pyuic4 to generate .py from .ui"16:22
resixian why are diff options on the git log manpage? can i have the log print out a --summary? doesnt seem to do anything16:22
_psychic_ joined16:23
myrkraverk joined16:24
myrkraverk Hello.16:24
bremner Heran: it sounds like you need something like a Makefile16:24
Heran yeah, I wrote a makefile\16:24
myrkraverk Can I (easily) do git diff against the first version I got when I cloned the repository?16:24
Heran and I tried to run it in the same place I timestamped my version string16:24
booginga joined16:24
Heran so the .py would be generated prior to commit, but I couldn't get the result I wanted16:25
RaceCondition left16:25
Heran for the same reasons mentioned16:25
theycallmeniv left16:26
bremner myrkraverk: does git diff origin/master do what you want?16:26
resixian myrkraverk: just do git diff <orginal commit>..HEAD16:26
urkud_ left16:26
bremner Heran: in general generated files do not belong in version control16:26
myrkraverk bremner, maybe, looking at it.16:26
bremner myrkraverk: it depends if you have fetched or pushed since the clone in question16:27
myrkraverk I've pushed since the clone.16:27
I want a diff against the original clone.16:27
bremner myrkraverk: I guess you need to look at git log or gitk to figure out what the commit hash is.16:28
fr0sty|android left16:28
myrkraverk Ok, git log is easy enough to use.16:28
I think I have my diff.16:28
TomyLobo2 joined16:29
TomyLobo left16:29
TomyWork joined16:29
panike joined16:29
g0bl1n joined16:30
chrisshattuck left16:30
tvon joined16:30
tvon Is there a way to write to a mercurial repo with git?16:31
montylounge left16:31
thiago left16:31
tvon ffs, nevermind16:31
chrisshattuck joined16:32
jepler-jepler16:32
PerlJam Heran: make a distinction betwee "developers" and "users". It's not onerous for developers to generate a file and they probably already have some automated thing that sets up their environment just like it needs to be (or you can provide something). Users don't care about your repository, they care about the things your repository creates, like "version 1.5" of whatever16:32
noahcampbell joined16:33
mastro joined16:33
steph021_h joined16:33
PerlJam Heran: so, the only time you should generate something is when you want to release a new version for your users.16:33
montylounge joined16:33
TomyLobo2 left16:34
thiago joined16:34
rajeshsr left16:34
rajeshsr joined16:34
tizzo left16:35
OOPMan joined16:35
gebi joined16:35
Heran PerlJam: thanks for that distinction, I'll rethink my approach16:35
TomyLobo2 joined16:35
tvon left16:35
TomyWork left16:36
remi_ joined16:36
Heran left16:36
cmn|e joined16:36
mastroWork left16:36
TomyWork joined16:36
_psychic_ left16:37
_psychic_ joined16:37
lattera left16:37
ouah left16:37
tjholowaychuk joined16:37
mcmat joined16:39
shennyg joined16:39
teweWork left16:39
level09 left16:39
bdiu joined16:40
radarek joined16:40
TomyLobo2 left16:40
mcmat left16:40
TomyLobo2 joined16:41
mejla__ left16:41
TomyWork left16:41
tizzo joined16:41
TomyWork joined16:41
cmn left16:42
RaceCondition joined16:42
mikewintermute joined16:43
lattera joined16:43
koltroll joined16:45
TomyLobo2 left16:45
Schmallon joined16:46
koltroll left16:48
balor left16:49
suds left16:49
VirusScan joined16:49
jhuon left16:49
justin-george left16:50
esparkman left16:52
dreiss joined16:52
mastroWork joined16:52
TomyLobo2 joined16:53
smolyn left16:53
TomyWork left16:53
TomyWork joined16:53
rseifert joined16:54
tizzo left16:55
bauruine left16:55
TomyLobo2 left16:55
VirusScan left16:55
TomyLobo2 joined16:55
mastro left16:56
TomyWork left16:56
acid joined16:56
TomyWork joined16:56
mastroWork left16:57
giallu left16:58
saschpe left16:58
rgl left16:58
rgl joined16:58
adamholtadamholt_away16:59
adamholt_awayadamholt16:59
jerk left16:59
dreiss left17:00
TomyLobo2 left17:00
TomyLobo2 joined17:00
chrisshattuck left17:00
TomyWork left17:00
ExtraSpice left17:00
montylounge left17:01
TomyWork joined17:01
dreiss joined17:01
xiangfu left17:02
chrisshattuck joined17:02
flov left17:03
versatiletech joined17:03
hobodave joined17:04
TomyLobo2 left17:05
deuterium left17:05
napster_123 joined17:06
owst joined17:06
dreiss left17:06
versatiletech_ joined17:06
kenichi joined17:07
Zenith77 left17:07
versatiletech left17:08
TML left17:08
hyperair joined17:09
_psychic__ joined17:09
__name__ joined17:11
__name__ left17:11
__name__ joined17:11
TML joined17:11
versatiletech_ left17:11
versatiletech joined17:11
pheaver joined17:11
rolfb left17:11
henrikbjorn joined17:12
Bruce_Wayne joined17:12
_psychic_ left17:13
_psychic___psychic_17:13
TomyLobo2 joined17:13
TomyWork left17:13
joelr joined17:13
TomyWork joined17:13
irc2samus joined17:13
joelr good day! how do i check out a remote branch if ls-remotes gives me refs/heads/lucene_solr_3_117:14
this complains that origin/... is not a valid name: git branch --track lucene_solr_3_1 origin/lucene_solr_3_117:14
justin-george joined17:14
pheaver left17:15
FauxFaux ls-remotes only seems to exist in your head.17:15
pheaver joined17:15
justin-george left17:15
joelr FauxFaux: thanks, i meant git ls-remote17:16
FauxFaux git ls-remote origin?17:16
theycallmeniv joined17:16
chrisshattuck left17:17
joelr just 'git ls-remote' works for me17:17
git ls-remote17:17
From git://github.com/apache/lucene-solr.git17:17
aed85e6921ad720d9f45e40fdd79478b759565ee HEAD17:17
ec1682e031725424eb9783cedc8d9f45a4b72f02 refs/heads/branch_3x17:17
...17:17
TomyLobo2 left17:17
fr0sty_ where is "lucene_solr_3_1" in that list?17:18
FauxFaux Mm, doesn't here. I've never used the command, anyway. Basically, are you sure that repo is called origin? git remote -v17:18
lightcap joined17:19
joelr b06f5b6944853a73bd98c1c289d76622c93d5750 refs/heads/lucene_solr_3_117:19
fr0sty_: ^17:19
fr0sty_ 'git remote' lists 'origin17:19
?17:19
joelr also17:20
b06f5b6944853a73bd98c1c289d76622c93d5750 refs/remotes/lucene_solr_3_117:20
fr0sty_: yes17:20
git remote17:20
origin17:20
Predominant left17:21
fission6 joined17:21
fission6 how to i checkout a remote brnahc17:21
HG` joined17:21
g0bl1n left17:22
liquidproof left17:22
_ollie joined17:22
fr0sty_ what does 'git show origin/lucene_solr_3_1' show you?17:22
joelr git show origin/lucene_solr_3_117:23
fatal: ambiguous argument 'origin/lucene_solr_3_1': unknown revision or path not in the working tree.17:23
Use '--' to separate paths from revisions17:23
Badiss left17:23
filosofo joined17:23
TomyLobo2 joined17:23
flov joined17:23
smolyn joined17:23
amerine joined17:24
TomyWork left17:24
fr0sty_ joelr: 'git fetch origin'17:24
Fullmoon joined17:24
lightcap left17:24
TomyWork joined17:24
filosofo I'm using a subtree merge to bring in an external library into the main project.17:24
fission6 how would i check out a remote branch?17:24
joelr fr0sty_: * [new branch] lucene_solr_3_1 -> origin/lucene_solr_3_117:25
filosofo What's the best way to make changes on the main project and push back to the subtree merge?17:25
Bisu[Shield] left17:25
flov left17:25
joelr fr0sty_: thanks!17:25
works now17:25
joelr left17:26
montylounge joined17:26
fission6 fr0sty_: how do i check out the following origin/dev locally and create a branch17:26
doener joined17:27
versatiletech left17:27
doomrobo joined17:28
fr0sty_ git checkout -b mydevbranch origin/dev17:28
TomyLobo2 left17:28
fr0sty_ fission6: ^17:28
LiamH joined17:28
TomyLobo2 joined17:28
TomyWork left17:28
fission6 okay thanks17:28
qwp joined17:28
TomyWork joined17:29
doomrobo If I have a project with multiple branches, can I have a master branch to be in sync with all of them so that I can see the project as a whole?17:29
foocraft left17:29
steph021_h left17:29
doomrobo or is that the wrong way to use git?17:29
fr0sty_ doomrobo: not even sure how you would attempt that...17:30
doomrobo So I'm doing it wrong17:30
vitor-br joined17:30
henrikbjorn left17:30
fr0sty_ you can checkout whatever branch you want to look at it.17:30
joel_falcou joined17:30
fr0sty_ you can use gitk (or other visualization tools) to see how branches relate to each other.17:30
doomrobo but I what if i want to see all at once just in case, say, I want to back it up.17:31
fission6 fr0sty_: how do i see what branch is trcking?17:31
tstclair joined17:31
fission6 like i have my local branch now but how do i confirm what its tracking remotely17:31
ubuntu__ joined17:31
henrikbjorn joined17:32
fr0sty_ git branch -vv17:32
Predominant joined17:32
TomyLobo2 left17:33
Zenith77 joined17:33
doomrobo left17:33
doomrobo joined17:33
fr0sty_ doomrobo: that question doesn't make sense.17:34
you have it 'all' locally already.17:34
kylehayes joined17:34
fr0sty_ if you want to back it up save the .git directory17:34
fission6 fr0sty_: finally how do i pull new code for the development branch17:35
fr0sty_ if it is tracking correctly: 'git pull'17:35
xiong joined17:35
doomrobo If I want to start a multi-part project, should I have a master branch or just separate branches for each element?17:35
fr0sty_ or 'git pull --rebase' if you prefer.17:35
multi-part?17:35
superflit joined17:35
foocraft joined17:36
doomrobo I have a program and a serial generator for said program17:36
madewokherd joined17:36
FauxFaux Seperate branches and seperate repositories are effectively identical, pick whatever, it's trivial to fix later.17:36
saysjonathan joined17:37
fission6 thanks fr0sty_17:37
sebersole left17:37
iAsterisk joined17:37
ivey joined17:37
saschpe joined17:37
henrikbjorn left17:38
accel left17:38
accel joined17:38
chargingllama joined17:40
sebersole joined17:42
jarrod_ joined17:42
ChUrP joined17:43
doomrobo Is it considered bad practice not to have a master branch?17:44
TomyWork left17:44
fr0sty_ no17:44
doomrobo ok, thank you17:45
fr0sty_ it's convention, but it is optional.17:45
justin-george joined17:45
doomrobo left17:45
TomyWork joined17:45
achadwick left17:46
justin-george left17:46
hyperair left17:46
Buglouse joined17:46
justin-george joined17:46
henrikbjorn joined17:48
ilteris left17:49
davzie left17:49
filosofo left17:49
kipras joined17:49
dannas joined17:50
ilteris_ joined17:50
RiaGuy left17:51
bipolarmaniak joined17:51
kiffa joined17:51
panike left17:51
kiffa left17:52
srji joined17:52
srji i am searching for a document that describes how i can use git with multiple user accounts and multiple repositories on ONE machine17:53
kipras left17:54
vitor-br left17:54
fr0sty_ gitolite17:54
vitor-br joined17:54
gusnan left17:55
soxofaan left17:55
srji i dont want a own git server17:56
fr0sty_ ?17:56
srji i'm a user, and want access to multiple git repositories with different acounts17:57
ChanServ set mode: +v17:57
srji i work as freelancer for different companies17:57
Zephyrus joined17:57
fr0sty_ set your remote urls correctly.17:57
ssh://user1@somehost.com...17:58
ssh://user2@anotherhost.com...17:58
skoop joined17:58
myrkraverk left17:58
fr0sty_ if you have the same user than do some magic in your .ssh/config to configure users and hosts.17:58
bipolarmaniak does anyone know of any reason why (other than perms) `git daemon --base-path=/foo/ /foo/` renders a "'/bar.git' does not appear to be a git repository" error? bar.git exists, is a valid repo, and all commands run as root: e.d git clone git://gitserver/bar.git17:59
_ollie left17:59
srji exist a document what these describes?17:59
bipolarmaniak oh, and git-daemon-export-ok is in the repo dir17:59
fr0sty_ srji: man git-clone has a 'GIT_URLS' section describing urls18:00
jast srji: the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html [automatic message]18:00
guardian left18:00
fr0sty_ and there are untold numbers of ssh/config tutorials.18:00
bipolarmaniak: the absolute path is /foo/bar.git ?18:00
Bruce_Wayne left18:00
bipolarmaniak frosty_ yes18:01
fr0sty_ and /foo and foo/bar are +x for the git-daemon user?18:01
airborn left18:01
bipolarmaniak yes again18:01
frosty_: itworks with this git clone git://gitserver/foo/bar.git18:02
kukks joined18:02
fr0sty_ with base-path set, or not?18:02
bipolarmaniak frosty_: either way, the full path works, but base-path is not being honered18:02
workmad3 left18:03
PigeonFriend left18:04
McMAGIC-- joined18:05
shruggar left18:06
jast bipolarmaniak: is that error message output by the daemon (in its own terminal) or by the 'git clone'?18:07
bipolarmaniak jast: that's outut on the server/daemon18:07
Dave^| joined18:08
Delerius left18:09
bipolarmaniak wow, now `git daemon ?-verbose --reuseaddr /foo` produces /foo/bar.git: not in whitelist. the man page says that <directory> whitelist is recursive. :-/18:09
jast it should be, unless you are using --strict-paths18:10
bipolarmaniak when issuing a `git clone git://gitserver/foo/bar.git`18:10
jack: right, and I'm not. I'm on Lucid, btw18:10
acts_as left18:11
Delerius joined18:11
qwp left18:12
owst left18:12
owst joined18:12
ch077179 joined18:13
jelmer left18:13
foocraft left18:15
TheFox21 joined18:15
thechistoso joined18:16
thechistoso left18:17
chrisshattuck joined18:18
bipolarmaniak here's teh steps to reproduce:18:19
https://gist.github.com/86068918:19
tia to anyone willing to take a look18:19
dreiss joined18:19
owst left18:19
owst joined18:19
pyrony joined18:20
jast bipolarmaniak: ah... presumably, git-daemon assumes, based on the directory name (bar.git) that it's a bare repository, but you created a non-bare one (i.e. one with a working tree, not typically used for hosting)18:20
try cloning from git://example.org/bar.git/.git18:21
curtana left18:21
bipolarmaniak ok, i created a bare repo with nochange18:22
I'll try that too18:22
jast hmm18:22
mrconnerton joined18:23
bipolarmaniak jast: I know,I'm ripping my hair out18:23
zzing joined18:24
mrconnerton left18:24
Toastable joined18:25
_psychic_ left18:26
acts_as joined18:26
fr0sty_ bipolarmaniak: you are running git-daemon as root?18:26
_psychic_ joined18:26
bipolarmaniak fr0sty_: yea, ATM, for testing18:27
now when I try `git clone git://git/root/foo/bar.git` i get '/root/foo/bar.git': not in whitelist18:28
server args: --base-path=/root/foo /root/foo/18:28
ereslibre left18:29
dyer left18:30
bipolarmaniak I'll try from a different server and see if it makes a difference18:31
lattera left18:31
sechrist left18:34
cylence left18:34
Bruce_Wayne joined18:35
chrisshattuck left18:35
jmorris joined18:37
TheFox21 left18:38
Bruce_Wayne left18:38
Evious joined18:39
adamholtadamholt_away18:41
adamholt_awayadamholt18:42
Yuuhi left18:42
eco_eco18:42
fr0sty_ bipolarmaniak: have you tried --export-all18:43
?18:43
accel left18:43
tizzo joined18:44
beyondcreed joined18:44
priidu_ left18:45
bipolarmaniak fr0sty: yea. I think it may work this time18:45
crashanddie left18:47
bipolarmaniak git daemon --verbose --base-path=/home/me/foo /home/me/foo worked on a different machine18:47
chargingllama left18:48
bipolarmaniak I still received whitelist errors until I used the full path above though :-(18:48
kylehayes I'm looking for a good solution to "group" multiple repositories under a project18:49
Basically so I can branch all the projects at the same time, or merge, etc18:49
MikhX left18:49
kylehayes s/projects/modules/18:49
thiago_workshop joined18:50
Chaser joined18:50
TheFox21 joined18:50
lessthanzero left18:51
lessthanzero joined18:51
bipolarmaniak fr0sty_, jast: thanks y'all18:51
priidu_ joined18:52
TheFox21 left18:52
remi_ left18:52
acts_as left18:52
TheFox21 joined18:53
tizzo left18:53
dim joined18:53
owst left18:54
cenuij left18:54
tizzo joined18:54
remi joined18:54
remi left18:54
remi joined18:54
Zenith77 left18:54
shennyg_ joined18:55
MikhX joined18:55
acts_as joined18:55
tjholowaychuk left18:55
nonnooo left18:56
ax joined18:57
shennyg left18:57
shennyg_shennyg18:57
krunkosaurus joined18:58
krunkosaurus How do I set git so when I do a "git push" it only pushes commits from my local branch to origin/branch18:58
elmargol joined18:59
bentob0x left18:59
mrico joined18:59
fr0sty_ krunkosaurus: what happens now?19:03
elmargol left19:03
guardian joined19:04
cbreak krunkosaurus: man git-config19:04
jast krunkosaurus: the 'git-config' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-config.html [automatic message]19:04
rajeshsr left19:04
cbreak look for push.default19:04
adamholtadamholt_away19:04
adamholt_awayadamholt19:05
johnw joined19:05
cbreak krunkosaurus: you probably want "current"19:05
krunkosaurus sweet19:05
right now it tries to push all branches to all remote repos19:05
elmargol joined19:06
cbreak no, matching branches is the default19:06
ax i read a blog post about a script for resolving merge issues with a specific file [a rails db/schema.rb file], i'm wondering, what that is called? so i can read up on it more..19:06
krunkosaurus cbreak: I have matching set for both push and pull in my ~/.gitconfig19:06
cbreak matching is the default19:06
krunkosaurus ohh19:06
cbreak it means "push all branches that match in names"19:06
Samual left19:07
tizzo left19:07
theoros joined19:07
krunkosaurus thanks cbreak: I believe that did it19:07
dpino left19:08
sechrist joined19:08
heda joined19:09
thiago_workshop left19:10
thiago_workshop joined19:10
thiago_workshopthiago_home19:10
ChanServ set mode: +v19:10
heda hi all, is there any way to get git status --porcelain to either output the full file path or to output relative paths from the current directory? (it currently outputs from the root)19:10
amh345 joined19:10
amh345 i guys, im looking for some newb help on a command. how to a structure git remote add origin ssh://blah@blahblah.com/~git/something.git if i want to use a keypair? i cant get my formatting structure correct.19:12
fr0sty_ heda just append 'git rev-parse --show-toplevel'19:12
teuf amh345: key pair ? ssh public/private key?19:12
tjholowaychuk joined19:12
Dave^| left19:12
TomyWork left19:12
thiago_home amh345: edit ~/.ssh/config19:12
Dave^| joined19:13
TomyLobo joined19:13
amh345 teuf: forgive me. im a little confused. right now i can ssh using ssh -i ec2-keypair [email@hidden.address]19:13
heda fr0sty_: cheers19:13
phantomcircuit joined19:13
cbreak I'd just add the key to the agent19:13
ssh-add key19:13
ubuntu__ left19:13
Dave^| left19:13
teuf amh345: what thiago_home or cbreak say :)19:13
amh345 ssh -add ec2-keypair ?19:13
dannas left19:14
Dave^| joined19:14
thiago_home amh345: ssh-add19:14
Samual joined19:14
cylence joined19:14
kristianpaul joined19:14
jmorris left19:14
amh345 im a little nervous im going to bork my keys again. (and lock myself out), so i want to make sure .hah19:14
cbreak you still have your main account19:15
or password access, maybe :)19:15
oriba left19:15
kristianpaul Hello19:15
How i can tell git just show me the commit log for a specific file?19:15
amh345 i dont know, last time i screwed it all up and had to restart my server instance :)19:15
rane_ kristianpaul: git log -- path/to/file19:15
thiago_home kristianpaul: git log filename19:15
cbreak kristianpaul: git log -- filename will filter all commits that affect it19:15
chrisshattuck joined19:16
cbreak add in -C or -M if you want to track renames19:16
kumbayo joined19:16
cbreak or --follow19:16
although I never tried that19:16
kristianpaul ah, pity, (why i just dint tried..)19:16
tks19:16
Textmode joined19:16
amh345 hmm ssh -add and ssh -add ec2-keypair just give me an ssh options list.19:16
thiago_home amh345: ssh-add19:16
cbreak amh345: we actually mean what we write19:17
amh345 oh, is there no space?19:17
drizzd joined19:17
cbreak no space...19:17
amh345 ahh19:17
i just returned this Identity added: ec2-keypair (ec2-keypair) does that look about right?19:17
cbreak if you didn't protect your key, yes19:17
(with an encryption password)19:18
scelis joined19:18
scelis left19:18
ax ahh, custom merge driver [answering my own question in case anyone else was wondering]19:18
amh345 ok, lets see if i can get git working.19:18
zzing left19:19
HG` left19:20
kristianpaul Okay,now how i can see the diff history between commits for a certain file?19:20
amh345 i think it's working guys!19:20
fr0sty_ git diff commit commit -- file19:20
remi left19:20
amh345 oh man. it's slooooow19:21
cbreak kristianpaul: add a -p to the git log command19:21
kristianpaul: as first arg :)19:21
shennyg_ joined19:21
cylence left19:22
hunmonk joined19:23
ISF joined19:23
Predominant left19:23
chrisshattuck left19:24
hunmonk our gitweb installation is returning an empty file when the requested file doesn't exist — is there some setting we can tweak to make it return a 404 or the like in these cases?19:25
shennyg left19:25
shennyg_shennyg19:25
opalka joined19:26
Predominant joined19:26
dim left19:26
TheFox21 left19:26
dim_ joined19:27
acts_as_ joined19:27
excess^_ joined19:27
saschpe left19:27
darragh left19:27
iAsterisk left19:27
acts_as left19:28
acts_as_acts_as19:28
iAsterisk joined19:30
flov joined19:30
excess^ left19:31
excess^_excess^19:31
ereslibre joined19:33
ericbarnes what is the fastest way to get all the files out of a repo? git clone --depth 1? Or is anything else faster? I just need the files and do not care about history.19:37
heda hi fr0sty_ could give me an example of that full path...here's what i have at the moment git status --porcelain | cut -c4- | xargs stat -f "%m" -t "%x"19:37
ej left19:37
patrikf ericbarnes: git archive19:38
ej joined19:38
ericbarnes So that would be the fastest including uncompressing it?19:39
gregglind joined19:39
ayust archive doesnt necessarily compress19:39
the default format is 'tar', which is not compression19:39
bmahe joined19:40
ayust git archive HEAD | tar -C /path/to/folder -x19:40
javaanse_jongens left19:40
krunkosaurus If I set default.pull and default.push to current - is there any point in setting upstream tracking?19:40
esparkman joined19:40
ericbarnes excellent thanks19:40
ayust will get you the contents of the repo at its HEAD in /path/to/folder19:40
ericbarnes what about a branch?19:40
ayust krunkosaurus: you'll be informed by git status when you're ahead/behind/diverged19:40
ericbarnes: change HEAD to the branch name19:40
ericbarnes awesome thanks19:41
krunkosaurus ayust: gracious.19:41
FunkyFortune left19:42
Zenith77 joined19:43
TomyLobo left19:44
alex__c2022 joined19:44
javaanse_jongens joined19:45
setmeaway2 joined19:46
setmeaway left19:46
ericbarnes ayust Just noticed that in order to use archive you must already have it cloned. Right?19:46
ayust ericbarnes: no19:46
you can specify a path to a repository to archive19:47
adamholtadamholt_away19:47
adamholt_awayadamholt19:47
ayust --remote=github.com/foo/bar19:47
for example19:47
ericbarnes ahh I missed the remote part :(19:48
LongBeach joined19:48
nevyn^ left19:48
ilpoldo left19:48
pratz left19:50
t3i joined19:50
dyer joined19:51
dyer left19:51
dyer joined19:51
ch077179 left19:52
henrikbjorn left19:55
OOPMan left19:55
rseifert left19:56
henrikbjorn joined19:56
JP-Dery left19:57
werdan7 left19:57
henrikbjorn left19:57
tty3 left19:58
tty1 joined20:01
tty1 left20:01
tty1 joined20:01
deuterium joined20:02
goshawk joined20:02
henrikbjorn joined20:03
henrikbjorn left20:04
ch077179 joined20:05
ki__ joined20:05
dannas joined20:06
fr0sty_ heda: add ... | sed -e s\|^\|$(git rev-parse --show-toplevel)/\| to the end...20:07
EricInBNE joined20:07
JP-Dery joined20:07
fr0sty_ there may be a cleaner approach but that works (for me at least)20:08
OOPMan joined20:09
goshawk left20:11
ping-pong left20:12
ping-pong joined20:14
tizzo joined20:14
Olytibar joined20:16
noahcampbell left20:16
codebeaker joined20:17
Olytibar Hey guys, how can I use git decentralized, between two people, without a central server?20:17
noahcampbell joined20:17
bremner Olytibar: pull from each other?20:17
Olytibar How?20:18
wereHamster using.. uhm.. git pull ?20:18
bremner Olytibar: do you have ssh access to each other's hosts?20:18
Olytibar Ok, is this necessary?20:19
agile left20:19
mrico left20:20
bremner well, you can email patches, send bundles on usb sticks, there are many options, but ssh is the most convenient20:20
or some fancy http thing that I don't know much about20:20
codebeaker very quick query is there a difference between ssh://user@host.com/blah.git and user@host:blah.git ? is one ssh, the other SFTP, SCP?20:20
wereHamster Olytibar: you need to have some way of connecting between the computers..20:21
MattDiPasquale joined20:21
agile joined20:21
Chillance left20:21
drizzd codebeaker: no, the latter is just scp syntax, but it's the same as ssh://20:21
codebeaker drizzd: thanks having it out on a mailing list with someone who insisted they were "completely different"20:21
t3i_ joined20:21
codebeaker … the manual was pretty clear, but thanks for the sanity check :)(20:22
dyer left20:22
napster_123 left20:23
fission6 left20:23
DiGitalX joined20:24
quentusrex left20:24
javaanse_jongens left20:24
eletuchy joined20:24
agile left20:24
surikator joined20:25
t3i left20:25
t3i_t3i20:25
abetaha joined20:25
Claviceps joined20:25
javaanse_jongens joined20:25
wereHamster codebeaker: they are! One starts with ssh:// and the other one with user@. Don't you see the difference?20:26
codebeaker heh :-D20:26
lightcap_ joined20:26
codebeaker wereHamster: one query on the topic though, does git clone know anything about ssh agents?20:26
Olytibar Thank you, we will now use Dropbox to let git communicate with each other.20:26
Olytibar left20:26
thiago_home codebeaker: the difference is actually the slash after host.com20:26
lightcap_ left20:26
thiago_home codebeaker: the [email@hidden.address] has no slash20:27
wereHamster codebeaker: how do you mean know aobut ssh?20:27
Plouj joined20:27
codebeaker about ssh agents ^20:27
wereHamster no20:27
mando_ left20:27
Plouj forgot how to combine 1st and 2nd commits20:27
codebeaker ah, ok - interesting20:27
intripoon_ left20:27
agile joined20:27
codebeaker I need to get it to use my forwarded agent key :(20:27
goshawk joined20:27
Plouj I mean, actual first and second commits since the beginning of history of a given repo20:27
intripoon joined20:27
t3i_ joined20:27
deuterium left20:28
foocraft joined20:28
abetaha left20:28
m104 joined20:28
IslandUsurper Plouj, are you really prepared to change all of the hashes of all of your commits?20:28
wereHamster Plouj: rebase starting with the first, select 'edit', then reset --soft HEAD^ && commit and continue with the rebase20:28
rrjamie joined20:29
Plouj thanks20:29
rrjamie I have a (delete/foo) conflict after moving stuff around on one branch, and then merging20:29
how do I resolve it20:29
thiago_home rrjamie: did you mean to ask "how do I make git merge find the renames" ?20:29
t3i left20:30
rrjamie thiago_home: or, that would work too ;)20:30
t3i_t3i20:30
thiago_home rrjamie: see man git-config20:30
jast rrjamie: the 'git-config' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-config.html [automatic message]20:30
thiago_home rrjamie: there are some settings for rename detection20:30
rrjamie: if that still fails, then fix manually and then git add the files20:30
Plouj left20:30
vitor-br left20:31
sako joined20:32
sako hey guys, how do i initiailze all submodules in a git repo?20:33
i have everything in .gitmodule, but i dont want to go through one by one and do git submodule name update --init20:33
syphar joined20:35
codebeaker sako: check help for submodules, you can init all of them20:36
nurey joined20:37
codebeaker wereHamster; is there any known way to make git-clone care about the ssh agent?20:37
wereHamster codebeaker: no. Make ssh care about its agent20:38
patrikf codebeaker: if ssh works, git-over-ssh should too.20:38
krunkosaurus left20:38
wereHamster then git will, too20:38
codebeaker patrikf: thanks, regrettably I can't test SSH (no permissions to login) but I should be able to check out my repo… I'm a project collaborator on github20:39
sockmonk joined20:39
sockmonk left20:39
doener left20:39
patrikf run git with GIT_TRACE=1 and then run the ssh command-line it outputs20:39
if it shows the same behaviour, fix your ssh config20:39
codebeaker thanks didn't know about GIT_TRACE20:40
rrjamie thiago_home: alright, so that failed, but I'm confused as to what my now conflicted tree looks like... where would git put the "deleted" files so I can inspect them and resolve the conflicts?20:41
wereHamster rrjamie: into the index20:41
codebeaker thanks for the tip, the output doesn't make sense20:41
thiago_home rrjamie: in the case of delete/modified conflicts, Git put the file from the branch that didn't delete it into the working dir20:41
Nilbus joined20:41
Nilbus hello20:42
Tido joined20:42
thiago_home rrjamie: you have to find the other copy (the one after moving around), merge the code and git rm the original20:42
wereHamster codebeaker: pastebin it?20:42
codebeaker i think the problem may be ls-remote… since I don't have permission to get a shell…20:42
just looking into it20:42
patrikf no, this is how git-over-ssh works.20:42
and it has nothing to do with a shell20:42
codebeaker ok, np = looks like it was trying to do ssh [email@hidden.address] 'git-upload-pack myproj.git'20:43
wereHamster that looks correct20:43
codebeaker htm20:43
hrm*20:43
wereHamster codebeaker: what do you see if you run 'ssh [email@hidden.address] ?20:44
tiglionabbit joined20:44
nurey left20:44
codebeaker Permission denied (publickey)_20:44
wereHamster fix your ssh config, or keys20:44
sako codebeaker: do you have your ssh-key setup in your github settings?20:44
codebeaker yeah, sako it works… but not via this host20:45
I need to look at `ssh -vvv [email@hidden.address] and see if it's even bothering to offer my forwarded kay, but I don't know wha tI'm looking for in that outptu20:45
rrjamie thiago_home: git status gives "deleted by us: lib/jungle_static", but lib/jungle_static isn't in my working dir (it was moved to jungle/lib/jungle_static)... so I can git rm this imaginary folder, but I can't see how to inspect it20:46
thiago_home rrjamie: git shouldn't complain about directories20:46
chrisshattuck joined20:46
thiago_home rrjamie: are you sure it's not a file?20:46
rrjamie thiago_home: it's a submodule20:46
justin-george left20:47
tiglionabbit I used git svn clone on an svn repository, then I used git clone on the resulting git repository, then ran git svn dcommit no the new repository and this happened: http://friendpaste.com/9OTBwYX0ONsD08p5U0tVl20:47
thiago_home rrjamie: it won't checkout then. Just check the SHA-1 of the submodule commit it pointed to.20:47
ayust codebeaker: "debug1: identity file <some path here>"20:47
sontek left20:47
tiglionabbit how do I fix it?20:47
ayust where the path is the one for your key file20:47
thiago_home tiglionabbit: don't clone an svn clone20:47
codebeaker ayust: but there's no identity file, or is the file in SSH_AUTH_SOCK the real file ?20:47
chrisshattuck left20:47
thiago_home tiglionabbit: keep the svn operations in the same repository you did the svn clone from.20:48
tiglionabbit =[20:48
well20:48
ayust codebeaker: you don't have a ".ssh/id_rsa" or similar?20:48
Zephyrus left20:48
of2vil_ joined20:48
tiglionabbit effectively I just want to move this repository to a different machine20:48
thiago_home tiglionabbit: then rsync it20:48
tiglionabbit ok20:48
codebeaker yes on my workstation, but I'm SSHe'd into host (A) trying to reach github as myself20:48
tiglionabbit what options should I give to rsync?20:48
thiago_home codebeaker: ssh -A othermachine20:48
codebeaker (or rather as [email@hidden.address] but using my forwarded key)20:48
justin-george joined20:48
thiago_home tiglionabbit: the options to copy everything20:48
of2vil_ left20:49
of2vil joined20:49
of2vil hello, can anyone tell me how i can tell gitweb do not display a certain repository?20:49
deuterium joined20:49
tizzo left20:50
ayust codebeaker: ok, then look for "debug1: Offering public key: "20:50
mauke joined20:50
ayust and the lines that immediately follow that (if any)20:51
ISF_ joined20:51
codebeaker ayust: yeah, it's not there … my suspicion was that because i'm logged onto host A as `codebeaker` - and trying to reach host C (github) as user `git` - it doesn't offer my keu20:51
mauke hi20:51
every time I try to use 'git add -p', it says: Can't locate Git.pm in @INC (@INC contains: ...)20:51
ayust codebeaker: doubt that's why20:51
thiago_home codebeaker: ssh-add -l20:52
codebeaker: is the key listed?20:52
codebeaker ayust: likewise, the good people of openssh were good enoguhto help me20:52
thiago_home mauke: how did you install Git?20:52
mauke thiago_home: emerge git20:52
codebeaker ayust: "The Agent has no identities"20:52
thiago_home mauke: then please ask in your distribution's channel how to install the Perl modules for Git.20:52
mauke they are installed20:52
sort of20:52
thiago_home codebeaker: ssh-add the key then.20:52
mauke I'm pretty sure this is because git is trying to use the wrong perl20:52
codebeaker which is odd… I was always told (and thought) agent forwarding is working if $SSH_AUTH_SOCK is set, and points to a valid socket20:52
of2vil left20:52
hunmonk left20:52
hunmonk joined20:53
mauke can I configure which perl git uses?20:53
patrikf codebeaker: what does ssh-add -l say locally?20:53
adamholtadamholt_away20:53
codebeaker the same, actually patrikf20:53
adamholt_awayadamholt20:53
ayust then your local agent doesnt have the key20:53
and you need to add it locally on your workstation20:53
before it can be forwarded20:53
ISF left20:53
codebeaker ayust: ok, good to know :S20:54
ayust forwarding doesn't automatically forward keys off disk20:54
thiago_home mauke: you can probably edit the script and change the first line20:54
ayust it just hooks the remote ssh-agent up to your local ssh-agent20:54
codebeaker ah, I thought forwarding forwarded the key I used to get into the server, into the server's agent20:54
thiago_home codebeaker: no20:54
codebeaker: forwarding forwards the agent20:54
saintdev left20:54
codebeaker thiago_home: thanks!20:54
mauke oh, ew20:54
patrikf you don't ever give out the private key, that's sort of the whole point20:54
disappearedng left20:54
codebeaker ok, so even without logging in again… the intermediate agent has the key now20:55
TrineLocke left20:55
patrikf otherwise you could use telnet just as well20:55
Nugget telnet is eeeeeeevil!20:55
thiago_home mauke: do you really have more than one perl installed?20:55
LongBeach left20:55
mauke thiago_home: yes, a system perl and one in my home directory20:55
codebeaker ayust: patrikf and thiago_home - between you, you have saved my evening :-D20:55
mauke thiago_home: do you know why 'cpan Git' doesn't install Git.pm but App/gh/Git.pm?20:56
thiago_home mauke: no idea20:56
skoop left20:56
eddie_ joined20:57
hunmonk1 joined20:57
hunmonk left20:57
Dave^| left20:58
hunmonk1 left20:58
Dave^| joined20:58
mauke ok, "fixed" it by making a symlink from Git.pm to App/gh/Git.pm20:58
urkud_ joined20:58
rgl left20:58
rgl joined20:58
t3i_ joined21:00
t3i left21:01
t3i_t3i21:01
fractastical joined21:02
acts_as left21:04
eddie_ left21:06
bdiu left21:07
Zenith77 left21:07
ereslibre_laptop joined21:07
bdiu joined21:07
ChUrP left21:07
t3i_ joined21:07
Dave^| left21:07
Dave^| joined21:08
Mage joined21:08
ilpoldo joined21:09
ereslibre left21:09
t3i left21:09
t3i_t3i21:09
docelic left21:10
Dave^| left21:10
Dave^| joined21:10
ISF__ joined21:10
ketas left21:11
ketas joined21:11
Platz joined21:11
ilteris_ilteris21:12
ISF_ left21:13
agile left21:13
irc2samus left21:13
Platz left21:13
agile joined21:13
tizzo joined21:13
tizzo left21:14
owst joined21:14
dannas left21:14
tizzo joined21:14
tizzo left21:15
Yuffster left21:17
cilly left21:18
Gunni joined21:18
iveyivey_off21:18
MikhX_ joined21:18
quentusrex joined21:19
acts_as joined21:20
hunmonk joined21:20
goshawk left21:20
s0ber_ joined21:20
Dr_G joined21:20
priidu_ left21:21
xerora joined21:21
abhinay_ joined21:21
s0ber left21:21
s0ber_s0ber21:22
MikhX left21:22
MikhX_MikhX21:22
tizzo joined21:23
abhinay_ left21:23
abhinay joined21:23
dyer joined21:24
dyer left21:24
dyer joined21:24
Dr_G left21:24
larsl left21:25
kpreid joined21:25
Dr_G joined21:26
dyer left21:26
ISF_ec09 joined21:27
Toastable left21:28
ivey_offivey21:28
Dr_G left21:29
ISF__ left21:29
nfiniteset joined21:31
iveyivey_off21:34
rorist joined21:34
goshawk joined21:35
tvw joined21:38
mmw joined21:38
whalesalad joined21:39
mithro left21:40
theycallmeniv left21:40
whalesalad Hey everyone. I am trying to share a git repo on a server with someone (not the repo, but a checked out instance), we're both in the same 'staff' group but he cannot perform git commands21:40
ayust make sure core.sharedRepo is set to true21:40
and chmod g+w21:41
whalesalad okay21:41
dim_ left21:41
whalesalad giving it a spin21:41
iravid left21:41
ayust sorry, core.sharedRepository21:42
patrikf and the directories g+s21:42
and chgrp21:42
whalesalad so like 'chmod -R g+s <repo>'21:42
patrikf nah21:42
whalesalad im sort of a noob with unix permissions =/21:42
patrikf find repo -type d | xargs chmod g+s21:42
whalesalad oh wow okay, leet21:42
patrikf you can also just start over and tell git init what you want to do (--shared=group)21:43
whalesalad yeah I was pondering that21:43
patrikf (g+s on files has a different meaning than on directories)21:43
whalesalad okay21:43
markatto left21:44
whalesalad thanks guys for all the help21:44
it works21:45
GeertB left21:45
mainrain how might i view the differences between to tree-ish as a single diff? i can git log over a set, but i get a patch for each version instead of a patch that would go from A to B in one swoop(to see the total changes, not all the steps in between)21:45
*between two21:45
eno left21:45
thiago_home mainrain: git diff21:45
mainrain thiago_home: but that gives me a seperate patch for each commit21:46
iravid joined21:46
thiago_home mainrain: git log does; git diff makes one diff21:46
mainrain thiago_home: ahh, ok21:46
Swimming_bird left21:46
captproton joined21:46
mainrain thiago_home: thanks21:46
captproton hi all21:47
I am having way too many conflicts when I pull master from remote21:47
Aaaarg left21:48
mainrain i get that when someone on the team decides to re-format :(21:48
good reason for coding guidelines .. i'm sure theres other ways for it to happen though21:48
captproton someone showed me once, but what is a git command I can do that just takes in the remote by default?21:48
Blazento joined21:48
mainrain captproton: if you are in a merge, git checkout --theirs path/to/file21:48
captproton: i think21:48
captproton mainrain: our team is new to not working in the master21:48
srji left21:49
mainrain captproton: otherwise, i think git checkout master -- path/to/file would work too21:49
justin-george left21:49
captproton mainrain: what about if I just want to take in the remote wholesale?21:50
mainrain captproton: git status | grep modified | cut -d : -f 2 ?21:50
captproton it's something to do with force, I believe21:50
Pewpewarrows left21:50
mainrain i dont like the -a flags, it always grabs other files21:50
maybee that line wont work though, i forget what it looks like exactly in the git status for merge21:51
surikator left21:51
justin-george joined21:51
cbx33 what is the difference between doing a checkout back to a previous version in a new branch, and doing a git reset --hard in a new branch?21:51
mainrain cbx33: i think git reset --hard removes any changes to the working tree after the target21:51
cbx33: as in, deletes the commits21:51
wereHamster mainrain: checkout does too21:51
cbx33 yeh21:52
thiago_home cbx33: the difference is what happens to the branch21:52
wereHamster cbx33: the difference is that checkout moves HEAD (doesn't touch the branch) and reset moves the branch21:52
mainrain wereHamster: checkout will delete the commits?21:52
thiago_home checkout doesn't change the branch; reset changes it21:52
wereHamster mainrain: changes in the working tree21:52
cbx33 wereHamster, ahhh ok21:52
mainrain wereHamster: yea, i wasn't clear, i meant to say --hard will delete commits after target21:52
tizzo left21:53
wereHamster .. for a certain definitin of 'delete'21:53
cbx33 yeh21:53
tizzo joined21:53
cbx33 I was gonna say....so i have two branches.....A,B,C,D,E21:53
and i reset hard one of them back to C21:53
D,E still exist in the other branch right?21:53
wereHamster sure21:53
cbx33 so how does it "affect" the branch?21:54
pantsman joined21:54
markatto joined21:54
cbx33 i mean the "commit" objects D,E will still have parents21:54
wereHamster the other branch? Not at all21:54
cbx33 from the other branch21:54
surely it just moves the HEAD in this case21:54
and "forgets" about them in the smaller branch21:55
jstemmer left21:55
eno joined21:55
zorzar joined21:56
iamjarvo left21:56
fr0sty_ a branch is just a movable pointer to a commit.21:56
cbx33 yeh21:56
fr0sty_ and HEAD (if you have a branch checked out) is a pointer to the branch21:56
cbx33 that's why I'm a little confused - the operation doesn't delete objects21:56
fr0sty_ which is a pointer to a commit.21:57
cbx33 objects get deleted at a clean up21:57
i mean21:57
if I did do a git reset --hard21:57
thiago_home cbx33: they aren't deleted, they are just dangling21:57
cbx33 right21:57
wereHamster but taht cleanup is at least a month away21:57
fr0sty_ and dangling only if not referenced by any other branches or tags.21:57
wereHamster maybe even >90 days21:57
cbx33 rght21:57
mainrain how can you list dangling commits?21:57
ereslibre_laptop left21:57
wereHamster mainrain: man git-fsck21:57
jast mainrain: the 'git-fsck' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-fsck.html [automatic message]21:57
cbx33 but when wereHamster said <wereHamster> cbx33: the difference is that checkout moves HEAD (doesn't touch the branch) and reset moves the branch21:58
fr0sty_ cbx33: that depends on what commands you actually use.21:58
git checkout <some commit> detaches head and moves it to <commit>21:58
git reset --hard <commit> moves your branch to point to that commit.21:59
esparkman left21:59
fr0sty_ 'git checkout -b newbranch <commit>' and 'git checkout newbranch; git reset --hard <commit>' are equivalent.21:59
wereHamster cbx33: HEAD -> points to <branch> -> points to a <commit>. reset changes <branch> and checkout changes HEAD21:59
ereslibre_laptop joined21:59
cbreak do a "cat .git/HEAD" before and after a checkout/reset22:00
hunmonk left22:00
cbreak also a cat .git/refs/heads/master22:00
before and after each22:00
cbx33 wereHamster, what do you mean changes <branch> - sorry22:00
cbreak maybe that helps you understand :)22:00
what changing a branch means in both context22:00
cbx33 ok22:01
cbreak oh22:01
make backups beforehand22:01
cbx33 hah22:01
i'm not that silly :)22:02
thedangler joined22:02
tizzo left22:03
Swimming_bird joined22:03
acid_ joined22:03
tizzo joined22:03
mikewintermute left22:04
webPragmatist left22:04
cbx33 so - i think i understand now - checkout creates a detached HEAD, branch still points to tip.....reset moves branch and head accordingly and doesn't detach22:04
wereHamster cbx33: a branch <B> points to a commit <X>. After a reset --hard <Y> that branch will ponit to commit <Y>22:04
cbx33 yes22:04
i understand22:04
bartimaeus|work joined22:05
_Ludwig_ joined22:05
drubies|mbp left22:05
acid left22:06
jmil left22:06
eno left22:07
thedangler left22:07
cbx33 thanks for the explanation22:08
eno joined22:09
disappearedng joined22:11
disappearedng left22:11
disappearedng joined22:11
gregglind left22:12
psoo joined22:13
karsten-nr joined22:13
Aaaarg joined22:13
airborn joined22:14
karsten-nr I want to search for an expression (regex matching hostnames) within a slew of repos, without having to check them out. I've got the git repo tree handy. Any good way to do this?22:15
tjholowaychuk left22:16
dormouse joined22:16
drizzd karsten-nr: git grep <pattern> <tree> --22:17
tizzo left22:17
dv310p3r left22:18
kipras joined22:18
johnw left22:18
karsten-nr drizzd: fatal: This operation must be run in a work tree22:18
esparkman joined22:18
dyer joined22:19
dyer left22:19
dyer joined22:19
Zenith77 joined22:20
theoros left22:20
tjholowaychuk joined22:21
montylounge left22:21
sebersole left22:21
drizzd karsten-nr: git --version?22:22
karsten-nr drizzd: NM. I checked out a slew locally.22:22
drizzd: git version 1.7.3.222:22
drizzd: FWIW.22:22
drizzd and you're doing that in a bare repo?22:23
karsten-nr No.22:23
DrNick left22:24
karsten-nr I just cloned all of them to /tmp/foo22:24
wereHamster for dir in /tmp/foo/*; do pushd $dir; git grep ..; popd; done22:24
esparkman left22:24
karsten-nr wereHamster: Pretty much what I did.22:24
kipras left22:24
wereHamster then I fail to see the problem22:24
drizzd well, I don't know how you get that error.22:25
karsten-nr wereHamster: The problem was I wasn't doing that initially.22:25
drizzd it should be fine to just add them as remotes22:25
karsten-nr drizzd: Yes, initially I was trying that in ... well, whatever a bare repo is.22:25
theoros joined22:25
theoros left22:25
theoros joined22:25
drizzd karsten-nr: but that should work, I just tried with 1.7.3.2 and it works22:26
ISF_ec09_ joined22:26
karsten-nr What I did was: for d in /path/*.git; do git clone $d; done; for d in *; do pushd $d; git grep <pattern>; popd; done22:26
So: first clone, then grep. I'm happy guys, really, no need to continue :)22:26
kipras joined22:26
drizzd sure, I'm just wondering what you did22:26
tizzo joined22:26
karsten-nr drizzd: I've tried to explain, I'm not clear enough on how git manages/stores its repos to explain clearly.22:27
ISF_ec09 left22:27
cjolowicz joined22:29
booginga left22:29
codebeaker left22:30
drizzd left22:30
abonec joined22:30
DrNick joined22:31
BlindOracle left22:32
Fullmoon left22:32
DrShiny joined22:32
abonec i added all files to commit by accident (git add .) and to commit added files from .gitignore. How i can delete this files from commit?22:32
wereHamster abonec: git reset HEAD^ && git add <the correct files> && git commit22:33
tstclair left22:33
DrShiny i'm trying to figure out which remote branch my local branches are tracking, is there a way to do this?22:33
git branch -ra doesn't do what i need, it just lists both, but not the tracking association22:33
abonec wereHamster, thx this working22:34
ShooterMG left22:34
esparkman joined22:34
wereHamster DrShiny: git remote show origin22:34
m104 left22:34
deryl i'm geetting lots of use out of git commit -c xxxxx --amend as of late :)22:35
kumbayo left22:35
ph^ left22:35
DrShiny wereHamster: that's better than what i could find before, thanks ... it only shows which branches are tracked at all, though, but not which branches they're associated with locally22:36
i have a couple similarly named branches, unfortunately, and i think i got the tracking mixed up :(22:36
wereHamster DrShiny: it does show that here..22:36
ericbarnes left22:36
DrShiny maybe my version is too old22:37
i'm on 1.622:37
IslandUsurper left22:37
ph^ joined22:37
ISF_ec09__ joined22:37
DrShiny i'll try upgrading, thanks for the tip22:37
owst left22:37
ch077179 left22:38
linusoleander left22:39
cjolowicz hello, i need two remote repos. repo1 is the main public repo. repo2 is a fork, with changes flowing from repo1 to repo2 but not back. is `clone --mirror' adequate?22:39
SimonP86 joined22:40
chargingllama joined22:40
ISF_ec09_ left22:40
warthog9 left22:41
abonec i tryied add all files to commit (by add commit -a -m 'msg') exclude gitignore, but bunch of files stay untracked. Its not in gitignore22:41
wereHamster -a doesn't add untracked files IIRC22:41
NfNitLoop -a does not add untracked files, just modified files.22:41
Tido left22:41
abonec how i can add all files?22:42
wereHamster git add .22:42
abonec git add . ignore my .gitignore config22:42
wereHamster add does honor gitignore22:43
maybe those fiels are already tracked?22:43
ph^ left22:43
abonec my english is bad, i don't understand about honor22:43
wereHamster if you put a file into .gitignore, then git add won't stage it22:44
nfiniteset left22:44
wereHamster honor ~= respects. git add respects your .gitignore settings22:44
adreghiciu left22:45
rayners left22:45
abonec i know this word but i dont understand this idiom :D22:45
DrShiny abonec: it means, it follows the .gitignore instructions22:45
warthog9 joined22:45
cjolowicz left22:46
abonec :D22:46
after first explanation i understended :D22:46
rgl left22:46
shiba_yu36 joined22:47
DrShiny oh, sorry22:47
acts_as left22:48
rorist left22:48
lukatmyshu joined22:49
abonec :D22:49
DrShiny left22:50
ThomasLocke left22:50
cbx33 left22:50
WaltzingAlong joined22:50
lessthanzero left22:50
kipras left22:51
zorzar_ joined22:51
abonec .filename - it's right mask to the file 'filename' in root?22:52
zorzar left22:52
psoo left22:53
linusoleander joined22:53
mando joined22:54
abonec seems like my fault, i wrong put files in my gitignore22:54
wereHamster, thx for help22:55
dreiss left22:55
tizzo_ joined22:57
tizzo left22:57
tizzo_tizzo22:57
xiong left22:57
adamholtadamholt_away22:58
adamholt_awayadamholt22:58
ilpoldo left22:59
McMAGIC-- left22:59
WaltzingAlong left23:00
abonec how add message when i use 'git add .'?23:01
Ryan45 joined23:01
ldigas_ joined23:01
Amorphous left23:01
Ryan45 hello, how do i git a folder or a project23:02
of a project23:02
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/frameworks/base.git;a=tree;f=media/libstagefright;h=3f0b23e0e7a8847800f9b2f50c41623805eb3f67;hb=refs/heads/gingerbread-tegra23:02
friskd Hey all, i have a work flow question... I have Project A. which is my own project. There is Project B on github(opensource) i have spoken w/ the authors and they are open to forks / pull requests. So i want Use Project B in my Project A. (as a plugin) but i also want to add to Project B as i add features to it.23:02
Ryan45 that is the web view of the folder i want to git23:02
friskd how do i do this so that commits to project B only affect project B and commits to project A only affect project A23:02
bdiu left23:04
_Ludwig_ left23:04
gazoombo left23:04
scelis joined23:05
acts_as joined23:05
kipras joined23:06
babbio joined23:07
SimonP86_ joined23:07
babbio How to pull or clone ALL branches from remote repository?23:08
workmad3 joined23:08
thaw joined23:08
thaw hi23:08
why git has SHA1 hash for rev, and not incremental numbers ?23:09
ayust babbio: add it as a remote, then git fetch <remotename>23:09
thaw: because Git history is not linear23:09
Ryan45 left23:10
kipras left23:10
engla thaw: because git is a distributed system. And time-ordering is relative23:10
ironcame1 left23:10
thaw ok, thx ayust and engla :)23:10
mmw left23:10
engla thaw: if both you and I are at home, and we make a commit that improves upont r10, who of us can call theirs r11? it would be confusing23:11
SimonP86 left23:12
linusoleander left23:12
friskd If i had files in /app/plugins/p1 and now i want to replace p1 and its content as a submodule. How do i do that.23:12
if i just delete the files and try to add it as a submodule i get app/plugins/p1 already exists and is not a valid git repo23:13
?23:14
Buglouse left23:15
shiba_yu36 left23:18
troessner left23:18
shiba_yu36 joined23:18
ormaaj left23:19
kenichi left23:19
Amorphous joined23:20
beatak left23:20
t3i_ joined23:21
mosno joined23:22
tjholowaychuk left23:23
tjholowaychuk joined23:23
Swimming_bird left23:23
wereHamster friskd: git rm -rf app/plugins/p1 && git commit && git submodule add ...23:23
t3i left23:23
t3i_t3i23:24
friskd wereHamster: ok. will try that.23:24
McMAGIC-- joined23:24
j416 left23:25
babbio left23:25
trobrock joined23:25
trick joined23:26
friskd worked!23:26
tnx wereHamster23:26
genious!23:27
tizzo left23:27
tizzo joined23:27
Zenith77 left23:27
ISF joined23:28
Dave^| left23:28
ISF_ec09__ left23:29
chrisshattuck joined23:29
Aaaarg left23:30
abhinay left23:31
chrisshattuck left23:31
mando left23:32
dim_ joined23:32
thaw if I make a repository with apache2 + dav module and htaccess with one user, e.g. "joe". what will be the username and email for his commits ?23:33
excess^ left23:34
Remixman left23:34
pyrony left23:35
meonkeys joined23:35
tizzo left23:35
owst joined23:35
alex__c2022 left23:36
urkud_ left23:36
qwp joined23:36
dim_ left23:37
Kobaz left23:38
workmad3 left23:38
qwp hi can you explain 2 alleged superiorities of git over centralized stuff like svn? a) "Allows users to work productively even when not connected to a network" <-- how cant you work with your local checkout? b) merging is so easy with git <-- how is merging technology dependent on distribution?23:38
Textmode left23:38
BiggFREE joined23:38
jfelchner joined23:39
pyrony joined23:39
genjix left23:39
fr0sty_ qwp: 1. your 'local checkout' contains the entire repository history (all commits, branches and tags).23:40
you can go anywhere and do anything.23:40
eletuchy left23:40
flov left23:41
lukatmyshu left23:41
meonkeys I did a cherry pick and got conflicts. Some files say "deleted by us"... but I can't find any record of these files being deleted from the target branch! Any ideas?23:41
luxurymode joined23:41
fr0sty_ 2. having all history locally allows you to determine branch-points easily and have intelligent auto-resolution of what would otherwise be merge conflicts.23:42
GJdan joined23:42
fr0sty_ meonkeys: 'the target branch'? how do you know they were not deleted? (what command are you using?)23:43
hunmonk joined23:43
qwp thanks fr0sty_ but as a follow up why would i want to "work" with the history and how cant a local svn accomplish the same?23:43
pantsman left23:43
qwp thanks 2 makes sense23:43
meonkeys fr0sty_: by "target branch", I mean, the branch I have checked out when I do the cherry pick23:43
GJdan any idea why git push -u origin master doesn't work when I'm trying to push to a new github repo?23:43
fr0sty_ qwp: 'local svn'?23:43
GJdan says error: unknown switch, u23:44
meonkeys fr0sty_: the command I used was "git cherry-pick -x 1aad5f730e9"23:44
qwp fr0sty_: like using a local svn install23:44
meonkeys fr0sty_: I have "master" checked out, and 1aad5f730e9 is on "origin/f-release"23:44
adreghiciu joined23:44
fr0sty_ qwp: how would a collaborator also work offline in that setup?23:44
thiago_home left23:44
fr0sty_ (without access to your local svn)23:44
meonkeys: how do you know 'deleted by us' is erroneous?23:45
t3i_ joined23:45
qwp fr0sty_: you checkout from the central repo and then use a local svn to keep track of changes and possibly go back in time locally, then once youre finished you commit the local head23:45
hunmonk left23:45
bdiu joined23:45
fr0sty_ qwp: does your local svn have a complete clone of the upstream?23:46
meonkeys fr0sty_: if I do "git log --decorate --find-copies-harder -C -M --name-status master" (and just search through that), I don't see any deletions.23:46
(of the file(s) supposedly "deleted by us")23:46
qwp fr0sty_: no but why would i need that23:46
fr0sty_ how could you 'go back in time' otherwise?23:46
gusnan joined23:46
qwp fr0sty_: well i mean back in time somewhere between now and the initial checkout23:47
dekz joined23:47
qwp fr0sty_: why would i want to go further back in time23:47
fr0sty_ sounds kinda limited...23:47
if you wanted to work on another branch based on a different portion of the code.23:48
t3i left23:48
t3i_t3i23:48
qwp fr0sty_: well then i would simply checkout that branch23:48
fr0sty_ but you can't23:48
dekz Anyone know why, after doing a git cvsimport (for 30 minutes), attempting to cvscommitexport reesults in "is not a CVS checkout"?23:48
fr0sty_ no network connectivity.23:48
qwp fr0sty_: going back to other branches isnt exactly an everyday task anyway, i hardly want that, but i can initially do that23:48
dekz There aren't any CVS folders or subfolders, which might be the problem23:48
fr0sty_ qwp: it is not an everyday task because your tool makes it hard.23:49
dekz Not sure, does cvsimport create those folders? I did a cvsimport to an empty directroy23:49
fr0sty_ I do that many times in one day.23:49
qwp fr0sty_: but i dont see how its desirable23:49
urkud_ joined23:49
bremner qwp: to a certain extent, you sound like a person who has never used a full screen editor, wondering what the fuss is about ;)23:50
qwp fr0sty_: also srsly "network connectivity" isnt even an issue in the 21st century at all23:50
fr0sty_ meonkeys: there could be some confusion between 'move' and 'delete' then.23:50
qwp bremner: heh whats a full screen editor23:50
fr0sty_ if you lose -C and -M what do you get?23:51
ShooterMG joined23:51
bremner qwp: not a line editor23:51
fr0sty_ qwp: if your working copy is large enough, it absolutely is...23:51
qwp bremner: ah. well nice metaphor but i would like to see the analogy23:51
fr0sty_ I like being able to switch code in the working copy at the speed of my hard-disk and not the speed of my internet connection.23:51
qwp fr0sty_: hm ok, but then the initial git "checkout" likewise is very expensive23:52
bremner qwp: the way you can work with branches in git is just not possible in a centralized vcs23:52
meonkeys fr0sty_: mmm, yeah... these files weren't moved, either. What might be happening is my master is out of sync with origin/master. Argh.23:52
fr0sty_ qwp: not very. it is only fractionally larger than the size of most working trees.23:52
meonkeys fr0sty_: yep, that was it!23:52
qwp fr0sty_: with all the history. so why would i want to portion the time consumption into one single giant checkout rather than small checkouts whenonlyever needed23:52
bremner qwp: there are many cases where the git checkout is faster than the svn one23:52
killfill left23:52
qwp hm ok23:52
killfill joined23:52
trobrock left23:53
fr0sty_ qwp: the entire linux kernel tree initial clone is: ~400M, the size of the working copy is likewise ~400M23:54
qwp im not experienced can you give a use case example when using different branches really becomes desirable?23:54
hm ok fr0sty_ is this achieved by only storing differences?23:54
angelsl joined23:54
fr0sty_ and zipping things up.23:54
LiamH left23:54
qwp ok23:55
meonkeys left23:55
fr0sty_ after that every checkout is free (and fast).23:55
qwp i cant imagine why i would want to switch branches even once a week23:55
fisted_ joined23:56
fr0sty_ qwp how often do you commit?23:56
fisted left23:56
qwp maybe once a day23:56
Oxf13 joined23:57
qwp whenever something is finished23:57
dekz heh23:57
Oxf13 is there a shortcut for creating a new remote bare git repo?23:57
werdan7 joined23:57
fr0sty_ Oxf13: ssh host 'cd dir && git init --bare --shared=true'23:57
Oxf13 or is just rsyncing up the .git/ dir still the best way?23:57
fr0sty_: assuming you already have a local repo with some code committed23:58
fr0sty_ add 'git remote add...' and 'git push --mirror' to that...23:58
(on the local machine)23:58
Bass10 left23:59
Oxf13 ok. I was hoping somebody had created a way to do a push to a ssh url that will create the remote repo if it doesn't already exist.23:59
cannonball left23:59
fr0sty_ not that I am aware of.23:59
whalesalad left23:59
bremner Oxf13: not with out extra software (e.g. gitolite)23:59

Logs Search ←Prev date Next date→ Channels Documentation