| 2009-05-14 |
| ← mithro left | 00:00 |
| → ashleyw joined | 00:00 |
|
mugwump
| you could push a new commit which uses the commit you want as a parent... :) | 00:00 |
|
cxreg
| mugwump: er, no, i mean if i dont even have the commit i'm trying to name | 00:00 |
|
mugwump
| but you know its id? | 00:00 |
|
cxreg
| yeah | 00:00 |
| ← RayMorgan left | 00:00 |
|
cxreg
| due to a rebase, or reset, or whatever | 00:00 |
|
mugwump
| well, you can make a commit with it as a parent then using git commit-tree | 00:00 |
| ← mjf left | 00:00 |
|
mugwump
| sure, it will be a broken link in your repo. you can silence that warning using .git/shallow | 00:01 |
|
cxreg
| oooh | 00:01 |
|
| that's slick | 00:01 |
|
| mugwump++ | 00:01 |
|
mugwump
| the next problem will be tricking git send-pack into pretending that it 'has' the commit you 'want' | 00:02 |
| → techrush joined | 00:02 |
|
Pieter
| you can also cat something to the receive-pack on the remote, if you know what | 00:02 |
|
mugwump
| and all before whatever 'gc' runs on the remote end that might throw away the prunable commit :) | 00:03 |
|
cxreg
| heh | 00:03 |
|
Pieter
| you can do it locally on a fake repo with a --receive-pack="script with tee file|git-receive-pack" && cat tee | ssh git..... | 00:03 |
|
cxreg
| well, sure. mostly thinking within a day or so | 00:03 |
|
mugwump
| it's 0day for that hack though | 00:04 |
|
cxreg
| is it? | 00:05 |
| ← alezandro left | 00:05 |
|
cxreg
| i thought it was ~90 days | 00:05 |
|
mugwump
| well, it just occurred to me | 00:05 |
| ← patrikf left | 00:05 |
|
cxreg
| LOL | 00:05 |
|
| 0day git hax.rar | 00:05 |
| ← Bass10 left | 00:07 |
| → Modius joined | 00:08 |
| loinclot_ → loincloth | 00:09 |
| ← jrmuizel left | 00:09 |
| → jerbear joined | 00:11 |
| → agenteo joined | 00:11 |
| → jrmuizel joined | 00:12 |
| ← texel left | 00:12 |
| → sergiodj joined | 00:15 |
| → altrux joined | 00:18 |
| ← mbrumbelow left | 00:19 |
| → bcardarella joined | 00:20 |
| → mithro joined | 00:22 |
| ← jrmuizel left | 00:23 |
| ← __iron left | 00:25 |
| georgyberdyshev → gberdyshev | 00:26 |
| ← arohner left | 00:29 |
| → jrmuizel joined | 00:31 |
| ← altrux left | 00:32 |
| ← rettub_ left | 00:32 |
| → magic_hat joined | 00:32 |
| → rettub_ joined | 00:32 |
|
magic_hat
| hey all. I've got a working copy of my code on my local machine. I've made a bunch of changes to it, but I don't want to check them into the main repo. How do I go about creating a new branch for an existing working copy? | 00:33 |
| ← loincloth left | 00:34 |
| cpg|away → cpg | 00:34 |
| → mbrumbelow joined | 00:34 |
| ← gb|ln left | 00:36 |
| ← johnw left | 00:36 |
|
peper
| hello | 00:37 |
|
| is it possible to undo a rebase -i which involved a squash? | 00:37 |
| ← mbrumbelow left | 00:38 |
| → jmd joined | 00:39 |
| ← towski_ left | 00:39 |
|
peper
| seems i can just reset --hard | 00:40 |
| → joshsdc joined | 00:40 |
| sebleier|away → sebleier | 00:40 |
| → JaredK joined | 00:43 |
| ← JaredK left | 00:43 |
| ← v0lksman left | 00:45 |
| ← dfabulich left | 00:46 |
|
bob2
| magic_hat: you can just make a new branch and check it out - local changes will be preserved, and you can then commit them to the new branch | 00:48 |
|
| jmd loves the word "just". | 00:49 |
|
bob2
| 'git branch yournewbranch ; git co yournewbranch ; git commit -m "I made changes!" -a' | 00:51 |
|
| it's pretty "just" ;) | 00:51 |
| ← hobodave left | 00:51 |
| ← jfkw left | 00:52 |
| ← Alinermedia left | 00:54 |
| ← carrus85 left | 00:54 |
| ← ashleyw left | 00:56 |
| → Murr joined | 00:56 |
| ← stuffcorpse left | 00:56 |
| → ashleyw joined | 00:57 |
| → gb|work joined | 00:57 |
| ← jrmuizel left | 00:58 |
| ← gb|work left | 00:59 |
| → stuffcorpse joined | 00:59 |
| ← pointlessjon left | 00:59 |
| ← bdimcheff left | 01:00 |
| ← jpieper_ left | 01:04 |
| ← un|ogic left | 01:04 |
| ← Run left | 01:04 |
| ← bdowning left | 01:04 |
| ← Leemp left | 01:04 |
| ← codeshah left | 01:04 |
| ← spb left | 01:04 |
| ← Radar left | 01:04 |
| ← gberdyshev left | 01:04 |
| ← avaja left | 01:04 |
| ← giallu left | 01:04 |
| ← PupenoG left | 01:04 |
| ← Eridius left | 01:04 |
| ← astrocub left | 01:04 |
| ← madewokherd left | 01:04 |
| ← meder_ left | 01:04 |
| ← joevano left | 01:04 |
| ← bartman left | 01:04 |
| ← meyering left | 01:04 |
| ← Grum left | 01:04 |
| ← jmd left | 01:04 |
| ← eletuchy left | 01:04 |
| ← javatexan left | 01:04 |
| ← techrush left | 01:04 |
| ← k0001 left | 01:04 |
| ← john3909 left | 01:04 |
| ← will__ left | 01:04 |
| ← niki left | 01:04 |
| ← gwoo left | 01:04 |
| ← sfwc left | 01:04 |
| ← drewr left | 01:04 |
| ← thorkilnaur left | 01:04 |
| ← comp left | 01:04 |
| ← Gitzilla left | 01:04 |
| ← tedoc2000 left | 01:04 |
| ← Pistahh left | 01:04 |
| ← Weiss left | 01:04 |
| ← ska-fan left | 01:04 |
| ← droidcore left | 01:04 |
| ← apeiron left | 01:04 |
| ← Khisanth left | 01:04 |
| ← Derega left | 01:04 |
| ← jpeeler left | 01:04 |
| ← Arrowmaster left | 01:04 |
| ← EvanCarroll left | 01:04 |
| ← rphillips left | 01:04 |
| ← ferdy left | 01:04 |
| ← Ilari left | 01:04 |
| ← jspiros left | 01:04 |
| ← przemoc left | 01:04 |
| ← moh left | 01:04 |
| ← rettub_ left | 01:04 |
| ← jerbear left | 01:04 |
| ← zeno^^away left | 01:04 |
| ← sakyamuni left | 01:04 |
| ← tbf left | 01:04 |
| ← FreakGuard left | 01:04 |
| ← meebey left | 01:04 |
| ← Tsion left | 01:04 |
| ← decklin left | 01:04 |
| ← tttsssttt left | 01:04 |
| ← Lgb left | 01:04 |
| ← Helios left | 01:04 |
| ← a-atwood left | 01:04 |
| ← radii left | 01:04 |
| ← tokkee left | 01:04 |
| ← BooK_ left | 01:04 |
| ← eikke left | 01:04 |
| ← ruskie left | 01:04 |
| ← Kudos left | 01:04 |
| ← rektide left | 01:04 |
| ← TheDJACR left | 01:04 |
| ← ahf left | 01:04 |
| ← sr left | 01:04 |
| ← seb42 left | 01:04 |
| ← elliottcable left | 01:04 |
| ← joshsdc left | 01:04 |
| ← smashwilson left | 01:04 |
| ← gilimanjaro left | 01:04 |
| ← kuadrosx left | 01:04 |
| ← schlort left | 01:04 |
| ← lu_zero left | 01:04 |
| ← tazle_ left | 01:04 |
| ← tonyj left | 01:04 |
| ← DrNick left | 01:04 |
| ← fr left | 01:04 |
| ← dermoth left | 01:04 |
| ← harv left | 01:04 |
| ← dkr21 left | 01:04 |
| ← djpig left | 01:04 |
| ← tek0 left | 01:04 |
| ← kbingham left | 01:04 |
| ← betabot left | 01:04 |
| ← robtaylor left | 01:04 |
| ← r0bby left | 01:04 |
| ← Murr left | 01:04 |
| ← bcardarella left | 01:04 |
| ← amrox left | 01:04 |
| ← eigensolver_ left | 01:04 |
| ← dodo_the_last1 left | 01:04 |
| ← photon left | 01:04 |
| ← NoirSoldats left | 01:04 |
| ← krh left | 01:04 |
| ← dreiss left | 01:04 |
| ← poseidon left | 01:04 |
| ← sgrimm left | 01:04 |
| ← elik left | 01:04 |
| ← kold left | 01:04 |
| ← rjc left | 01:04 |
| ← tchan1 left | 01:04 |
| ← dmlloyd left | 01:04 |
| ← tjafk1 left | 01:04 |
| ← patmaddox left | 01:04 |
| ← xckpd7 left | 01:04 |
| ← tpope left | 01:04 |
| ← zpoley1 left | 01:04 |
| ← elarry left | 01:04 |
| ← mugwump left | 01:04 |
| ← eb_ left | 01:04 |
| ← ArjenL left | 01:04 |
| ← N0va left | 01:04 |
| ← osfameron left | 01:04 |
| ← eldragon left | 01:04 |
| ← mika left | 01:04 |
| ← sdiz-afk left | 01:04 |
| ← tvakah left | 01:04 |
| ← mpeterson left | 01:04 |
| ← tmz left | 01:04 |
| ← joeytwiddle left | 01:04 |
| ← pastie left | 01:04 |
| ← Knirch left | 01:04 |
| ← mitsuhiko left | 01:04 |
| ← jmspeex left | 01:04 |
| ← Blafasel_ left | 01:04 |
| ← soul9 left | 01:04 |
| ← ozzloy left | 01:04 |
| ← jsquared left | 01:04 |
| ← sebleier left | 01:04 |
| ← neoeinstein left | 01:04 |
| ← AkumaStreak left | 01:04 |
| ← spearce left | 01:04 |
| ← _Vi left | 01:04 |
| ← cpg left | 01:04 |
| ← merlin83 left | 01:04 |
| ← offby1 left | 01:04 |
| ← AAA_awright left | 01:04 |
| ← cthompson left | 01:04 |
| ← ft left | 01:04 |
| ← mikearr left | 01:04 |
| ← ethercrow left | 01:04 |
| ← argonel left | 01:04 |
| ← Nugget left | 01:04 |
| ← markelikalderon left | 01:04 |
| ← rolfb left | 01:04 |
| ← Dashkal left | 01:04 |
| ← univate left | 01:04 |
| ← thiago_home left | 01:04 |
| ← eno left | 01:04 |
| ← ruphy left | 01:04 |
| ← PugMajere left | 01:04 |
| ← samjam left | 01:04 |
| ← snuxoll left | 01:04 |
| ← troyt left | 01:04 |
| ← BlindOracle left | 01:04 |
| ← precision left | 01:04 |
| ← GyrosGeier left | 01:04 |
| ← sergiodj left | 01:04 |
| ← releod left | 01:04 |
| ← gaveen left | 01:04 |
| ← vanweerd left | 01:04 |
| ← doener left | 01:04 |
| ← jeremiah left | 01:04 |
| ← Strogg left | 01:04 |
| ← zuez left | 01:04 |
| ← straszheim left | 01:04 |
| ← jjuran left | 01:04 |
| ← jtong left | 01:04 |
| ← scientes left | 01:04 |
| ← jsbmsu left | 01:04 |
| ← robinr left | 01:04 |
| ← Fissure left | 01:04 |
| ← johan-s left | 01:04 |
| ← agib left | 01:04 |
| ← eMxyzptlk left | 01:04 |
| ← Salve left | 01:04 |
| ← agenteo left | 01:04 |
| ← Modius left | 01:04 |
| ← kukks left | 01:04 |
| ← jed left | 01:04 |
| ← pencilo left | 01:04 |
| ← rimenes left | 01:04 |
| ← flaguy48 left | 01:04 |
| ← curvature left | 01:04 |
| ← maron left | 01:04 |
| ← cedricv left | 01:04 |
| ← Aides left | 01:04 |
| ← cytrinox_ left | 01:04 |
| ← ftehw left | 01:04 |
| ← mbcharbonneau left | 01:04 |
| ← \ask left | 01:04 |
| ← krawek left | 01:04 |
| ← voker57_ left | 01:04 |
| ← unreal left | 01:04 |
| ← xkr47 left | 01:04 |
| ← microm left | 01:04 |
| ← rio left | 01:04 |
| ← agile left | 01:04 |
| ← diegoviola left | 01:04 |
| ← thumper left | 01:04 |
| ← bobesponja left | 01:04 |
| ← qhoxie left | 01:04 |
| ← seangrove left | 01:04 |
| ← peper left | 01:04 |
| ← xenoterracide left | 01:04 |
| ← JEEB left | 01:04 |
| ← jds left | 01:04 |
| ← ccherrett left | 01:04 |
| ← flippo left | 01:04 |
| ← RurouniJones left | 01:04 |
| ← hachi left | 01:04 |
| ← vmiklos left | 01:04 |
| ← pcutler left | 01:04 |
| ← emg-2 left | 01:04 |
| ← dereine[OFF] left | 01:04 |
| ← raz left | 01:04 |
| ← mithro left | 01:04 |
| ← ilteris__ left | 01:04 |
| ← aspotashev left | 01:04 |
| ← gambler__ left | 01:04 |
| ← Arafangion left | 01:04 |
| ← nick_h left | 01:04 |
| ← jkp left | 01:04 |
| ← fargiolas left | 01:04 |
| ← crankharder left | 01:04 |
| ← ayaka_t_ left | 01:04 |
| ← chrizz left | 01:04 |
| ← schweizer left | 01:04 |
| ← ashleyw left | 01:04 |
| ← magic_hat left | 01:04 |
| ← Sho_ left | 01:04 |
| ← wsc left | 01:04 |
| ← parasti left | 01:04 |
| ← drizzd left | 01:04 |
| ← nothingHappens left | 01:04 |
| ← nghr left | 01:04 |
| ← tango_ left | 01:04 |
| ← ia__ left | 01:04 |
| ← orafu left | 01:04 |
| ← pigeon left | 01:04 |
| ← kn1ttl left | 01:04 |
| ← cao left | 01:04 |
| ← eevar left | 01:04 |
| ← UukGoblin left | 01:04 |
| ← siprbaum left | 01:04 |
| ← zlin left | 01:04 |
| ← BearPerson left | 01:04 |
| → teuf joined | 01:10 |
| → Nafai joined | 01:10 |
| → mkching joined | 01:10 |
| → dirker joined | 01:10 |
| → thijso joined | 01:10 |
| → stick joined | 01:10 |
| → lll joined | 01:10 |
| → Leonidas joined | 01:10 |
| → jeek joined | 01:10 |
| → dna joined | 01:10 |
| → da5id joined | 01:10 |
| → ahall joined | 01:10 |
| → yzlin joined | 01:10 |
| → ndim joined | 01:10 |
| → piroko joined | 01:10 |
| → jjore joined | 01:10 |
| → jast joined | 01:10 |
| → jrockway joined | 01:10 |
| → MadCoder joined | 01:10 |
| → dedmajor joined | 01:10 |
| → jettero joined | 01:10 |
| → shana joined | 01:10 |
| → bob2 joined | 01:10 |
| → jtong joined | 01:10 |
| → jjuran joined | 01:10 |
| → zuez joined | 01:10 |
| → Strogg joined | 01:10 |
| → jeremiah joined | 01:10 |
| → doener joined | 01:10 |
| → vanweerd joined | 01:10 |
| → gaveen joined | 01:10 |
| → straszheim joined | 01:10 |
| → releod joined | 01:10 |
| → sergiodj joined | 01:10 |
| → numbah joined | 01:10 |
| → impulse9 joined | 01:10 |
| → impulze joined | 01:10 |
| → Ingmar joined | 01:10 |
| → hegge joined | 01:10 |
| → natlus joined | 01:10 |
| → pcgod joined | 01:10 |
| → maxb joined | 01:10 |
| → incd^ joined | 01:10 |
| → hgb joined | 01:10 |
| → dionoea joined | 01:10 |
| → Tali joined | 01:10 |
| → madduck joined | 01:10 |
| → avtobiff joined | 01:10 |
| → janl joined | 01:10 |
| → up_the_irons joined | 01:10 |
| → bmalee joined | 01:10 |
| → GyrosGeier joined | 01:10 |
| → kirillm_ joined | 01:10 |
| → bdimcheff joined | 01:10 |
| → qrush joined | 01:10 |
| → ashleyw joined | 01:10 |
| → Murr joined | 01:10 |
| → joshsdc joined | 01:10 |
| → jmd joined | 01:10 |
| → rettub_ joined | 01:10 |
| → magic_hat joined | 01:10 |
| → bcardarella joined | 01:10 |
| → agenteo joined | 01:10 |
| → jerbear joined | 01:10 |
| → Modius joined | 01:10 |
| → techrush joined | 01:10 |
| → eletuchy joined | 01:10 |
| → Sho_ joined | 01:10 |
| → markelikalderon joined | 01:10 |
| → Leemp joined | 01:10 |
| → codeshah joined | 01:10 |
| → mbcharbonneau joined | 01:10 |
| → \ask joined | 01:10 |
| → javatexan joined | 01:10 |
| → scientes joined | 01:10 |
| → AkumaStreak joined | 01:10 |
| → agile joined | 01:10 |
| → rolfb joined | 01:10 |
| → amrox joined | 01:10 |
| → spb joined | 01:10 |
| → k0001 joined | 01:10 |
| → john3909 joined | 01:10 |
| → spearce joined | 01:10 |
| → eigensolver_ joined | 01:10 |
| → Radar joined | 01:10 |
| → diegoviola joined | 01:10 |
| → gberdyshev joined | 01:10 |
| → kukks joined | 01:10 |
| → wsc joined | 01:10 |
| → unreal joined | 01:10 |
| → smashwilson joined | 01:10 |
| → dodo_the_last1 joined | 01:10 |
| → photon joined | 01:10 |
| → jsbmsu joined | 01:10 |
| → gilimanjaro joined | 01:10 |
| → thumper joined | 01:10 |
| → NoirSoldats joined | 01:10 |
| → krh joined | 01:10 |
| → zeno^^away joined | 01:10 |
| → jed joined | 01:10 |
| → will__ joined | 01:10 |
| → pencilo joined | 01:10 |
| → rimenes joined | 01:10 |
| → _Vi joined | 01:10 |
| → avaja joined | 01:10 |
| → niki joined | 01:10 |
| → dreiss joined | 01:10 |
| → Salve joined | 01:10 |
| → Dashkal joined | 01:10 |
| → troyt joined | 01:10 |
| → poseidon joined | 01:10 |
| → sakyamuni joined | 01:10 |
| → robinr joined | 01:10 |
| → Fissure joined | 01:10 |
| → parasti joined | 01:10 |
| → sgrimm joined | 01:10 |
| → elik joined | 01:10 |
| → krawek joined | 01:10 |
| → drizzd joined | 01:10 |
| → bobesponja joined | 01:10 |
| → gwoo joined | 01:10 |
| → tbf joined | 01:10 |
| → microm joined | 01:10 |
| → argonel joined | 01:10 |
| → giallu joined | 01:10 |
| → flaguy48 joined | 01:10 |
| → kuadrosx joined | 01:10 |
| → univate joined | 01:10 |
| → thiago_home joined | 01:10 |
| → sfwc joined | 01:10 |
| → curvature joined | 01:10 |
| → maron joined | 01:10 |
| → qhoxie joined | 01:10 |
| → johan-s joined | 01:10 |
| → jpieper_ joined | 01:10 |
| → nothingHappens joined | 01:10 |
| → kold joined | 01:10 |
| → eno joined | 01:10 |
| → nghr joined | 01:10 |
| → tango_ joined | 01:10 |
| → voker57_ joined | 01:10 |
| → rio joined | 01:10 |
| → bdowning joined | 01:10 |
| → drewr joined | 01:10 |
| → rjc joined | 01:10 |
| → thorkilnaur joined | 01:10 |
| → eMxyzptlk joined | 01:10 |
| → cpg joined | 01:10 |
| → comp joined | 01:10 |
| → tchan1 joined | 01:10 |
| → FreakGuard joined | 01:10 |
| → un|ogic joined | 01:10 |
| → ia__ joined | 01:10 |
| → PupenoG joined | 01:10 |
| → Eridius joined | 01:10 |
| → cedricv joined | 01:10 |
| → seangrove joined | 01:10 |
| → astrocub joined | 01:10 |
| → orafu joined | 01:10 |
| → merlin83 joined | 01:10 |
| → Aides joined | 01:10 |
| → ruphy joined | 01:10 |
| → madewokherd joined | 01:10 |
| → dmlloyd joined | 01:10 |
| → pigeon joined | 01:10 |
| → tjafk1 joined | 01:10 |
| → neoeinstein joined | 01:10 |
| → schlort joined | 01:10 |
| → offby1 joined | 01:10 |
| → patmaddox joined | 01:10 |
| → cytrinox_ joined | 01:10 |
| → peper joined | 01:10 |
| → xckpd7 joined | 01:10 |
| → xenoterracide joined | 01:10 |
| → lu_zero joined | 01:10 |
| → JEEB joined | 01:10 |
| → Gitzilla joined | 01:10 |
| → AAA_awright joined | 01:10 |
| → tpope joined | 01:10 |
| → PugMajere joined | 01:10 |
| → cthompson joined | 01:10 |
| → kn1ttl joined | 01:10 |
| → ft joined | 01:10 |
| → ftehw joined | 01:10 |
| → mikearr joined | 01:10 |
| → BlindOracle joined | 01:10 |
| → zpoley1 joined | 01:10 |
| → tedoc2000 joined | 01:10 |
| → xkr47 joined | 01:10 |
| → tazle_ joined | 01:10 |
| → emg-2 joined | 01:10 |
| → jds joined | 01:10 |
| → jsquared joined | 01:10 |
| → ccherrett joined | 01:10 |
| → raz joined | 01:10 |
| → samjam joined | 01:10 |
| → meder_ joined | 01:10 |
| → snuxoll joined | 01:10 |
| → joevano joined | 01:10 |
| → cao joined | 01:10 |
| → eevar joined | 01:10 |
| → meebey joined | 01:10 |
| → tonyj joined | 01:10 |
| → DrNick joined | 01:10 |
| → Tsion joined | 01:10 |
| → sr joined | 01:10 |
| → tokkee joined | 01:10 |
| → radii joined | 01:10 |
| → decklin joined | 01:10 |
| → a-atwood joined | 01:10 |
| → BooK_ joined | 01:10 |
| → eikke joined | 01:10 |
| → ruskie joined | 01:10 |
| → Kudos joined | 01:10 |
| → tek0 joined | 01:10 |
| → rektide joined | 01:10 |
| → djpig joined | 01:10 |
| → Pistahh joined | 01:10 |
| → Derega joined | 01:10 |
| → apeiron joined | 01:10 |
| → Ilari joined | 01:10 |
| → droidcore joined | 01:10 |
| → Arrowmaster joined | 01:10 |
| → rphillips joined | 01:10 |
| → Weiss joined | 01:10 |
| → Grum joined | 01:10 |
| → EvanCarroll joined | 01:10 |
| → ferdy joined | 01:10 |
| → ahf joined | 01:10 |
| → tttsssttt joined | 01:10 |
| → TheDJACR joined | 01:10 |
| → robtaylor joined | 01:10 |
| → fr joined | 01:10 |
| → Lgb joined | 01:10 |
| → dermoth joined | 01:10 |
| → betabot joined | 01:10 |
| → jspiros joined | 01:10 |
| → Khisanth joined | 01:10 |
| → moh joined | 01:10 |
| → r0bby joined | 01:10 |
| → ska-fan joined | 01:10 |
| → harv joined | 01:10 |
| → Helios joined | 01:10 |
| → przemoc joined | 01:10 |
| → seb42 joined | 01:10 |
| → dkr21 joined | 01:10 |
| → jpeeler joined | 01:10 |
| → elliottcable joined | 01:10 |
| → ArjenL joined | 01:10 |
| → sebleier joined | 01:10 |
| → mika joined | 01:10 |
| → pastie joined | 01:10 |
| → tmz joined | 01:10 |
| → soul9 joined | 01:10 |
| → eldragon joined | 01:10 |
| → mpeterson joined | 01:10 |
| → N0va joined | 01:10 |
| → elarry joined | 01:10 |
| → joeytwiddle joined | 01:10 |
| → Knirch joined | 01:10 |
| → jmspeex joined | 01:10 |
| → osfameron joined | 01:10 |
| → mugwump joined | 01:10 |
| → eb_ joined | 01:10 |
| → mitsuhiko joined | 01:10 |
| → tvakah joined | 01:10 |
| → Blafasel_ joined | 01:10 |
| → sdiz-afk joined | 01:10 |
| → ozzloy joined | 01:10 |
| → flippo joined | 01:10 |
| → bartman joined | 01:10 |
| → ethercrow joined | 01:10 |
| → pcutler joined | 01:10 |
| → RurouniJones joined | 01:10 |
| → agib joined | 01:10 |
| → meyering joined | 01:10 |
| → Run joined | 01:10 |
| → hachi joined | 01:10 |
| → Nugget joined | 01:10 |
| → dereine[OFF] joined | 01:10 |
| → precision joined | 01:10 |
| → vmiklos joined | 01:10 |
| → UukGoblin joined | 01:10 |
| → willb joined | 01:10 |
| → Korren joined | 01:10 |
| → imarcusthis joined | 01:10 |
| → s0ber_ joined | 01:10 |
| → sunoano joined | 01:10 |
| → Simon- joined | 01:10 |
| → dgfitch joined | 01:10 |
| → eMBee joined | 01:10 |
| → glommer joined | 01:10 |
| → aphexer joined | 01:10 |
| → tim_jenssen joined | 01:10 |
| → xeno joined | 01:10 |
| → Alien_Freak joined | 01:10 |
| → godog joined | 01:10 |
| → serfurj joined | 01:10 |
| → smtms joined | 01:10 |
| → csgeek joined | 01:10 |
| → tswicegood joined | 01:10 |
| → corecode joined | 01:10 |
| → jacobat joined | 01:10 |
| → thirsteh joined | 01:10 |
| → magnus_ joined | 01:10 |
| → cebewee joined | 01:10 |
| → rvsjoen joined | 01:10 |
| → beeble joined | 01:10 |
| → Zaba_ joined | 01:10 |
| → binjured joined | 01:10 |
| → mlins joined | 01:10 |
| → joevandyk joined | 01:10 |
| → uau joined | 01:10 |
| → tomaw joined | 01:10 |
| → cbreak joined | 01:10 |
| → wagle joined | 01:10 |
| → bgerber joined | 01:10 |
| → m104 joined | 01:10 |
| → daleglas1 joined | 01:10 |
| → frsk joined | 01:10 |
| → dfr|work joined | 01:10 |
| → kloeri joined | 01:10 |
| → Woody2143 joined | 01:10 |
| → ilteris_ joined | 01:10 |
| → Risar joined | 01:10 |
| → ReAn joined | 01:10 |
| → Damm joined | 01:10 |
| → josh^^ joined | 01:10 |
| → cods joined | 01:10 |
| → mutex joined | 01:10 |
| → Griffon26 joined | 01:10 |
| → wanders joined | 01:10 |
| → context joined | 01:10 |
| → beantmt joined | 01:10 |
| → pcc1 joined | 01:10 |
| → koki joined | 01:10 |
| → jpic_pro1 joined | 01:10 |
| → sgronblo joined | 01:10 |
| → PsychoTrahe joined | 01:10 |
| → milli joined | 01:10 |
| → metze_away joined | 01:10 |
| → krig joined | 01:10 |
| → jasonmay joined | 01:10 |
| → dwmw2_gone joined | 01:10 |
| → jegade joined | 01:10 |
| → hatseflats joined | 01:10 |
| → simosx joined | 01:10 |
| → reaVer joined | 01:10 |
| → lamont joined | 01:10 |
| → ph8 joined | 01:10 |
| → mstormo joined | 01:10 |
| → bdrewery joined | 01:10 |
| → Bartman007 joined | 01:10 |
| → bleything joined | 01:10 |
| → warthog9 joined | 01:10 |
| → jayne joined | 01:10 |
| → jonmasters joined | 01:10 |
| → mpr joined | 01:10 |
| → jarh joined | 01:10 |
| → hiffy joined | 01:10 |
| → shad joined | 01:10 |
| → cxreg joined | 01:10 |
| → dominikh joined | 01:10 |
| → paparent joined | 01:10 |
| → KiBi joined | 01:10 |
| → deavid joined | 01:10 |
| → pasky joined | 01:10 |
| → Gitbot joined | 01:10 |
| → Rhonda joined | 01:10 |
| → tro joined | 01:10 |
| → orospakr joined | 01:10 |
| → Garoth joined | 01:10 |
| → kelvie joined | 01:10 |
| → nomadium joined | 01:10 |
| → jefftriplett joined | 01:10 |
| → rholden joined | 01:10 |
| → Pieter joined | 01:10 |
| → coopsh joined | 01:10 |
| → andres joined | 01:10 |
| → Jc2k joined | 01:10 |
| → bgamari joined | 01:10 |
| → andreaja joined | 01:10 |
| → bla joined | 01:10 |
| → nadim joined | 01:10 |
| → Louie` joined | 01:10 |
| → nil joined | 01:10 |
| → thiago joined | 01:10 |
| → Tekerson joined | 01:10 |
| → Whtiger joined | 01:10 |
| → jepler joined | 01:10 |
| → majoh joined | 01:10 |
| → static^ joined | 01:10 |
| → levifig joined | 01:10 |
| → nickm joined | 01:10 |
| → xblaster joined | 01:10 |
| → Ratler joined | 01:10 |
| → Bombe joined | 01:10 |
| → elmex joined | 01:10 |
| → ashH joined | 01:10 |
| → pilif|away joined | 01:10 |
| → alip joined | 01:10 |
| → zaius joined | 01:10 |
| → bwalk|uni joined | 01:10 |
| → awx joined | 01:10 |
| → kirillm joined | 01:10 |
| → drfreeze joined | 01:10 |
| → PuffTheMagic joined | 01:10 |
| → joshthecoder joined | 01:10 |
| → BeerSerc joined | 01:10 |
| → AlexB joined | 01:10 |
| → tarbo joined | 01:10 |
| → charon joined | 01:10 |
| → omega joined | 01:10 |
| → kusma joined | 01:10 |
| → cardioid joined | 01:10 |
| → R_Dday joined | 01:10 |
| → navik joined | 01:10 |
| → halfline joined | 01:10 |
| → sejo joined | 01:10 |
| → laj joined | 01:10 |
| → TML joined | 01:10 |
| → nomis joined | 01:10 |
| → redondos joined | 01:10 |
| → trodrigues joined | 01:10 |
| → xmux joined | 01:10 |
| → Kasperle joined | 01:10 |
| → ElAngelo joined | 01:10 |
| → harryman100 joined | 01:10 |
| → wereHamster joined | 01:10 |
| → fonseca joined | 01:10 |
| → mattikus joined | 01:10 |
| → Tommy[D] joined | 01:10 |
| → bremner joined | 01:10 |
| → CIA-27 joined | 01:10 |
| → felipe joined | 01:10 |
| → jones- joined | 01:10 |
| → EgS joined | 01:10 |
| → flexd joined | 01:10 |
| → ReinH joined | 01:10 |
| → emias joined | 01:10 |
| → azuk joined | 01:10 |
| → siprbaum joined | 01:10 |
| → BearPerson joined | 01:10 |
| → zlin joined | 01:10 |
| → blizz joined | 01:10 |
| → exg joined | 01:10 |
| → ciaranm joined | 01:10 |
| ← zuez left | 01:11 |
| → zuez joined | 01:11 |
| ← cpg left | 01:11 |
| → cpg joined | 01:11 |
|
EvanCarroll
| how do you see a file at revision X | 01:11 |
|
| not just the diff, but the whole file | 01:11 |
|
mugwump
| git show rev:filename | 01:11 |
|
| or git cat-file blob rev:filename | 01:11 |
| ← sgrimm left | 01:11 |
| ← zuez left | 01:11 |
|
EvanCarroll
| where blob is the word blob? | 01:11 |
| → zuez joined | 01:11 |
|
mugwump
| EvanCarroll: see man git-cat-file | 01:11 |
|
Gitbot
| EvanCarroll: the git-cat-file manpage can be found at http://git.or.cz/man/git-cat-file | 01:11 |
|
EvanCarroll
| git show worked | 01:12 |
| ← AAA_awright left | 01:14 |
| ← Dashkal left | 01:14 |
| ← Murr left | 01:15 |
| → aspotashev joined | 01:16 |
| → chrizz joined | 01:16 |
| → nothingmuch joined | 01:16 |
| → Mutru joined | 01:16 |
| → elspeth joined | 01:16 |
| → nick_h joined | 01:16 |
| → fanf2 joined | 01:16 |
| → PerlJam joined | 01:16 |
| → reuss joined | 01:16 |
| → Nilbus joined | 01:16 |
| → jkp joined | 01:16 |
| → Arafangion joined | 01:16 |
| → crankharder joined | 01:16 |
| → fargiolas joined | 01:16 |
| → kadoban joined | 01:16 |
| → gambler__ joined | 01:16 |
| → ayaka_t_ joined | 01:16 |
| ← aspotashev left | 01:16 |
| → mithro joined | 01:16 |
| → segher joined | 01:16 |
| → aspotashev joined | 01:17 |
| → ilteris__ joined | 01:17 |
| ← kirillm left | 01:17 |
| → SamB joined | 01:18 |
| ← javatexan left | 01:18 |
| ← releod left | 01:19 |
| → IRSeekBot joined | 01:19 |
| ← ashleyw left | 01:19 |
| ← dreiss left | 01:24 |
| ← wsc left | 01:26 |
| → ezyang joined | 01:27 |
|
ezyang
| Heya, lets say I have a directory with unversioned file, and a repository that corresponds to the unversioned files (think of the former as a untarred git export result). Is there any way to magically turn the former into a git repository, with the working copy setup correctly? | 01:28 |
|
mugwump
| sure, but why? | 01:29 |
|
| I mean, if you know that the repository corresponds to a tree you can just check it out | 01:29 |
|
ezyang
| We maintain a bunch of autoinstalled web scripts on 1000+ user accounts, and we want to convert them into something that uses Git as the update infrastructure | 01:29 |
|
| Doing a fresh checkout has too many failure modes. | 01:30 |
|
mugwump
| should be safe with: git clean -x -d -f; git checkout commit | 01:30 |
|
| maybe add a git reset --hard in there too | 01:30 |
|
ezyang
| Um, wouldn't that blow away local changes? | 01:31 |
|
mugwump
| right | 01:31 |
|
ezyang
| That's bad. We want to *keep* any local changes | 01:31 |
| → RandalSchwartz joined | 01:31 |
|
mugwump
| ezyang: well, go read man git-read-tree | 01:32 |
|
Gitbot
| ezyang: the git-read-tree manpage can be found at http://git.or.cz/man/git-read-tree | 01:32 |
|
ezyang
| I suppose I could make a checkout and then copy the .git over to it. | 01:32 |
|
mugwump
| you can also set GIT_DIR | 01:32 |
|
| ezyang: and GIT_INDEX_FILE - see ENVIRONMENT section of man git | 01:32 |
|
ezyang
| Hmm. That's an interesting approach, but I don't think we can actually modify all of the environments necessary. | 01:33 |
|
| git-read-tree... don't I have to be in a repos for that to work? | 01:34 |
|
mugwump
| git read-tree by default modifies only the index | 01:34 |
| → th3lib joined | 01:34 |
|
mugwump
| by setting GIT_DIR and/or GIT_WORK_TREE (iirc) you don't have to copy things around | 01:35 |
|
| by using a temporary index you can use the same git repo for multiple checkouts | 01:35 |
|
ezyang
| Ah, I see. So only our scripts twiddle the the environment variable and actually see the repository; everyone else just thinks they've still got a normal checkout. | 01:35 |
|
| Hmm. I wonder if that's a good idea. | 01:36 |
|
mugwump
| for deployments it's a good idea - keep your .git well away from your webroots | 01:36 |
| ← bcardarella left | 01:37 |
|
ezyang
| Fair enough. | 01:37 |
| ← qhoxie left | 01:37 |
| → johnw joined | 01:38 |
|
th3lib
| Hi, I'm getting a compile error with 1.6.3 (and .1) on OpenBSD, and was wondering if anyone else here had come across this issue. | 01:40 |
| ← wycats left | 01:42 |
|
ezyang
| What's the error? | 01:42 |
|
th3lib
| CC reachable.o | 01:42 |
|
| CC read-cache.o | 01:42 |
|
| th3lib read-cache.c: In function `fill_stat_cache_info': | 01:42 |
|
| th3lib read-cache.c:72: error: structure has no member named `st_ctim' | 01:42 |
|
| th3lib read-cache.c:73: error: structure has no member named `st_mtim' | 01:42 |
|
| th3lib read-cache.c: In function `read_index_from': | 01:42 |
|
| th3lib read-cache.c:1302: error: structure has no member named `st_mtim' | 01:42 |
|
| th3lib read-cache.c: In function `write_index': | 01:42 |
|
| th3lib read-cache.c:1567: error: structure has no member named `st_mtim' | 01:42 |
|
| th3lib gmake: *** [read-cache.o] Error 1 | 01:42 |
|
| Damm sighs | 01:42 |
|
th3lib
| This is on OpenBSD 4.4 AMD64 | 01:42 |
| ← bdowning left | 01:42 |
|
Damm
| th3lib, pastie.org or gist.github.com | 01:42 |
|
th3lib
| d'oh! | 01:43 |
|
| sorry about that | 01:43 |
|
Damm
| th3lib, your more then likely going to need the patched version from pkgsrc or ports or whatever openbsd uses now | 01:44 |
|
th3lib
| The whole thing can be seen here: http://gist.github.com/111420 | 01:44 |
|
| damm: I've not had this error on any previous version of git - it has always compile fine from the official tarballs | 01:45 |
|
mugwump
| th3lib: looks like the #ifdefs in git-compat-util.h are wrong for your platform | 01:45 |
|
| if you have a known good and a known bad version then you can bisect it | 01:46 |
|
Damm
| th3lib, should be able to now adays... but when it comes to openbsd | 01:46 |
|
| heh | 01:46 |
|
mugwump
| patches for platform support should be included | 01:46 |
| → ashleyw joined | 01:46 |
|
mugwump
| it's just not every platform is tested for every release so regressions can sneak in | 01:46 |
| ← stuffcorpse left | 01:47 |
|
th3lib
| mugwump: I'll clone the repo and run a bisect | 01:47 |
| → stuffcorpse joined | 01:47 |
|
th3lib
| The version I'm currently running on the OpenBSD box is 1.6.2.2 - which obviously compile OK | 01:48 |
|
Damm
| mugwump, oh it's not my lack of faith in git, it's openbsd. | 01:48 |
|
| mugwump, a quick google on openbsd + st_ctime made me remember why i stopped touching obsd | 01:48 |
|
RandalSchwartz
| what's wrong with st_ctime on obsd? | 01:49 |
| ← parasti left | 01:50 |
|
RandalSchwartz
| I did a google, didn't notice anything odd | 01:50 |
| ← kukks left | 01:51 |
| ← rimenes left | 01:51 |
| ← kuadrosx left | 01:51 |
| → kuadrosx joined | 01:52 |
| ← poseidon left | 01:55 |
| ← bdimcheff left | 01:58 |
| → bdimcheff joined | 02:00 |
| → bnferguson joined | 02:02 |
| ← amrox left | 02:02 |
| ← bnferguson left | 02:06 |
| → hyperair joined | 02:08 |
| ← ezyang left | 02:08 |
| ← techrush left | 02:08 |
| → amrox joined | 02:09 |
| ← smashwilson left | 02:10 |
| → scarabx joined | 02:10 |
| ← pencilo left | 02:14 |
| → pencilo joined | 02:14 |
|
th3lib
| OK - I've done the bisect, and c06ff is the first bad commit | 02:14 |
|
| "Record ns-timestamps if possible, but do not use it without USE_NSEC" | 02:14 |
|
Damm
| RandalSchwartz, nothing really | 02:15 |
| → hahdhekt3 joined | 02:15 |
|
Damm
| it's just the attitudes i saw is all | 02:15 |
|
mugwump
| th3lib: that looks highly relevant | 02:15 |
| ← Modius left | 02:15 |
| ← hahdhekt3 left | 02:15 |
| ← magic_hat left | 02:15 |
|
mugwump
| time to write to the list! Even better, time to see if you can patch it and then write to the list! :) | 02:15 |
| → bdowning joined | 02:15 |
| → Modius joined | 02:16 |
|
th3lib
| OK, I'll see what's going on. If I can't figure it out, I'll just send a report | 02:16 |
|
| I've not had much C programming experience, so I wouldn't hold out much hope :) | 02:16 |
| → bpalmer joined | 02:17 |
| → fujin joined | 02:18 |
|
mugwump
| #ifdefs are pretty simple preprocessor stuff | 02:18 |
|
| but figuring out the right thing can still be tricky | 02:18 |
|
th3lib
| I'll see what I can see. But first, time for lunch :) | 02:19 |
| ← rolfb left | 02:19 |
| ← drewr left | 02:19 |
| → Bass10 joined | 02:19 |
|
th3lib
| BTW, this is the first time I've used bisect - it's very nice. | 02:20 |
| → cytrinox joined | 02:20 |
| ← th3lib left | 02:21 |
| → texel joined | 02:21 |
| → bcardarella joined | 02:21 |
| → arohner joined | 02:22 |
| → jereme joined | 02:24 |
| ← bdimcheff left | 02:27 |
| → bdimcheff joined | 02:27 |
| → jrmuizel joined | 02:29 |
| → STiAT joined | 02:32 |
| → AAA_awright joined | 02:33 |
|
STiAT
| Hi. Is there any serious way to get a "normal" patchfile out of git between master and branch of the current directory? | 02:33 |
| ← qrush left | 02:33 |
|
STiAT
| like a patch somebody else could import to svn? | 02:33 |
| ← zeno^^away left | 02:34 |
|
johnw
| you could just use git diff | 02:35 |
|
| "patch" can read that | 02:36 |
| ← cytrinox_ left | 02:36 |
|
bpalmer
| you may also want to use git-format-patch , which can break it into many small patchfiles that can be applied to svn | 02:36 |
|
johnw
| Git patch files are meant to be consumed by git, as they contain information relevant to the commit itself, as well as the changes made by it | 02:36 |
|
| yes, what bpalmer said | 02:37 |
|
| I hand off Git patch files (made by git-format-patch) to co-workers who use CVS all the time | 02:37 |
|
STiAT
| but patch can only read that with -p1 or -p2 option due to the a/ and b/ added by git | 02:37 |
|
johnw
| is that a problem? | 02:37 |
|
STiAT
| depends on, for people not, for kdes reviewboard it is | 02:37 |
| → wmoxam joined | 02:37 |
| ← Bass10 left | 02:39 |
| → sgrimm joined | 02:39 |
| ← jerbear left | 02:40 |
| → diegovio1a joined | 02:41 |
| → eno__ joined | 02:44 |
| ← flaguy48 left | 02:45 |
| ← bcardarella left | 02:47 |
| ← kold left | 02:48 |
| ← eno left | 02:48 |
| eno__ → eno | 02:48 |
| ← amrox left | 02:48 |
| → tjafk2 joined | 02:52 |
| photon → Guest52575 | 02:52 |
| ← cytrinox left | 02:56 |
| → photon joined | 02:57 |
| ← Guest52575 left | 02:58 |
| ← bdimcheff left | 02:58 |
| ← diegoviola left | 02:58 |
| → bnferguson joined | 03:00 |
| ← texel left | 03:00 |
| ← warthog9 left | 03:01 |
| ← hyperair left | 03:06 |
| → tansell joined | 03:09 |
| ← tjafk1 left | 03:09 |
|
tansell
| anyone here familiar with how gitk build's it's merge tree graphic thing? | 03:09 |
| ← fujin left | 03:10 |
| → hyperair joined | 03:10 |
| ← spearce left | 03:10 |
| → fujin joined | 03:11 |
| ← markelikalderon left | 03:11 |
| ← seb42 left | 03:12 |
| → bcardarella joined | 03:12 |
| ← fujin left | 03:14 |
| → fujin joined | 03:15 |
| → releod joined | 03:15 |
| ← fujin left | 03:15 |
| ← cedricv left | 03:16 |
| → gberdyshev_ joined | 03:19 |
| ← jereme left | 03:25 |
| sdiz-afk → sdiz | 03:26 |
| ← photon left | 03:27 |
| ← k0001 left | 03:29 |
| → amrox joined | 03:30 |
| ← bcardarella left | 03:30 |
| → dfabulich joined | 03:31 |
| ← gberdyshev left | 03:33 |
| → Paf joined | 03:33 |
| ← SamB left | 03:36 |
| ← ashleyw left | 03:37 |
| cpg → cpg|biab | 03:37 |
| ← STiAT left | 03:38 |
| → ajonat joined | 03:40 |
| → m104_ joined | 03:43 |
| ← m104 left | 03:44 |
| ← jmd left | 03:44 |
| → mfilipe joined | 03:45 |
| → offby1` joined | 03:48 |
| → wycats joined | 03:49 |
| ← orafu left | 03:49 |
| → orafu joined | 03:49 |
| → dreiss joined | 03:52 |
| → WALoeIII joined | 03:54 |
| ← dfabulich left | 03:55 |
| → mfilipe_ joined | 03:57 |
| → girishr joined | 03:58 |
| ← maron left | 04:00 |
| ← scarabx left | 04:00 |
| ← offby1 left | 04:02 |
| → schacon joined | 04:02 |
| ← agenteo left | 04:05 |
| ← jrmuizel left | 04:06 |
| ← offby1` left | 04:07 |
| → ashleyw joined | 04:08 |
| ← Sho_ left | 04:09 |
| → mfilipe__ joined | 04:12 |
| ← mfilipe left | 04:14 |
| ← gaveen left | 04:14 |
| → mfilipe joined | 04:15 |
| → offby1 joined | 04:16 |
| ← mfilipe_ left | 04:16 |
| → gaveen joined | 04:17 |
| → mfilipe_ joined | 04:17 |
| ← schacon left | 04:19 |
| → mfilipe___ joined | 04:22 |
| cpg|biab → cpg | 04:24 |
| ← joshsdc left | 04:26 |
| → mfilipe____ joined | 04:27 |
| ← mfilipe__ left | 04:30 |
| ← mfilipe left | 04:33 |
| → mfilipe joined | 04:34 |
| ← mfilipe____ left | 04:35 |
| ← mfilipe_ left | 04:38 |
| → mfilipe_ joined | 04:39 |
| ← gaveen left | 04:39 |
| → wsc joined | 04:39 |
| → gaveen joined | 04:40 |
| → eddyp joined | 04:41 |
| ← mfilipe_ left | 04:41 |
| ← mfilipe___ left | 04:43 |
| → mfilipe_ joined | 04:43 |
| → altrux joined | 04:43 |
| ← wsc left | 04:49 |
| → wsc joined | 04:49 |
| → girishr_ joined | 04:50 |
| ← wsc left | 04:52 |
| → abstrusething joined | 04:52 |
| → wsc joined | 04:52 |
| → jdahm joined | 04:53 |
| ← mfilipe left | 04:54 |
| ← mpr left | 04:55 |
| ← giallu left | 04:59 |
| → mpr joined | 05:00 |
| ← wsc left | 05:00 |
| → wsc joined | 05:00 |
| ← curvature left | 05:01 |
| → curvature joined | 05:01 |
| ← wsc left | 05:01 |
| → psankar joined | 05:02 |
| ← mithro left | 05:05 |
| → mlins_ joined | 05:05 |
| ← girishr left | 05:05 |
| fr → fr| | 05:07 |
| ← altrux left | 05:09 |
| → vals_ joined | 05:10 |
| ← girishr_ left | 05:11 |
| ← tchan1 left | 05:11 |
| → tchan1 joined | 05:12 |
| ← abstrusething left | 05:12 |
| ← wmoxam left | 05:12 |
| → Weaselweb joined | 05:14 |
| ← mlins left | 05:16 |
| → ezyang joined | 05:17 |
|
ezyang
| I want to host lots of working copies (which may be on different commits) out of a single .git (this is distinct from a single object repository). Is this possible? | 05:17 |
|
Fissure
| possible? probably. a good idea? unlikely | 05:18 |
|
| though you might want to look into the git-new-workdir script in contrib/ | 05:19 |
| → joseph_ joined | 05:19 |
|
ezyang
| Ok. My next question, then, is how can I convert a plain directory of files (unversioned, a bit like an untarred git export) into a git repository in place? | 05:20 |
|
RandalSchwartz
| git init :) | 05:20 |
|
| done | 05:20 |
|
| that's what git init does | 05:20 |
|
ezyang
| We have a different git repository that we'd like to "stick" the files on. | 05:20 |
|
RandalSchwartz
| makes a .git | 05:20 |
| ← ajonat left | 05:20 |
| joseph_ → twas_ | 05:20 |
|
RandalSchwartz
| git init in place | 05:20 |
|
| then add all files | 05:20 |
|
| commit | 05:20 |
|
| and then push it | 05:20 |
| → priidu joined | 05:20 |
|
ezyang
| I am familiar with the basic use-case of Git. | 05:21 |
| twas_ → twas__ | 05:21 |
|
ezyang
| Hmm, how to explain better. | 05:21 |
|
RandalSchwartz
| git init; git commit -a -m "tarball from Jerry" | 05:21 |
|
Nugget
| "basic use-case of git" sounds like an oyxmoron :) | 05:21 |
|
RandalSchwartz
| git remote add /path/to/that/other/repo | 05:21 |
|
| git push that | 05:21 |
|
| yeah - basic use-case | 05:21 |
| ← tango_ left | 05:21 |
|
RandalSchwartz
| there's no such beast | 05:21 |
| ← mfilipe_ left | 05:22 |
|
ezyang
| Ok, so we have N users who each of have an autoinstalled web script. These users may have different versions (we know which version they have, though), and may have made local changes. | 05:22 |
| → girishr joined | 05:22 |
|
ezyang
| These directories are NOT versioned. | 05:22 |
|
RandalSchwartz
| each time you talk, this gets more confusing | 05:22 |
|
ezyang
| Let's say I create a Git repository, with history v1.0 -> v1.1 -> v1.2 | 05:22 |
|
RandalSchwartz
| why didn't you start with your real question | 05:22 |
|
| RandalSchwartz waits for the next version of the question | 05:22 |
|
| RandalSchwartz issues "git pull from_the_future" | 05:23 |
|
ezyang
| I want to know convert the unversioned directories into checkouts of the new Git repository | 05:23 |
|
RandalSchwartz
| "unversioned directories"? | 05:23 |
|
ezyang
| Yep, unversioned directories | 05:23 |
|
| This is a sort of migration thing. | 05:23 |
|
RandalSchwartz
| can you say that again without using those words | 05:24 |
|
ezyang
| Ok. | 05:24 |
|
RandalSchwartz
| all directories in git are unversioned :) | 05:24 |
|
ezyang
| s/directory/working copy/ | 05:24 |
|
RandalSchwartz
| the working copy is unversioned as well | 05:24 |
|
| so that doesn't add anything | 05:24 |
|
ezyang
| s/working copy/directory that is not a working copy/ | 05:25 |
|
RandalSchwartz
| are you saying you want commit 1 to represent one tree | 05:25 |
| → diegoviola joined | 05:25 |
|
RandalSchwartz
| then commit 2 to represent a second tree | 05:25 |
|
ezyang
| Let's try again. | 05:25 |
|
RandalSchwartz
| with commit 1 being its parent | 05:25 |
|
| like that? | 05:25 |
|
ezyang
| I want to do something that would be functionally equivalent to copying .git from one directory to another, and then twiddling with .git/HEAD | 05:26 |
|
RandalSchwartz
| no you don't | 05:26 |
|
| RandalSchwartz grins | 05:26 |
|
ezyang
| Why not? | 05:26 |
| → jceb joined | 05:26 |
|
RandalSchwartz
| well, you don't want to copy .git around | 05:26 |
|
| I think maybe you mean, keep updating the tree | 05:26 |
|
| brb | 05:26 |
|
ezyang
| :-/ | 05:27 |
|
| An alternate phrasing of the problem is I want to git clone a repository, and then cp -r a directory full of local changes on top of that. However, I want to do this all in place. | 05:27 |
| vals_ → tango_ | 05:27 |
|
ezyang
| Since the original directory has some special ACLs and files in it, and I'd rather not "touch" all of them if I don't have to. | 05:28 |
|
johnw
| you could use rsync -cr | 05:29 |
|
| this copies only files whose contents have changed | 05:29 |
|
| it pretty much ignores metadata | 05:29 |
|
| of course, it's slow for that very reason too | 05:29 |
| → fujin joined | 05:30 |
|
ezyang
| The trouble is that the directory I'd be coping from is considered the "original" copy. Whatever git setup for me is after the fact. | 05:30 |
|
| It's a long and sordid migration story. | 05:30 |
|
johnw
| i still don't know exactly what you want then | 05:30 |
| → Tuomas joined | 05:31 |
|
ezyang
| Let's say you downloaded some software and untarred it into a directory, and made some changes. At some later point, you took that software and stuck it in a Git repository. You want to turn the original directory into a git working copy with local changes, but you don't want to mv the original directory out of the way, do a git clone, and then cp -R the original directory over that. | 05:31 |
|
| I'm not sure how clear that is. | 05:32 |
| → peshalto joined | 05:32 |
|
johnw
| you know, you can just copy the .git directory into the directory you want to become a working tree | 05:33 |
|
| then "git status" will show you whatever changes it has | 05:33 |
|
| relative to the .git repository that you just copied into it | 05:33 |
|
ezyang
| I mentioned that earlier. | 05:33 |
|
johnw
| or even better, just set GIT_DIR | 05:33 |
|
ezyang
| Is that the best way to do it? | 05:33 |
|
johnw
| like, GIT_DIR=/path/to/.git git status | 05:33 |
|
ezyang
| Setting GIT_DIR was also considered. | 05:33 |
| → nighthwk1 joined | 05:34 |
|
johnw
| well, I can't know if it's the best way, since I'm still not entirely clear what you want | 05:34 |
|
ezyang
| The problem with that is when you have many of these plain directories you suddenly want to version. | 05:34 |
|
johnw
| but it "sounds" like what you're asking for | 05:34 |
| → davidad joined | 05:34 |
|
ezyang
| Yep, it does. | 05:34 |
| ← nighthwk1 left | 05:34 |
| ← davidad left | 05:34 |
|
ezyang
| Sharing a .git directory was very attractive, since it meant we wouldn't have to scribble in N unversioned directories. | 05:36 |
|
| However, since each of these copies could be on different commits of the original, you'd also need a way to specify different HEADs, which wasn't possible. | 05:37 |
|
Ilari
| ezyang: You want way to specify the states to declare derivation from and what ref to update? | 05:38 |
| → djgera joined | 05:39 |
| ← niki left | 05:39 |
|
ezyang
| Possibly! | 05:39 |
|
| Or maybe I just want separate clones for all of my copies and put them all on distinct branches. | 05:39 |
|
xenoterracide
| hmm is there a way to remove a file from git but not the filesystem? | 05:40 |
|
johnw
| git rm --cached | 05:40 |
| ← codeshah left | 05:40 |
|
Ilari
| ezyang: Well, using 'write-tree + commit-tree + update-ref' comoo, you can control lot more (apart that commit-tree wants message from stdin, which is bit nasty). | 05:40 |
|
| *combo | 05:40 |
|
ezyang
| I'm not quite sure I want to use plumbing commands for this :-/ | 05:41 |
| → agenteo joined | 05:41 |
| ← diegovio1a left | 05:42 |
|
ezyang
| Back to the other question; is there any problem with me copying in a .git directory and frobbing HEAD? | 05:42 |
| → codeshah joined | 05:42 |
|
Ilari
| ezyang: The index has parts which don't copy properly. You would need 'git update-index --refresh' after copying. | 05:43 |
|
| ezyang: There are stuff like inode numbers there. | 05:43 |
| ← ilteris__ left | 05:44 |
|
ezyang
| Hmm... that wouldn't be too much of a problem. | 05:44 |
|
| Also, I would try to enforce the index to be clean before copying .git. | 05:44 |
|
Ilari
| ezyang: Not enough. You still need to fix the index after copy. | 05:44 |
|
ezyang
| Understood. | 05:45 |
|
Ilari
| ezyang: And that command would fix dirty index just as well as clean one. | 05:45 |
|
ezyang
| Are there any other problems with this approach? | 05:45 |
| → jsbmsu1 joined | 05:45 |
| → ilteris__ joined | 05:46 |
| ← jsbmsu1 left | 05:47 |
|
Ilari
| ezyang: BTW: AFAIK, one can use 'ln' to frob HEAD, as symlinks as symrefs is still supported. | 05:48 |
|
ezyang
| Oh wow. | 05:48 |
|
| So we use a relative symlink and store the head in the other directory? | 05:49 |
|
| That's trippy. | 05:49 |
|
Ilari
| ezyang: You could also create .git directory that symlinks in the common stuff (refs, objects and logs) and has its own copy of HEAD and index. | 05:50 |
|
| RandalSchwartz goes away, and comes back to find this to be impossibly hard instead of trivial | 05:51 |
|
Ilari
| ezyang: Except that 'logs/HEAD' should also be private to that .git dir. | 05:51 |
|
| RandalSchwartz wonders what went wrong | 05:51 |
|
Ilari
| ezyang: the symlinks as symrefs thing is that if git finds that HEAD is symlink to 'refs/heads/foo', it treats it as symref to 'refs/heads/foo'. | 05:52 |
|
ezyang
| Ilari: I'd rather not do that. | 05:52 |
|
| Oh. | 05:52 |
|
| That doesn't actually work, since we still need a unique HEAD for all checkouts. | 05:52 |
|
| I suppose what we really need is an environment variable akin to GIT_DIR just for HEAD :-) | 05:53 |
|
| Well, you have some great suggestions. | 05:53 |
|
Ilari
| ezyang: That would require messing with low-level commands. | 05:54 |
|
| ezyang: Probably from script. | 05:54 |
|
mugwump
| /last/lastlog clear | 05:54 |
|
| /fail | 05:54 |
|
ezyang
| Heh | 05:55 |
| → ph^ joined | 05:56 |
| ← robinr left | 05:57 |
| ← ph^ left | 05:59 |
| → cyberglitch joined | 06:00 |
| ← offby1 left | 06:01 |
| ← stuffcorpse left | 06:01 |
| → stuffcorpse joined | 06:02 |
| ← releod left | 06:02 |
| → ankit9 joined | 06:03 |
| → markelikalderon joined | 06:04 |
| ← peshalto left | 06:04 |
| → wshimmy joined | 06:04 |
| → peshalto joined | 06:05 |
| → ilteris___ joined | 06:06 |
| fr| → fr | 06:06 |
| ← johan-s left | 06:09 |
| ← jsbmsu left | 06:13 |
| → kraymer joined | 06:20 |
| ← ilteris___ left | 06:20 |
| ← wycats left | 06:23 |
| ← ilteris__ left | 06:25 |
| → giallu joined | 06:26 |
| → psychoschlumpf joined | 06:28 |
|
psychoschlumpf
| why does "git describe" return "fatal: cannot describe" when i manually checked out a tagged commit? | 06:29 |
|
Fissure
| lightweight tag? | 06:29 |
| ← ankit9 left | 06:30 |
|
Fissure
| you need to use --tags for lightweight tags to be counted | 06:30 |
|
psychoschlumpf
| whats the difference between a tag and a lightweight tag? | 06:30 |
|
| or is there a difference? | 06:31 |
|
mugwump
| a lightweight tag has no 'tag' object, it's just a ref | 06:31 |
|
| ie, no message, no signature, etc | 06:31 |
|
psychoschlumpf
| and how do i add a tag with a tag reference? | 06:31 |
|
mugwump
| make a tag with a message | 06:31 |
|
psychoschlumpf
| ahhh | 06:33 |
|
| thank you :-) | 06:33 |
| ← peshalto left | 06:35 |
| ← tchan1 left | 06:36 |
| → zwu joined | 06:38 |
| → tal67 joined | 06:39 |
| → WALoeIII_ joined | 06:40 |
| → jony joined | 06:42 |
| ← tal67 left | 06:42 |
| ← gberdyshev_ left | 06:42 |
| → tal67 joined | 06:45 |
| → ankit9 joined | 06:45 |
| ← jceb left | 06:47 |
| ← Radar left | 06:47 |
| → bentob0x joined | 06:48 |
| → ceej joined | 06:48 |
| ← hyperair left | 06:48 |
| → hyperair joined | 06:49 |
| ← codeshah left | 06:49 |
| → marc_m joined | 06:49 |
| ← argonel left | 06:52 |
|
Fissure
| it's funny watching linus rant about how much he hates OS X filesystems :) | 06:53 |
|
bpalmer
| watch where? | 06:54 |
| → Grahack joined | 06:55 |
|
Fissure
| the big "cross-platform version control" thread on the mailing list | 06:55 |
| → Bogh joined | 06:56 |
| ← WALoeIII left | 06:56 |
| → tchan1 joined | 06:56 |
|
snuxoll
| well, HFS+ isn't exactly what I'd call great | 06:57 |
|
| it's certainly not terrible by any strech of the word though | 06:57 |
|
Fissure
| well, the filename you pass to open() and the one you get back from readdir() are not the same in some cases | 06:59 |
| ← ankit9 left | 06:59 |
| → ankit9 joined | 06:59 |
|
Fissure
| which can be annoying when you're writing a version control system meant to work with multiple platforms | 06:59 |
| ← kuadrosx left | 07:00 |
| → solydzajs joined | 07:01 |
| → johan-s joined | 07:02 |
| → ciskje joined | 07:02 |
| ← markelikalderon left | 07:03 |
| → abstrusething joined | 07:04 |
| ← avaja left | 07:04 |
| → neunon joined | 07:05 |
| → mikeando joined | 07:05 |
| → tchan joined | 07:05 |
| → ph^ joined | 07:06 |
| → galderz joined | 07:07 |
| → jsbmsu joined | 07:08 |
| → kbingham joined | 07:08 |
|
Ilari
| Not to mention the one you get from readdir isn't exactly sane... | 07:10 |
|
Fissure
| they do normalization all crazy-like? | 07:12 |
| → peshalto_ joined | 07:13 |
| → cilly joined | 07:14 |
| ← Grahack left | 07:14 |
| → mc_plectrum joined | 07:15 |
| ← tchan1 left | 07:15 |
| → lohrun joined | 07:17 |
| ← sakyamuni left | 07:19 |
| → dohzya joined | 07:22 |
| → the_zeno joined | 07:24 |
| joshthecoder → joshthecoder_afk | 07:24 |
| ← Paf left | 07:24 |
|
Ilari
| IIRC, not only use NFD, which in itself is crazy (cross-platform compatiblity problems!), but IIRC it was some variant of it. | 07:24 |
| → jmesnil joined | 07:25 |
| ← ceej left | 07:25 |
|
thiago_home
| Mac? | 07:25 |
|
Ilari
| thiago_home: Yes. | 07:25 |
| ← WALoeIII_ left | 07:26 |
|
Ilari
| thiago_home: Or to be more specific, HFS+. UFS doesn't do it. | 07:26 |
|
thiago_home
| in other words, to be cross-platform, you need a full unicode implementation | 07:26 |
|
| to do proper NFC/NFD and to be able to tell if two filenames differ only by case | 07:27 |
|
Ilari
| thiago_home: More fun: Unicode has three cases for some characters: 'all-lowercase', 'first-upper' and 'all-uppercase'. And there probably are distinct codepoints that uppercase in the same way. | 07:28 |
|
thiago_home
| lowercase, titlecase and uppercase | 07:28 |
|
| yes | 07:28 |
|
| and remember that all those operations are *string* operations, not character operations | 07:28 |
|
| toupper('ß') is invalid | 07:28 |
|
| toupper("ß") is "SS" | 07:29 |
|
| thiago_home wonders if Windows and Mac FS honour that | 07:29 |
| ← stuffcorpse left | 07:29 |
| → stuffcorpse joined | 07:30 |
| ← ezyang left | 07:30 |
| → angerman joined | 07:30 |
| → ceej joined | 07:32 |
| ← emias left | 07:32 |
| → emias joined | 07:32 |
|
bpalmer
| the eszett has a somewhat complicated history. unicode 5.1 includes "U+1E9E LATIN CAPITAL LETTER SHARP S" | 07:32 |
| ← ceej left | 07:34 |
| ← solydzajs left | 07:34 |
| ← agenteo left | 07:35 |
| ← emg-2 left | 07:35 |
| → solydzajs joined | 07:36 |
| ← neunon left | 07:37 |
| ← johnw left | 07:38 |
| → shruggar joined | 07:39 |
| ← eddyp left | 07:46 |
|
Ilari
| Based on Unicode character case conversion routines I once did: There are following three-case codepoints: 454-453-452, 457-456-455, 460-459-458 and 499-498-497. Then there are folowing characters that can result from upper/titlecasing multiple codepoint: 73, 83, 914, 917, 920, 921, 922, 924, 928, 929, 931, 934 and 7776. Then there are characters that result from multiple lowercasings: 105, 107, 229, 952 and 969. | 07:46 |
| ← thiago_home left | 07:47 |
|
Ilari
| Quite fun if you are looking to do case-insensitive string compare. Plus those multi-char cases... | 07:48 |
| → codeshah joined | 07:49 |
| → ceyusa joined | 07:50 |
| ← ashleyw left | 07:51 |
| → psoo joined | 07:53 |
|
Ilari
| I think those routines were based on Unicode 5.0... Updating them to Unicode 5.1 isn't easy as it compresses the tables in some really weird format I would need to figure out first... | 07:54 |
| → tono joined | 07:54 |
| ← ia__ left | 07:54 |
| abstrusething → abstrusething|aw | 07:54 |
| ← psoo left | 07:54 |
| → ia__ joined | 07:55 |
| → psoo joined | 07:56 |
| the_zeno → zeno^^away | 07:58 |
| ← diegoviola left | 07:59 |
| → mtkd joined | 07:59 |
| abstrusething|aw → abstrusething | 08:00 |
| ← mikeando left | 08:01 |
| → ashleyw joined | 08:01 |
| ← jsbmsu left | 08:02 |
| ← sunoano left | 08:04 |
| ← merlin83 left | 08:08 |
| → argonel joined | 08:09 |
| → dwave joined | 08:11 |
| → dwave_ joined | 08:11 |
| ← krawek left | 08:17 |
| → Ogedei joined | 08:18 |
| → MisterN joined | 08:18 |
|
Ogedei
| we have a project with two branches that were both imported from CVS, but when I merge them every change is seen as a conflict, because git doesn't seem to know that the same change is also part of the merged branch | 08:20 |
|
| is there a merge strategy that is the inverse of 'ours'? | 08:21 |
| ← ph^ left | 08:21 |
|
Ogedei
| or, even better, a way to reset the master branch to some other branch that can then safely be pushed to other clones | 08:22 |
| ← Bogh left | 08:23 |
| zeno^^away → the_zeno | 08:24 |
| → merlin83 joined | 08:25 |
| ← dwave left | 08:27 |
| → solitar joined | 08:29 |
| ← peshalto_ left | 08:30 |
| ← sergiodj left | 08:33 |
| → sako joined | 08:35 |
| ← dreiss left | 08:37 |
|
sako
| whats a good ide with git support? i was thinking of using eclipse does it have a good plugin for git? | 08:37 |
| ← codeshah left | 08:37 |
|
un|ogic
| sako: it does, whether it's any good or not I don't know... I use the command line because at least I know what's happening to my repo | 08:38 |
| → intripoon joined | 08:39 |
|
sako
| yea thats true.. prob end up using cli | 08:39 |
|
wshimmy
| sako: IIRC, anjuta just recently got one as well | 08:39 |
|
sako
| unlogic what do you develop? | 08:39 |
| ← m104_ left | 08:43 |
| ← gaveen left | 08:43 |
| → seanius joined | 08:44 |
| → sunoano joined | 08:45 |
|
un|ogic
| sako: what do you mean? language wise? | 08:45 |
|
sako
| yea | 08:46 |
|
un|ogic
| perl, python, php, c++, are the more commong ones | 08:46 |
|
sako
| nice | 08:46 |
|
| same here minus perl | 08:46 |
|
| i gotta pick that up :P | 08:46 |
|
un|ogic
| there's the occassional javascript too.. :P | 08:47 |
|
sako
| what ide do you use? | 08:47 |
|
un|ogic
| vim | 08:47 |
|
doener
| vim | 08:47 |
|
psychoschlumpf
| what command do i need to get the short version of a git release? | 08:47 |
|
| s/release/commit/ | 08:47 |
|
sako
| see the thing is though im working with magentocommerce so the code is in different files.. | 08:47 |
|
un|ogic
| if I'm doing web stuff on a Mac I use Coda... | 08:48 |
|
sako
| eh, i guess i gotta use the plugins for vim ;P | 08:48 |
|
un|ogic
| sako: vim 7.0 has tabs | 08:48 |
|
sako
| i just cant figure out yet how to search in other files | 08:48 |
| ← bobesponja left | 08:48 |
|
un|ogic
| I use grep on the command line :) | 08:48 |
|
doener
| sako: grep? | 08:48 |
|
sako
| oh ya | 08:48 |
|
un|ogic
| is there an echo here? | 08:48 |
|
| :) | 08:49 |
|
doener
| sako: git grep is pretty powerful, and you can make vim use that for its grep support | 08:49 |
|
sako
| nice | 08:49 |
|
| you guys have any other recommendations for vim plugins | 08:49 |
|
un|ogic
| don't use any myself... | 08:49 |
|
doener
| sako: http://git.pastebin.com/m7ac1ca04 -- stolen from someone from vim.org ;-) | 08:50 |
|
psychoschlumpf
| how do i get the short (32bit) name of a git commit? | 08:50 |
|
sako
| what does that do? | 08:51 |
|
doener
| psychoschlumpf: it's not necessarily 32bit, but just a unique prefix. I usually just copy/paste the for few characters of the object name | 08:51 |
| ← patmaddox left | 08:51 |
|
doener
| psychoschlumpf: "git rev-parse --short $commit" would also produce that | 08:52 |
|
| psychoschlumpf: or use e.g. --abbrev-commit with "git log" to make it show the short version | 08:52 |
|
psychoschlumpf
| okay | 08:52 |
|
| thanks | 08:53 |
|
doener
| sako: allows you to type e.g. ":G foobar" to use git grep to search for foobar | 08:53 |
| → SRabbelier joined | 08:53 |
|
doener
| sako: the results will be available in vim's quickfix buffer (:cl, :cn, :cp, ...) | 08:53 |
| → fluxusps joined | 08:54 |
| ← fluxusps left | 08:54 |
|
doener
| sako: for C/C++, I _really_ like using cscope and its vim support | 08:54 |
|
psychoschlumpf
| doener: is there a way to get the short-version of the last commit? | 08:55 |
| → Grahack joined | 08:56 |
|
doener
| psychoschlumpf: define "last commit", chronologically? On some branch? The checked out commit is always reachable through HEAD, so that would be e.g. "git rev-parse --short HEAD" | 08:56 |
|
psychoschlumpf
| ah thanks :-) | 08:57 |
|
| yeah, i meant HEAD | 08:57 |
| ← Weaselweb left | 09:00 |
|
sako
| hmmm | 09:00 |
|
| well eclipse is taking forever to install | 09:00 |
|
| and pdt | 09:00 |
|
| do you guys use any debuggers | 09:00 |
| → Anantvijay joined | 09:00 |
|
sako
| for php? i know gdb is nice for c | 09:00 |
|
wshimmy
| doener: that vim snippet is AWESOME | 09:02 |
|
| muchos gracias | 09:02 |
| dedmajor → dedm | 09:02 |
|
doener
| sako: xdebug looks quite ok, though I used the debugging support only once, I usually just stick to using my brain ;-) | 09:02 |
|
sako
| ya | 09:03 |
|
| not really necessary | 09:03 |
|
doener
| sako: http://www.xdebug.org/ | 09:03 |
| dedm → dedmajor | 09:03 |
|
doener
| sako: the profiling support is quite nice though | 09:03 |
| ← angerman left | 09:03 |
| → Radar joined | 09:05 |
| → tchan1 joined | 09:06 |
| ← tchan left | 09:09 |
| → seb42 joined | 09:13 |
| ← mtkd left | 09:13 |
| ← Arafangion left | 09:13 |
| → Arafangion joined | 09:13 |
| ← solydzajs left | 09:15 |
| → seb42_ joined | 09:17 |
| ← fujin left | 09:19 |
| ← cilly left | 09:20 |
| ← KiBi left | 09:20 |
| → fujin joined | 09:20 |
| ← seb42_ left | 09:24 |
| → __iron joined | 09:24 |
| → peshalto joined | 09:25 |
| sdiz → sdiz-afk | 09:27 |
| → gitte joined | 09:29 |
|
shruggar
| what is the best way to determine whether dangling blobs/commits should be removed, and to remove those which should? | 09:32 |
| ← kn1ttl left | 09:33 |
| → cilly joined | 09:36 |
| ← gilimanjaro left | 09:38 |
|
gitte
| shruggar: you should not determine that yourself, but run "git gc" every once in a while. | 09:39 |
| → kraymer_ joined | 09:39 |
|
shruggar
| gitte: I just did, but there are a lot of dangling commits and blobs, with no explanation of where they come from :/ | 09:41 |
| → jaeckel joined | 09:42 |
| ← sako left | 09:43 |
| → JNRowe joined | 09:43 |
| ← kraymer left | 09:47 |
|
doener
| shruggar: dangling blobs are trivial to get. Just do "edit foo; git add foo; edit foo; git add foo" | 09:47 |
|
gitte
| shruggar: it is a safety valve that "git gc" does not remove dangling blobs right away. | 09:47 |
|
doener
| shruggar: each "git add" might have created a blob, the first one will not be referenced by anything | 09:47 |
|
gitte
| shruggar: and continuing in the line of what doener said, some "dangling" blobs will become "undangling" when you call "git commit". | 09:48 |
|
| doener: there are other sources of dangling blobs, too: merge conflicts, stashes, deleted branches... | 09:48 |
|
doener
| gitte: sure, just wanted to give a trivial exmaple | 09:48 |
|
| s/maple/ample/ | 09:49 |
|
| gitte: regarding "git commit", at least fsck treats blobs referenced by the index as non-dangling. In which case does "git commit" turn blobs to non-dangling? | 09:49 |
| ← Grahack left | 09:50 |
| → jfkw joined | 09:50 |
| → mtkd joined | 09:50 |
| → j416 joined | 09:52 |
| ← jaeckel left | 09:52 |
| → jaeckel joined | 09:53 |
| ← mc_plectrum left | 09:53 |
|
Ilari
| Committing alternate index? | 09:53 |
|
doener
| ah yeah, that'd work, when fsck and commit operate on different things | 09:54 |
| ← jaeckel left | 09:55 |
| → jaeckel joined | 09:55 |
| → dwt joined | 09:56 |
|
dwt
| Hi there! Is there a german support channel available for git? | 09:56 |
|
rio
| i'd learn english ;) | 09:57 |
|
dwt
| Yeah well... I had a small hope that I could explain my problems there in more detail | 09:58 |
|
Ilari
| dwt: Well, why not just try to describe those problems here (in english)? | 10:00 |
|
dwt
| Ah well. I'll have a go at it | 10:00 |
|
| This is the thing. I'm trying to contribute to an open source project (cappuccino) | 10:01 |
|
| all the wile trying to synchronize our internal workflow with svn with that | 10:01 |
|
| and having an easy time merging if possible | 10:01 |
|
| so - there is the cappuccino repo (git) with some patches that are not in yet | 10:01 |
|
| I tried just commiting them in git, but got a hell of a bad experience merging chagnes from upstream | 10:02 |
|
| so I just switched to using mercurial queues to manage them | 10:02 |
|
| now the merging is easy - but the cappuccino guys want git commits on github. :/ | 10:02 |
|
Ilari
| dwt: Can't Hg export the branch as patches? | 10:03 |
|
dwt
| yes it does - converting them would not be so hard | 10:03 |
|
doener
| isn't that queues stuff like using rebase -i or stgit or so? | 10:03 |
|
gitte
| doener: you're correct... I was wrong. Well, actually, I was right, but that stopped a long time ago. | 10:03 |
|
dwt
| more like stgit actually | 10:04 |
| ← abstrusething left | 10:04 |
|
dwt
| but trying stgit I killed my repository thrice already | 10:04 |
|
| so I'd like to avoid it if possible | 10:04 |
|
| so the original problem is this: I want to get clean patches - yet I do have to do incremental development as I'm not perfect | 10:05 |
|
| the first workflow that I found that might support this | 10:05 |
|
| was to create branches for each patch | 10:05 |
|
| but | 10:05 |
|
| how do I make sure there is one branch (master?) that integrates them all | 10:05 |
|
| so I can provide that to other people in my company | 10:05 |
|
Ilari
| dwt: Stgit was mostly from time before Git version 1.5.3... | 10:06 |
|
doener
| gitte: heh, good old "historical knowledge". Even I start to get affected by outdated knowledge, and you certainly know a lot more about the old behaviour of git | 10:06 |
|
Ilari
| dwt: It can do some extra stuff, but 1.5.3 introduced interactive rebase. | 10:06 |
|
dwt
| Well. I tried that actually | 10:06 |
|
| its actually not as bad as it looks at first hand | 10:07 |
|
| but still | 10:07 |
|
doener
| dwt: your use case sounds a bit like what I've heard about topgit, but I've never used it | 10:07 |
|
dwt
| :-/ I had a look at that | 10:07 |
|
| it looks _really_ complicated | 10:07 |
|
| and I fear that it repeats my experience with stgit - that is that I can't mix commands to the two tools | 10:08 |
|
| or else I will kill my repository again (to a state where it's easier to just re-check-out than repair) | 10:08 |
| ← wagle left | 10:08 |
| ← jed left | 10:09 |
| ← JNRowe left | 10:10 |
| ← j416 left | 10:11 |
|
dwt
| So on the one hand I understand that the cappuccino people want github commit urls to merge from | 10:11 |
|
| but on the other I totally don't get how I can provide that with very small overhead | 10:12 |
|
| (something that is comparable to hg queues) | 10:12 |
|
| and not a safety disaster like stgit. :/ | 10:12 |
|
| I mean, I must be missing something | 10:12 |
| → savonarola joined | 10:13 |
|
doener
| well, I'm pretty happy with rebase -i, but your "downstream" needs to be aware that you rewrite history | 10:13 |
| ← savonarola left | 10:13 |
|
dwt
| well - since I will be pushing my changes to github regularly for other people to check out and try | 10:13 |
|
| thats pretty much out of the question, right? | 10:14 |
| → ignas joined | 10:14 |
|
doener
| dwt: git.git's next and pu branches are also regularly rewritten. Users of those branches now that and deal with it | 10:15 |
| → solydzajs joined | 10:16 |
| → ntoll joined | 10:16 |
|
dwt
| hm. so how does this help me keep patches in development seperated | 10:17 |
| ← psankar left | 10:20 |
|
dwt
| still - regularly rebasing also means that I can't provide stable commit-urls in github for bugreports | 10:21 |
| ← przemoc left | 10:22 |
| → bcarlyon|laptop joined | 10:23 |
|
gitte
| doener: it's a curse. | 10:25 |
| ← hyperair left | 10:31 |
| → Octalot joined | 10:33 |
| ← Radar left | 10:34 |
| ← ciskje left | 10:34 |
| → Radar joined | 10:34 |
|
dwt
| so, to summarize my thinking about this: really developing patches in parallel (no dependency usually) is really, really hard with git | 10:35 |
|
| so I'm going with just commiting everything to my mainline | 10:35 |
|
| which makes it really easy for me | 10:35 |
|
| but (probably?) much harder for upstream to integrate again | 10:35 |
|
| and also my history isn't pretty | 10:35 |
|
| but - who cares | 10:35 |
| → parasti joined | 10:36 |
|
dwt
| right? | 10:36 |
|
doener
| dwt: one branch per patch (series), use rebase -i to keep those clean, have one or more integration branches that merge the individual topic branches together | 10:36 |
|
| dwt: that's how I would do it | 10:37 |
|
| dwt: the integration branches are recreated from scratch for each new "release" | 10:37 |
| ← peshalto left | 10:37 |
| ← EgS left | 10:37 |
| → EgS joined | 10:38 |
|
dwt
| but this is one hell of an overhead | 10:40 |
|
| and I still don't have real nice commit urls | 10:40 |
|
| that stay | 10:40 |
|
| well... I could push all the branches and refer upstream to their tip | 10:41 |
|
| except that they don't want branches. | 10:41 |
|
| Argh | 10:41 |
|
| and I have to update them all individually, rebase them, deal with keeping track of 10 or so branches | 10:42 |
| → jrmuizel joined | 10:42 |
|
dwt
| and merge them continually to my integration branch | 10:42 |
|
gitte
| doener: FWIW I found Peff's script: http://article.gmane.org/gmane.comp.version-control.git/99278 | 10:42 |
| → Ryback_ joined | 10:42 |
| → countd joined | 10:48 |
| ← Radar left | 10:50 |
| → gaveen joined | 10:51 |
|
dwt
| ah well, thanks for you guys trying to help me | 10:52 |
|
| good buy | 10:52 |
| ← dwt left | 10:52 |
| → ciskje joined | 10:53 |
| ← mtkd left | 10:54 |
| → tono_ joined | 10:54 |
| → wagle joined | 10:55 |
| → psankar joined | 10:55 |
| → drewr joined | 10:56 |
| → dwave joined | 10:56 |
| → hyperair joined | 10:57 |
| → remo joined | 11:02 |
| ← remo left | 11:03 |
| → tono__ joined | 11:05 |
| ← tono left | 11:05 |
| → naeu joined | 11:06 |
| ← cilly left | 11:07 |
| → cilly joined | 11:08 |
| ← scientes left | 11:09 |
| ← dwave_ left | 11:11 |
| ← tal67 left | 11:12 |
| → javatexan joined | 11:18 |
|
Anantvijay
| hi.. i'm getting an error when i run "sudo -u user git-daemon --base-path=/home/user/repositories/ --export-all". Error - "fatal: unable to allocate any listen sockets on host (null) port 9418" | 11:18 |
|
| has any one experienced the same | 11:19 |
|
| pls anyone help me debug the issue :( | 11:20 |
| ← tono_ left | 11:23 |
|
drizzd
| Anantvijay: ps ax | grep '[g]it-daemon' | 11:25 |
|
| Anantvijay: also, lsof -i -n | grep git | 11:26 |
| → cytrinox joined | 11:28 |
| ← _Vi left | 11:30 |
| ← Ogedei left | 11:32 |
| → kn1ttl joined | 11:34 |
| → cryo_ joined | 11:35 |
| ← dodo_the_last1 left | 11:35 |
| → dodo_the_last joined | 11:35 |
| ← jrmuizel left | 11:36 |
| ← Anantvijay left | 11:36 |
| → Anantvijay joined | 11:38 |
|
Anantvijay
| http://www.mibbit.com/pb/m7T3FO | 11:39 |
|
| sorry my connection got closed automatically | 11:39 |
|
Grum
| you already have a git-daemon running | 11:41 |
|
| which binds to the same port | 11:41 |
|
| so the error is completely as it should | 11:41 |
|
FreakGuard
| I'm picking a bunch of commits form another fork at github.com - cherry-pick is the tool to use? | 11:41 |
|
Ilari
| Anantvijay: Based on command line, it seems to use base path '/pub/gittrees'. | 11:41 |
|
| FreakGuard: Or if the extra commits form a branch, you could also merge. | 11:42 |
|
FreakGuard
| Ilari: not all commits ;) | 11:42 |
|
bremner
| FreakGuard: you could use rebase --interactive on the branch and then merge. not sure what is easier | 11:44 |
| → craigp123 joined | 11:44 |
|
bremner
| or there is some way to do it directly with rebase | 11:44 |
|
craigp123
| hi all | 11:44 |
|
| how can i delete old files from the repo history? | 11:45 |
|
| i have a bunch of crap that got committed, no longer required, but making the repo size huge | 11:45 |
| → grc joined | 11:45 |
|
MisterN
| craigp123: git rebase --interactive might help you | 11:46 |
|
craigp123
| thanks mate, will give it a try | 11:47 |
|
Anantvijay
| grum, llari: thanks for the responses | 11:47 |
|
FreakGuard
| bremner: well, cherry-pick then ;) | 11:47 |
|
grc
| git novice doing somethig silly here: git clone ssh://10.44.12.2/home/grc/orgfiles | 11:47 |
|
| Initialized empty Git repository in /home/grc/orgfiles/.git/ | 11:47 |
|
| [email@hidden.address] password: | 11:47 |
|
| remote: Counting objects: 6, done. | 11:47 |
|
| remote: Compressing objects: 50% (3/6) | 11:47 |
|
| hangs at compressing objects. any suggestions? | 11:48 |
|
MisterN
| grc: wait a little. | 11:48 |
|
grc
| MisterN: sure | 11:49 |
|
MisterN
| grc: not for me! for git... it might just be slow | 11:49 |
| → mithro joined | 11:50 |
|
grc
| ah! | 11:50 |
| → struberg joined | 11:52 |
| ← grc left | 11:53 |
| ← girishr left | 11:54 |
| → mbroeker joined | 11:55 |
|
Arafangion
| Hey, suppose I have a repository, how do I "push" it to a bare, just-initialized git repository on a remote server? (local is the msysgit version, server is a bare repo running on linux) | 11:56 |
|
| (I'm expecting a url here, not a dozen lines of irc. :) ) | 11:57 |
| ← cyberglitch left | 11:57 |
| → lorandi joined | 11:58 |
|
Ilari
| Arafangion: push? | 11:58 |
|
Anantvijay
| grum, llari: 'm trying to mirror a reopsitory... how do i export this path "/home/user/repos" on the server | 11:58 |
| ← ashleyw left | 11:58 |
|
Grum
| Anantvijay: euuh? why do you feel that you need to do that? | 11:58 |
|
Arafangion
| Ilari: To a bare repository that does not yet have an initial commit? | 11:58 |
|
Grum
| Arafangion: yes | 11:59 |
| → tal67 joined | 11:59 |
|
Grum
| unless you are using a *REALLY* old git ... you can | 11:59 |
|
Arafangion
| Aren't there some subtle things to keep in mind with the first commit? | 11:59 |
|
| Grum: How old is "really old"? | 11:59 |
|
struberg
| 0.99 ;) | 11:59 |
|
Grum
| Arafangion: latest version will do | 11:59 |
|
| and no, you dont have to keep anything in mind for the first commit | 12:00 |
|
craigp123
| hmm, git rebase --interactive does nothing... | 12:00 |
|
Anantvijay
| grum: its basically setting up a local repo for android... so i dont want to download 2.1gb everytime i want to clone | 12:00 |
|
craigp123
| stupid repo is 300mb, need to get rid of a bunch of documents that were committed to it | 12:00 |
|
| think i will just recreate it | 12:00 |
| → cannonball joined | 12:01 |
|
struberg
| Arafangion: git-push ssh://youruser@yourserver.com/yourdirectory/gitrepo.git or something | 12:01 |
|
| or if you have it locally, then simply file:///yourdir... | 12:01 |
| → jrmuizel joined | 12:01 |
|
Arafangion
| struberg: Nice. :) | 12:03 |
|
MisterN
| struberg: the dashed form is deprecated, isn't it? :) | 12:04 |
|
Arafangion
| MisterN: Definetly. :) | 12:04 |
|
struberg
| yup, but I'm used to it ;) | 12:04 |
|
| and it's neat because you easily can man git-push with the dashed for | 12:05 |
|
Gitbot
| struberg: the git-push manpage can be found at http://git.or.cz/man/git-push | 12:05 |
|
MisterN
| struberg: i just use git help push | 12:05 |
|
| - which calls man git-push | 12:05 |
|
Gitbot
| MisterN: the git-push manpage can be found at http://git.or.cz/man/git-push | 12:05 |
|
Arafangion
| MisterN: But that's one extra letter! | 12:05 |
|
struberg
| ah this is so svn like ;P | 12:05 |
|
Grum
| AAAAAAAAARGH!!! | 12:06 |
|
MisterN
| Arafangion: you can change git's autocompletion to include help in the list of autocompleted commands | 12:06 |
|
| Arafangion: then it's the same number of letters | 12:06 |
|
| actually one less | 12:06 |
| ← mbroeker left | 12:06 |
| → gaveen_ joined | 12:06 |
|
Arafangion
| MisterN: I think that'd become /way/ too slow on windows. | 12:06 |
|
Grum
| i push/clone from: git:projectname | 12:06 |
|
bpalmer
| alias gh="git help" | 12:07 |
|
Grum
| just set it up properly and there is no problem :p | 12:07 |
|
MisterN
| Arafangion: on windows i don't typically have man either | 12:07 |
|
struberg
| I think we start going OT? ;) | 12:07 |
| ← jrmuizel left | 12:07 |
|
MisterN
| bpalmer: that's even better:) | 12:07 |
|
Arafangion
| MisterN: msysgit has html help pages, which are pretty good. | 12:07 |
|
MisterN
| Arafangion: you mean those you can open with git help -w push? | 12:07 |
| ← ankit9 left | 12:08 |
|
Grum
| git help on windows opens the html page in your default browser | 12:08 |
|
Arafangion
| Indeed. | 12:09 |
| ← orafu left | 12:09 |
|
MisterN
| ah, so they have help.format=web by default | 12:09 |
| → orafu joined | 12:10 |
|
Arafangion
| THe latest git seems to be 1.6.3. (on windows) | 12:10 |
| → mbroeker joined | 12:12 |
| ← cilly left | 12:13 |
| → stuffcor1se joined | 12:13 |
|
MisterN
| Arafangion: don't say anyone but i still use 1.5.4.3 :D | 12:13 |
| → cilly joined | 12:13 |
|
Arafangion
| MisterN: That's the one that's in Debian Stable, isn't it? :) | 12:13 |
|
MisterN
| Arafangion: ubuntu 8.04, actually | 12:13 |
|
Arafangion
| (The best distro ever) | 12:13 |
| ← stuffcorpse left | 12:13 |
|
Arafangion
| MisterN: Haven't upgraded yet, I see. | 12:14 |
|
| MisterN: When you do, I strongly advise you to back up everything first, as Ubuntu's not as good at managing an upgrade as Debian is. | 12:14 |
|
MisterN
| Arafangion: i'm a bit wary of upgrading. | 12:14 |
|
| yeah for that reason... | 12:14 |
|
| maybe it's actually better to do a fresh install | 12:14 |
|
Arafangion
| MisterN: I'm inclined to agree, for Ubuntu. It's stupid, but that's how it is. | 12:15 |
| → ashleyw joined | 12:15 |
| → UUncia joined | 12:15 |
|
Arafangion
| We're OT, anyway. | 12:15 |
| → davidroderick joined | 12:15 |
|
MisterN
| well, slightly. it's about why i still use an old git | 12:15 |
|
Arafangion
| So... For git 1.6.3... Can one just push to a freshly initialised bare git repository, or does one have to keep certain things in mind? | 12:16 |
|
| MisterN: git's actually insanely easy to compile yourself. | 12:16 |
|
MisterN
| Arafangion: well... i haven't felt the need to really upgrade git. 1.5.4.3 works like a charm | 12:17 |
|
| it lacks git log --graph, sure... and some other things | 12:17 |
| → jed joined | 12:17 |
|
Arafangion
| MisterN: On windows one tends to stay on the edge, simply because there's alot of noticible improvements. | 12:17 |
| ← orafu left | 12:17 |
| ← gaveen left | 12:17 |
|
Arafangion
| MisterN: For instance, the latest version supports repos of size greater than 2GB. (total). | 12:18 |
|
MisterN
| Arafangion: on ubuntu, my biggest problem is that gnome-power-manager crashes about once a day :D | 12:18 |
|
Arafangion
| MisterN: That's Ubuntu for ya. ;) | 12:18 |
|
MisterN
| on windows? | 12:18 |
|
Grum
| Arafangion: euuh why wouldnt it befoer? | 12:18 |
|
Ilari
| Arafangion: Pushing has been the official way to populate bare repositories for a long time... | 12:18 |
|
MisterN
| on linux i suppose big repose were supported before | 12:18 |
| → Laibsch joined | 12:18 |
| ← UUncia left | 12:18 |
|
Ilari
| Arafangion: The 'recent feature' presumably refers to cloning empty repositories. | 12:19 |
| → mobhawk joined | 12:19 |
| → quoin joined | 12:22 |
| ← mbcharbonneau left | 12:22 |
| gaveen_ → gaveen | 12:23 |
| → orafu joined | 12:23 |
| → cmarcelo joined | 12:24 |
|
Arafangion
| Grum: If I recall correctly, it used to barf on account of having a detached or broken HEAD, because it didn't actually point to anything. | 12:24 |
|
| Or somethign. | 12:24 |
| → angerman joined | 12:25 |
| ← angerman left | 12:26 |
| → angerman_ joined | 12:26 |
|
Ilari
| Arafangion: Clone did barf on those (until somewhat recently). | 12:26 |
| → mtkd joined | 12:27 |
| ← craigp123 left | 12:28 |
|
davidroderick
| I have problems with git pull /foo and it says something about altering the config file at destination about branching. I am not using different branches. is there a quick fix? | 12:29 |
|
Ilari
| davidroderick: 'git pull /foo <branch-to-pull>'. | 12:30 |
|
davidroderick
| Ilari: fatal cannot be used without a working tree | 12:31 |
|
Ilari
| davidroderick: Pull invokes merge on local end. And merge requires working tree. | 12:32 |
|
| davidroderick: If you want to copy branches, perhaps look at git fetch? | 12:32 |
| → mfilipe joined | 12:33 |
| → bremner_ joined | 12:36 |
|
davidroderick
| so how do I use git fetch? git fetch /foo achieves nothing | 12:36 |
| → elmex_ joined | 12:36 |
| ← elmex left | 12:36 |
|
Ilari
| davidroderick: 'git fetch /foo remote-branch-name:local-branch-name'. | 12:37 |
|
davidroderick
| I was using git pull until this stopped working | 12:37 |
| elmex_ → elmex | 12:37 |
|
davidroderick
| how do I discover the branch names? | 12:37 |
| → beket joined | 12:38 |
| ← Laibsch left | 12:38 |
|
Ilari
| davidroderick: If there's only one branch, both sides of : are likely 'master'. | 12:38 |
|
davidroderick
| when I do git status is says index file corrupt | 12:38 |
|
beket
| Hi people! I'd like to generate a tar archive of my src tree to send it to a remote machine which doesn't have git installed. What git cmd do I need ? | 12:38 |
|
Ilari
| beket: man git-archive | 12:39 |
|
Gitbot
| beket: the git-archive manpage can be found at http://git.or.cz/man/git-archive | 12:39 |
|
beket
| Thank you Ilari :) | 12:39 |
| → mikl joined | 12:39 |
|
davidroderick
| worked thanks happy joy | 12:39 |
| ← ignas left | 12:39 |
|
Ilari
| davidroderick: Status should complain about no working tree if run in bare repo. | 12:39 |
|
davidroderick
| I am learning. where is the best place to learn other than man pages? | 12:40 |
| → bobmcw joined | 12:41 |
| ← psankar left | 12:41 |
|
Ilari
| davidroderick: There are various guides around the net.. | 12:42 |
| ← [intra]lanman left | 12:42 |
|
davidroderick
| thanks | 12:44 |
| ← kn1ttl left | 12:44 |
| ← davidroderick left | 12:45 |
| → d0k joined | 12:45 |
| ← cryo_ left | 12:45 |
| ← bobmcw left | 12:46 |
| ← cmarcelo left | 12:46 |
| kirillm_ → kirillm | 12:47 |
| → UUncia joined | 12:47 |
| → SteveC_ joined | 12:48 |
| ← amrox left | 12:49 |
| → khmarbaise joined | 12:51 |
| → bx2 joined | 12:59 |
| → gh34 joined | 12:59 |
| → psankar joined | 13:00 |
| ← vmiklos left | 13:00 |
| → vmiklos joined | 13:01 |
| ← UUncia left | 13:02 |
| ← vmiklos left | 13:02 |
| → vmiklos joined | 13:05 |
| → Bass10 joined | 13:06 |
| → edw joined | 13:08 |
| → schweizer_ joined | 13:08 |
|
schweizer_
| salaam | 13:08 |
| → leanucci joined | 13:09 |
| → bobmcw joined | 13:11 |
| → scarabx joined | 13:14 |
| tswicegood → tswicegood-afk | 13:17 |
| → cu3edweb joined | 13:18 |
|
cu3edweb
| I am getting this error? --> ! [rejected] master -> master (non-fast forward) error: failed to push some refs to? | 13:19 |
| → aser joined | 13:19 |
| ← bremner_ left | 13:19 |
|
aser
| can I perform a fully manual merge? i.e. to disable automerging but to run difftool for all files ? | 13:20 |
|
cu3edweb
| I git pushed from one server and I didn't mean to now when I tried to git push from the right one I get that error? | 13:20 |
| dwmw2_gone → dwmw2 | 13:22 |
| → ChrisCauser joined | 13:23 |
| → qrush joined | 13:23 |
| → outworlder joined | 13:26 |
|
outworlder
| so, let's say I git push hundreds of megabytes, for some reason. meanwhile, I have other people pushing changes so that the big push may not be a fast forward. will it always be rejected in that case? | 13:28 |
|
Ilari
| cu3edweb: The 'master' of remote has commits that your 'master' doesn't. | 13:29 |
| → mw___ joined | 13:29 |
| → [intra]lanman joined | 13:29 |
| ← stuffcor1se left | 13:30 |
| → kn1ttl joined | 13:30 |
|
Ilari
| aser: Why you would want that? | 13:30 |
|
| cu3edweb: Maybe fetch that branch and then merge it into local master. | 13:31 |
| → JhonnyCash_ joined | 13:31 |
|
cu3edweb
| Ilari: I got it. I was trying to go back in history or something along those lines. I was able to force my push and correct it | 13:31 |
|
| Thanks | 13:32 |
| ← JhonnyCash_ left | 13:32 |
|
Grum
| cu3edweb: you know that doing a push -f messes it up for every person who has already got the commits you just tossed away? | 13:32 |
|
cu3edweb
| Grum: yes it is my own private repo. No one else is using it. | 13:33 |
| → voker57__ joined | 13:33 |
|
Grum
| then no-one will care =D | 13:33 |
|
cu3edweb
| Thnaks | 13:34 |
| → stuffcorpse joined | 13:34 |
| → bremner_ joined | 13:35 |
| ← flippo left | 13:37 |
| → schacon joined | 13:37 |
| ← scarabx left | 13:37 |
| → przemoc joined | 13:38 |
| ← psankar left | 13:40 |
| ← parasti left | 13:41 |
| ← kraymer_ left | 13:41 |
| ← nickm left | 13:41 |
| ← rio left | 13:41 |
| ← beantmt left | 13:41 |
| ← Kasperle left | 13:41 |
| ← unreal left | 13:41 |
| ← microm left | 13:41 |
| ← uau left | 13:41 |
| ← xblaster left | 13:41 |
| ← context left | 13:41 |
| ← xkr47 left | 13:41 |
| → amrox joined | 13:44 |
| → parasti joined | 13:44 |
| → kraymer_ joined | 13:44 |
| → unreal joined | 13:44 |
| → microm joined | 13:44 |
| → rio joined | 13:44 |
| → xkr47 joined | 13:44 |
| → uau joined | 13:44 |
| → context joined | 13:44 |
| → beantmt joined | 13:44 |
| → nickm joined | 13:44 |
| → xblaster joined | 13:44 |
| → Kasperle joined | 13:44 |
| ← cu3edweb left | 13:45 |
| ← twas__ left | 13:46 |
| ← bwalk|uni left | 13:46 |
| ← voker57_ left | 13:46 |
| → wmoxam joined | 13:47 |
| → bwalk joined | 13:48 |
| bwalk → bwalk|uni | 13:49 |
|
aser
| Ilari: I think I got the answer, merge driver | 13:49 |
| → j416 joined | 13:50 |
| → jrmuizel joined | 13:50 |
| → altrux joined | 13:50 |
| → DavidKlein joined | 13:52 |
| ← bremner_ left | 13:54 |
| ← Leemp left | 13:57 |
| ← Lgb left | 13:59 |
| → Lgb joined | 14:00 |
| → offby1` joined | 14:02 |
| ← aser left | 14:02 |
| → cmarcelo joined | 14:03 |
| ← solydzajs left | 14:07 |
| → ph^ joined | 14:07 |
| → spearce joined | 14:07 |
| → kn1tt1 joined | 14:08 |
| → hpoydar joined | 14:09 |
| ← bx2 left | 14:09 |
| ← agile left | 14:09 |
| ← impulse9 left | 14:10 |
| → hugoxrosa joined | 14:11 |
| → helo joined | 14:11 |
| offby1` → offby1 | 14:11 |
|
helo
| man... that "Git for Computer Scientists" article is the most helpful thing i've read re: git | 14:11 |
|
offby1
| indeed | 14:12 |
|
| it brought enlightenment to me! | 14:12 |
|
| offby1 nods gravely | 14:12 |
| → brett_h joined | 14:12 |
| → kukks joined | 14:13 |
| ← hyperair left | 14:13 |
| → hyperair joined | 14:13 |
| ← johan-s left | 14:14 |
| ← schacon left | 14:14 |
| ← rjc left | 14:15 |
| → rjc joined | 14:15 |
| → ankit9 joined | 14:15 |
| → alezandro joined | 14:15 |
| tswicegood-afk → tswicegood | 14:15 |
| will__ → throughnothing | 14:19 |
| ← rjc left | 14:19 |
| ← kn1ttl left | 14:19 |
| → sakyamuni joined | 14:21 |
| ← beket left | 14:21 |
| ← j416 left | 14:22 |
|
csgeek
| how would I generate a patch of the between HEAD and the previous commit | 14:24 |
|
drizzd
| git format-patch HEAD~ | 14:25 |
|
offby1
| git show | 14:25 |
|
csgeek
| btw.. I saw HEAD before.. what does the ~ mean? | 14:26 |
|
drizzd
| previous commit | 14:26 |
|
| or parent in git terms | 14:26 |
| ← nick_h left | 14:26 |
| → rylar joined | 14:27 |
| → mozinator joined | 14:27 |
|
mozinator
| hi all, got just 1 thing to say, THANKS GIT ! you saved me sooo much time | 14:27 |
|
Anantvijay
| how to share a git repo locally.. so tat others can clone fom it? | 14:28 |
|
psychoschlumpf
| is there a plan to add gpg signed commits/signed-by commits to git? | 14:28 |
| → bcardarella joined | 14:29 |
|
offby1
| mozinator: aw, shucks | 14:30 |
| → hydrogen joined | 14:31 |
|
hydrogen
| fatal: object 5ebc2873b7e90cec7d71b6659d9d271ec6a9fccd is corrupted | 14:32 |
|
| how do I uncorrupt it :) | 14:32 |
|
offby1
| a retreat to the lake, with other cleancut youths? | 14:33 |
|
hydrogen
| tried that | 14:33 |
|
| michael jackson wanted to come along though, so I think it only made it worse :( | 14:33 |
|
offby1
| no kidding | 14:34 |
|
| seriously, I am sure there's an example of this sort of thing somewhere in the docs, but I can't find it | 14:35 |
| → patrikf joined | 14:35 |
|
Anantvijay
| how to share a git repo locally.. so tat others can clone from it... has anyone tried this out??? | 14:35 |
|
offby1
| Anantvijay: by "locally", do you mean that all the others use the same multi-user computer? | 14:36 |
|
| hydrogen looks at thiago, who knows everything, and wonders if he knows this | 14:36 |
| ← PupenoG left | 14:36 |
|
offby1
| usually doener or Ilari pipes up around now | 14:37 |
|
| must be asleep, or clueless | 14:37 |
|
| hydrogen: my best advice is: see http://git.or.cz/gitwiki/GitFaq, and search for "How to fix a broken repository", about 60% of the way down | 14:39 |
| → rjc joined | 14:40 |
|
mbroeker
| Anantvijay, take a look at the git-init manpage, exspecially --shared option | 14:40 |
| → nick_h joined | 14:41 |
|
mbroeker
| the rest is easy: git clone /var/lib/git/test.git and everybody can push and pull from the local bare repo... | 14:42 |
| → agile joined | 14:42 |
| ← solitar left | 14:42 |
|
doener
| offby1: you gave the answer, nothing left for me to do ;-) | 14:43 |
|
bentob0x
| how do you 'clone' a repository with a local copy of _all_ the repository's remote branches? | 14:44 |
|
| in one go | 14:44 |
|
| git pull-it-all style | 14:44 |
|
Weiss
| what you really mean is, "how do you automatically create a local branch tracking every remote branch"? | 14:45 |
|
doener
| bentob0x: _pull_-it-all? Merge it all to the checked out branch? ;-) | 14:45 |
| ← ashleyw left | 14:45 |
|
Weiss
| nastiness: something like: cp .git/refs/remotes/origin/* .git/refs/heads/ ? | 14:45 |
|
bentob0x
| yes Weiss but having the luxury to do a full pull (meaning, with all the branches) in one go | 14:45 |
|
doener
| bentob0x: maybe give an example of the refs the existing repo has, and which branches you expect to exist in the "clone" | 14:46 |
|
offby1
| doener: watch your back; I'll be stealing your wife, car, dog, and house next | 14:46 |
| → peshalto joined | 14:46 |
|
doener
| offby1: I guess you're done then, I have none of these | 14:47 |
| → Sho_ joined | 14:47 |
|
bentob0x
| repo: master, dev, live, branch-test-controller and locally: master with refs on origin/dev, origin/live and origin/branch-test-controller | 14:47 |
|
offby1
| doener: nuts, someone got there before me | 14:47 |
|
bentob0x
| but the repo will be deleted all together | 14:47 |
|
offby1
| and no thanks, I don't want your cat | 14:47 |
| → Yuuhi joined | 14:47 |
|
bentob0x
| so I want to make sure I have it all locally | 14:47 |
| → bhearsum joined | 14:47 |
| ← nick_h left | 14:47 |
|
bhearsum
| i'm coming from lots of Mercurial experience and looking to use git - can anyone recommend good documentation for me? | 14:48 |
| → nick_h joined | 14:48 |
|
doener
| bentob0x: master, dev, live and branch-test-controller look like branch heads, you were talking about "the repository's remote branches" (which I assumed to mean remote tracking branches) | 14:48 |
|
| bentob0x: and "master with refs on ..." makes no sense to me | 14:48 |
|
bentob0x
| ok, I'll explain differently | 14:49 |
| → bx2 joined | 14:49 |
|
bentob0x
| I want to delete a repository on github to replace with a new one | 14:49 |
|
| I just want to make sure I have it all locally before I delete the repository | 14:49 |
|
doener
| bentob0x: git clone --mirror? | 14:49 |
|
bentob0x
| ahaaaaaaaaaa | 14:50 |
|
| let me man that | 14:50 |
| → mbcharbonneau joined | 14:50 |
|
offby1
| bhearsum: the problem with git is that there's _too much_ documentation. I'm semi-serious. Anyway, start at git-scm.com | 14:52 |
|
bhearsum
| hah | 14:52 |
|
offby1
| bhearsum: also a bunch of us swear that "git for computer scientists" is the best thing we've ever read about it | 14:52 |
|
bhearsum
| i'll check it out - thanks! | 14:52 |
| → johan-s joined | 14:55 |
| → solydzajs joined | 14:56 |
| → mbcharbonneau_ joined | 14:59 |
|
Anantvijay
| offby1: one desktop machine(say mach1) will clone from the main android repo. All other members will clone from this desktop machine(mach1). | 15:00 |
|
| offby1: so any special setup needed for this? | 15:01 |
| ← mbcharbonneau_ left | 15:02 |
| → bdiego joined | 15:03 |
| ← sakyamuni left | 15:03 |
|
jdahm
| bhearsum: it's not _just_ for computer scientists, I find it easy to use, and it's good for most coding projects | 15:03 |
| ← peshalto left | 15:03 |
| → _dave_h_d joined | 15:04 |
|
offby1
| Anantvijay: certainly nothing _special_; your situation sounds typical | 15:05 |
| ← rjc left | 15:05 |
|
_dave_h_d
| right i did a git pull and there are a lot of conflicts, now i know the stuff i am pulling is the right stuff and i want the pull to use those files, how do i do it? | 15:05 |
|
| i have already done a pull and the conflicts are there | 15:05 |
|
eb_
| you have local changes? | 15:06 |
|
_dave_h_d
| had some local changes which i comitted and did not push | 15:06 |
|
| but i don't need them | 15:06 |
|
offby1
| sounds like "git reset --hard origin" | 15:06 |
|
Anantvijay
| offby1: any pointers on how to setup?? | 15:07 |
|
eb_
| yea, reset, then properly track the remote branch, and pull again | 15:07 |
| ← bx2 left | 15:07 |
|
countd
| how come git appears to insist on add a symlinked directory that is in gitignore - is there some way to stop this? | 15:08 |
| → ceyusa_ joined | 15:09 |
| ← mbcharbonneau left | 15:09 |
| ← solydzajs left | 15:09 |
| ← arohner left | 15:09 |
| → rjc joined | 15:10 |
| ← hyperair left | 15:11 |
|
bentob0x
| doener: that did it thx | 15:11 |
|
| so it is simple a perfect copy of the remote repository? | 15:11 |
|
| *simply | 15:11 |
|
patrikf
| countd: what does the gitignore entry look like? | 15:11 |
| → hyperair joined | 15:12 |
|
countd
| patrikf: various attempts include /images images images/ images/* | 15:13 |
|
| patrikf: can't really seem to nail the correct syntax! | 15:13 |
|
patrikf
| countd: it should just be "images" | 15:14 |
|
| (read man gitignore) | 15:14 |
|
Gitbot
| patrikf: the gitignore manpage can be found at http://git.or.cz/man/gitignore | 15:14 |
|
countd
| patrikf: thanks i will retry | 15:14 |
| ← ceyusa left | 15:15 |
|
countd
| patrikf: i was just worried that a symlink was the issue - didn't get much on that from googling about | 15:15 |
|
patrikf
| well, ignoring a symlink works fine for me here | 15:16 |
|
offby1
| Anantvijay: all the docs are at git-scm.com | 15:16 |
| → ceyusa joined | 15:16 |
|
straszheim
| doener: thanks for that example | 15:17 |
| → jwshen joined | 15:17 |
|
straszheim
| i'm curious about | 15:17 |
|
| git rev-list --objects --all | egrep '.{42}' | cut -d' ' -f2 | sort | uniq | egrep "(^$1|/$1)$" | 15:17 |
|
| why the egrep '.{42}' ? | 15:18 |
| → ceej joined | 15:18 |
|
countd
| patrikf: yes - it appears to work fine - thank you :) | 15:19 |
|
bleything
| straszheim: it filters out lines that are only the hash. | 15:20 |
|
doener
| straszheim: in case that you have weird files with 40 character hash name | 15:21 |
|
| s | 15:21 |
| → wycats joined | 15:21 |
|
bleything
| straszheim: run just the rev-list command and you'll see some entries that don't have filenames, the egrep will filter those out | 15:21 |
|
doener
| straszheim: though the script probably already fails for filenames with spaces or characters that have a special meaning for egrap | 15:22 |
| ← jony left | 15:23 |
| → rjc_ joined | 15:23 |
| ← rjc left | 15:23 |
|
doener
| straszheim: and seeing the --all there, this might be a bit faster, limiting that rev-list to the interesting commits: http://git.pastebin.com/m6ac5747e | 15:24 |
|
straszheim
| oh duh | 15:24 |
| → peshalto joined | 15:25 |
| ← ph^ left | 15:25 |
|
doener
| saves 10% (0.6s) for my test case here | 15:25 |
|
| straszheim boots up his brain | 15:25 |
|
doener
| well, that --all was my fault ;-) | 15:25 |
| ← dwave left | 15:25 |
|
straszheim
| i was spacing out... i thought the .{42} was looking for some magic pattern in the hashes :/ | 15:26 |
|
helo
| how often does code merge cleanly, but function incorrectly? | 15:27 |
|
doener
| helo: you mean no textual conflicts, but the result is crap anyway? | 15:27 |
|
helo
| yeah | 15:27 |
|
| unit testing ftw i guess... | 15:28 |
|
doener
| depends a lot on the code base, it's dependencies, how many people work on the same stuff, etc. | 15:28 |
| → aziz joined | 15:28 |
|
doener
| s/it's/its/ | 15:28 |
|
psychoschlumpf
| helo: merge, run testsuite, fix | 15:28 |
|
doener
| If you want some useless data point: I've encountered three such broken merges in the last year | 15:29 |
|
| and about a dozen or more broken merges broken due to manual merging with svn... | 15:29 |
| ← ceyusa_ left | 15:31 |
| → cemerick joined | 15:35 |
| → releod joined | 15:36 |
| → aspotashev_ joined | 15:37 |
| → dwave joined | 15:38 |
| → hobodave joined | 15:42 |
| ← psychoschlumpf left | 15:44 |
| ← struberg left | 15:45 |
| ← khmarbaise left | 15:47 |
| → nbrunson joined | 15:48 |
|
jdahm
| can anyone help me with gitweb? I have the css file in the right place but it's not showing any text formatting on the page, and furthermore, it's calling gitweb.css a directory and trying to find files within it | 15:48 |
|
drizzd
| sounds like a webserver problem, not a gitweb problem | 15:50 |
| → corybantic joined | 15:51 |
| → markelikalderon joined | 15:51 |
|
FreakGuard
| how to add a remote branch? | 15:52 |
| ← aspotashev left | 15:52 |
|
drizzd
| git fetch <remote> refs/heads/<branch>:refs/remotes/<remote>/<branch>; or just git remote add <name> <remote>; git remote update; | 15:53 |
| ← psoo left | 15:53 |
| → dodo_the_last1 joined | 15:54 |
| ← dodo_the_last left | 15:54 |
| ← giallu left | 15:56 |
| → Necker joined | 15:57 |
| → tw123 joined | 15:58 |
| ← markelikalderon left | 15:59 |
| ← gitte left | 15:59 |
| jefftriplett → jefftriplett-afk | 16:00 |
| → kuadrosx joined | 16:00 |
| ← mikl left | 16:01 |
|
straszheim
| from the log format docs: | 16:03 |
|
tw123
| I'm trying to print a log message from a commit using " git log .. --pretty=tformat:%s". My problem is that the %s seems to be stripping the newlines that were in my message. I can't see any other format operator that lets me print the newlines that were in the message! (I know I can use medium or whatever, but I want it formattted). Is there a way to do this? A related question: what %b (as opposed to %s) and what's the difference between " | 16:03 |
|
straszheim
| o %cd: committer date | 16:03 |
| ← csgeek left | 16:03 |
|
straszheim
| o %ad: author date | 16:03 |
| → RayMorgan joined | 16:04 |
| ← GyrosGeier left | 16:04 |
|
straszheim
| these timestamps always appear to be the same... what's the difference? | 16:04 |
|
drizzd
| tw123: %n | 16:04 |
|
tw123
| drizzd: in the middle of the contents of a log message?? | 16:05 |
|
| %s%n puts a newline after the message | 16:05 |
|
| (and puts the original message that hd newlines on one line! :( ) | 16:06 |
|
doener
| straszheim: when you do the editing and the commit yourself, they'll be the same, initially. | 16:06 |
|
drizzd
| tw123: %s is just the first line, it has only one newline | 16:06 |
|
doener
| straszheim: but e.g. commit --amend may change the commit time, but not the author time | 16:06 |
| → drd20 joined | 16:06 |
|
straszheim
| ah so. okay thanks. | 16:07 |
|
doener
| straszheim: and when you get a patch via email and apply that with "git am", the author time is taken from the email, but the commit time is $now | 16:07 |
|
tw123
| drizzd: that's not what I'm seeing! | 16:07 |
|
drizzd
| tw123: %b is the body of the message (everything except the first line) | 16:07 |
|
straszheim
| okay, that makes sense | 16:07 |
| ← lohrun left | 16:07 |
|
tw123
| Hmm. I'm seeing %s as the whole thing..maybe for some reason it's not finding the newlines in my message (but medium prints it with newlines..confusing!) | 16:08 |
| ← Modius left | 16:08 |
|
drizzd
| tw123: maybe you don't have newlines in your message | 16:08 |
| ← RayMorgan left | 16:08 |
| → ph^ joined | 16:08 |
| → RayMorgan joined | 16:08 |
| → romao joined | 16:08 |
|
tw123
| Why would medim thenprint it with newlines? | 16:08 |
| ← naeu left | 16:08 |
|
doener
| IIRC %s is the whole first paragraph (i.e. up to the first empty line) | 16:09 |
| ← dodo_the_last1 left | 16:09 |
|
doener
| maybe %s collapses that to a single line, but the "medium" format just takes the whole message | 16:09 |
|
drizzd
| doener: ah, didn't know that | 16:10 |
|
doener
| yep, that's it | 16:10 |
| → dodo_the_last joined | 16:10 |
|
tw123
| aha - paragraph!..I see now. that makes sense. SO I'm still left with the problem of formatting my "first paragraph" as it was entered (ie with newlines).. | 16:10 |
|
drizzd
| I suppose the best practice is to keep the subject line short | 16:10 |
| ← BlindOracle left | 16:10 |
| → Stravy joined | 16:10 |
|
tw123
| Sounds liek we need an extra format operator to just print the whole message as it was? | 16:11 |
| → HG` joined | 16:11 |
|
tw123
| is tehre any way to do this using format?? | 16:12 |
|
drizzd
| darn, if I had only known about %f _before_ I implemented its equivalent as sed script... | 16:12 |
|
ElAngelo
| http://rafb.net/p/sXwphc67.html | 16:13 |
| ← ciskje left | 16:13 |
|
ElAngelo
| i don't know how to fix this | 16:13 |
|
| those are just new files | 16:13 |
|
drizzd
| tw123: from what I can see, yes | 16:13 |
|
ElAngelo
| there is nothing i can merge in them | 16:13 |
|
tw123
| drizzd: help me out a little more! please..how? | 16:14 |
| joshthecoder_afk → joshthecoder | 16:14 |
| → solydzajs joined | 16:15 |
|
| helo laughs at pedogit | 16:16 |
| → schmrz joined | 16:16 |
|
ElAngelo
| no one? | 16:17 |
| → markelikalderon joined | 16:17 |
|
drizzd
| tw123: oh, I was responding to your second last question. I don't think it's possible. | 16:18 |
|
tw123
| drizzd: thanks. Is there some official way to make this a "feature request"? | 16:20 |
|
doener
| the best one is "send a patch" | 16:21 |
|
tw123
| naturally! :) | 16:21 |
|
drizzd
| should be really trivial too | 16:21 |
| → jballanc joined | 16:21 |
|
tw123
| ok - thanks all. | 16:22 |
| ← tw123 left | 16:22 |
|
doener
| hm, I was going to tell him where to look... | 16:24 |
| ← brett_h left | 16:24 |
| ← Necker left | 16:24 |
| ← jeremiah left | 16:25 |
| → jeremiah joined | 16:25 |
| → NoirSoldats_ joined | 16:25 |
| ← ChrisCauser left | 16:25 |
| → UUncia joined | 16:25 |
| ← NoirSoldats left | 16:26 |
| → bradly joined | 16:27 |
| ← johan-s left | 16:29 |
| → johan-s_ joined | 16:29 |
| ← mfilipe left | 16:30 |
| ← dwave left | 16:30 |
| ← markelikalderon left | 16:31 |
| ← shruggar left | 16:34 |
| → rick_h_ joined | 16:34 |
| ← tal67 left | 16:34 |
| jefftriplett-afk → jefftriplett | 16:35 |
| → LiamH joined | 16:35 |
| → WALoeIII joined | 16:35 |
| → psoo joined | 16:36 |
| joshthecoder → joshthecoder_afk | 16:36 |
| joshthecoder_afk → joshthecoder | 16:36 |
| ← javatexan left | 16:37 |
| → toxx_ joined | 16:39 |
| ← hyperair left | 16:42 |
| ← galderz left | 16:42 |
| → hyperair joined | 16:42 |
| → galderz joined | 16:42 |
| ← amrox left | 16:44 |
| ← _dave_h_d left | 16:44 |
| ← drizzd left | 16:45 |
| → bx2 joined | 16:45 |
| ← nickm left | 16:45 |
| ← microm left | 16:45 |
| ← beantmt left | 16:45 |
| ← unreal left | 16:45 |
| ← rio left | 16:45 |
| ← Kasperle left | 16:45 |
| ← uau left | 16:45 |
| ← kraymer_ left | 16:45 |
| ← parasti left | 16:45 |
| ← xblaster left | 16:45 |
| ← context left | 16:45 |
| ← xkr47 left | 16:45 |
| Zaba_ → Zaba | 16:46 |
| → jsbmsu joined | 16:46 |
| → beantmt joined | 16:47 |
| → xblaster joined | 16:47 |
| → parasti joined | 16:47 |
| → rio joined | 16:47 |
| → Kasperle joined | 16:47 |
| → microm joined | 16:47 |
| ← sgrimm left | 16:47 |
| → Modius joined | 16:48 |
| → Weaselweb joined | 16:48 |
| ← rick_h_ left | 16:49 |
| → jceb joined | 16:49 |
| → juanjoc joined | 16:50 |
| → uau joined | 16:50 |
| → unreal joined | 16:51 |
| → nickm joined | 16:52 |
| → Necker joined | 16:53 |
| → amrox joined | 16:54 |
| ← drd20 left | 16:55 |
| → gwoo_ joined | 16:55 |
| → towski joined | 16:56 |
| → markelikalderon joined | 16:56 |
| ← ph^ left | 16:57 |
| ← wycats left | 16:59 |
| → vipul joined | 17:02 |
|
vipul
| hi folks, I have some changes in my local git repository that I want to overwrite from HEAD | 17:02 |
|
| only specific files though ... is git reset --hard the right command to use ? | 17:02 |
| → aspotashev|eeepc joined | 17:02 |
|
doener
| vipul: git checkout HEAD -- <paths> | 17:03 |
|
vipul
| ah, thanks doener | 17:03 |
|
| what is git-reset used for then ? | 17:03 |
|
| and what's the difference between that and git-revert ? | 17:03 |
| ← marc_m left | 17:04 |
| ← jmesnil left | 17:05 |
| → tatsuyao joined | 17:05 |
| → mfilipe joined | 17:06 |
| ← markelikalderon left | 17:07 |
|
voker57__
| git-revert creates commit to revert another one | 17:08 |
|
| git-reset moves HEAD | 17:08 |
| ← Necker left | 17:08 |
| → sekimura joined | 17:09 |
| ← gwoo left | 17:10 |
| ← mtkd left | 17:13 |
| → la_mer joined | 17:14 |
| ← hydrogen left | 17:14 |
|
bentob0x
| I did a commit, I did a git reset HEAD^ and I realised that my commit wasn't that bad, git checkout commitID (found with git reflog) says that one of the files in my working directory is edited so cannot switch branches | 17:14 |
| → davidc__ joined | 17:14 |
| → Dashkal joined | 17:14 |
|
davidc__
| how do I compare a local branch's file and the remote orgin's copy of the file? | 17:14 |
| ← cemerick left | 17:15 |
| la_mer → cemerick | 17:15 |
|
doener
| bentob0x: you probably don't want to use checkout there anyway. That would detach HEAD. | 17:16 |
|
| bentob0x: instead, you probably want to use reset again, to reset your currently checked out branch head back to that commit | 17:16 |
| → lois[pac] joined | 17:17 |
|
doener
| davidc__: git diff $local $remote -- $file | 17:17 |
| → gitte joined | 17:17 |
| ← outworlder left | 17:17 |
|
davidc__
| $local and $remote are the branches? | 17:18 |
|
doener
| yep | 17:18 |
|
davidc__
| cheers. | 17:18 |
|
bentob0x
| thx doener but how can I get my patch in reflog now? | 17:19 |
| → wycats joined | 17:19 |
|
bentob0x
| git cherry-pick? | 17:20 |
|
doener
| bentob0x: hm? if you reset back to that commit (I assumed that you didn't do any other commits in the meantime), the branch head will reference that commit again | 17:20 |
|
davidc__
| hmm? | 17:21 |
| → sergiodj joined | 17:23 |
|
bentob0x
| no it didn't work, the head still points to HEAD^ | 17:23 |
| tswicegood → tswicegood-afk | 17:23 |
| → neoeinstein_ joined | 17:24 |
|
doener
| bentob0x: what exactly did you do? | 17:25 |
| → sgrimm joined | 17:25 |
|
doener
| bentob0x: maybe pastebin the interesting part from your shell session? | 17:25 |
|
bentob0x
| git reflog gives me the following patch I want to get back: 67df426 HEAD@{2}: | 17:26 |
| → boto joined | 17:26 |
|
bentob0x
| do I just do a git cherry-pick 67df426 to get that patch back into HEAD? | 17:27 |
|
| or into master | 17:27 |
|
| should I say | 17:27 |
| → paulboone joined | 17:27 |
|
bentob0x
| basically how do you 'undo' a git reset HEAD^ | 17:27 |
|
parasti
| bentob0x: you're asking two different things | 17:28 |
|
doener
| bentob0x: right after the reset, "git reset HEAD@{1}" | 17:28 |
|
bentob0x
| ahaa | 17:29 |
|
doener
| bentob0x: well, that's what I said before. Reset back to the old commit | 17:29 |
| ← leanucci left | 17:29 |
|
bentob0x
| yea but that reflog with all those HEAD@... got me confused | 17:29 |
|
doener
| and that's not a "full" undo. The index state is lost | 17:29 |
|
bentob0x
| that worked, thx doener | 17:29 |
|
| where git reflog still keeps the work done since that git reset HEAD^ | 17:30 |
|
| I think I got it | 17:30 |
|
doener
| No, the reflog just keeps the state of the ref | 17:30 |
|
bentob0x
| gosh | 17:30 |
|
doener
| but "git reset $committish" simply doesn't touch the working tree, and the commit is obviously undoable | 17:31 |
|
| so just the index state is lost | 17:31 |
|
| with --hard, the working tree state would also be lost | 17:31 |
|
| (in both cases, assuming that you had uncommitted changes) | 17:31 |
| → ph^ joined | 17:32 |
| ← aspotashev|eeepc left | 17:32 |
| ← toxx_ left | 17:35 |
| → ankit9_ joined | 17:35 |
| → k0001 joined | 17:36 |
| → alienbrain joined | 17:38 |
|
alienbrain
| Where does git cache auth data? It's using the wrong cached password | 17:39 |
| → olly joined | 17:42 |
| → ctremblay joined | 17:42 |
|
jaeckel
| is there a possibility to configure default push behavior? e.g. automatically pushing tags | 17:46 |
| ← HG` left | 17:47 |
| → texel joined | 17:47 |
| ← kadoban left | 17:47 |
| → Hendu joined | 17:47 |
|
Grum
| alienbrain: git doesnt involve itself with auth data at all | 17:48 |
|
alienbrain
| Grum: I see, I've actually remembered that I have threw a ~/.netrc which had this data :D | 17:49 |
|
Grum
| humz what uses netrc? O.o | 17:49 |
|
alienbrain
| curl | 17:49 |
|
Grum
| oh i think in the later gits they updated it so it would just prompt | 17:50 |
| ← ankit9 left | 17:51 |
| ← davidc__ left | 17:52 |
| → carrus85 joined | 17:52 |
| ← doener left | 17:54 |
| → doener joined | 17:54 |
| → maron3 joined | 17:55 |
| ← bentob0x left | 17:55 |
| → _sps joined | 17:55 |
| ← ankit9_ left | 17:56 |
| ← peshalto left | 17:58 |
| → gberdyshev joined | 17:58 |
| ← Hendu left | 18:00 |
| → kadoban joined | 18:01 |
| → bobesponja joined | 18:01 |
| ← ctremblay left | 18:02 |
| → javatexan joined | 18:02 |
| dereine[OFF] → dereine | 18:03 |
| ← paulboone left | 18:04 |
| → paulboone joined | 18:04 |
| → blingo joined | 18:05 |
|
blingo
| hello | 18:05 |
|
| Anyone knows if git has some sort of progress bar or way to say what file it is currently working on ? | 18:06 |
| → wsc joined | 18:08 |
| → drizzd joined | 18:10 |
| → niki joined | 18:10 |
|
drizzd
| spearce: I'm reading your git-aware http transport specification and I don't understand when the server should stop sending "status continue"s. It's supposed to stop if it has a "closed set of objects". What do you mean by that? | 18:12 |
| ← psoo left | 18:12 |
|
charon
| blingo: some potentially costly commands fire up a progress bar if things take longer than a few seconds, e.g., 'git checkout'. for the most part however, they don't | 18:12 |
|
blingo
| thanks <charon> | 18:12 |
|
| this is importent to me, as I want to create a graphical front-end for git | 18:13 |
|
spearce
| drizzd: its found a complete cut across the DAG, such that every object can be partitioned onto one side, or the other. or ,put another way, from each want, there is a path to an object in the common set | 18:13 |
| ← alienbrain left | 18:13 |
|
blingo
| is there some way to make a progress bar/ current file appear ? | 18:13 |
| ← cilly left | 18:14 |
|
drizzd
| spearce: ok, so is that different from the standard git transport? If I understand correctly the client sends "done" if it runs out of PENDING commits | 18:14 |
| → ankit9_ joined | 18:14 |
|
meyering
| hello, I've aggregated glibc.git's commits into semblance of cset normality on "master", adjusted all tags to point to rewritten refs, and grafted the 16 branches onto the new tree. Now I'd like to make the grafts permanent in time proportional to the #commits on branches (there are almost 20k on master). Tried git filter-branch -f "$b" as well as master..$b, but in each case, it also rewrites all of master. Any way around that? | 18:15 |
|
spearce
| drizzd: no, its the same rule. the server can stop before the client says done. but the client says done, then the server accepts what it has in the common set, even if that set is potentially empty. | 18:15 |
| ← ceyusa left | 18:16 |
| ← jsbmsu left | 18:16 |
|
meyering
| hmm.. I guess it's inevitable, since graft affects graft-point, too | 18:17 |
|
| maybe I can get away with a single filter-branch run, to do all 16 branches | 18:17 |
|
drizzd
| spearce: I see. And we already know that the client is done if it sends less than 256 haves. | 18:17 |
| → davidc_ joined | 18:18 |
| ← jaeckel left | 18:18 |
|
spearce
| drizzd: no, the server doesn't count that, the client just kicks out a "done" if it wants to give up. | 18:19 |
|
drizzd
| spearce: ok, thanks. | 18:20 |
|
| have we ever considered sending haves for the tips of the corresponding tracking branches first? | 18:21 |
| ← countd left | 18:21 |
|
drizzd
| those should already give a closed set of objects in the most common cases | 18:22 |
| → countd joined | 18:22 |
| → dkerschner joined | 18:22 |
| ← dkerschner left | 18:23 |
| → dkerschner joined | 18:23 |
| ← dkerschner left | 18:23 |
|
drizzd
| oh, nvm. I only know the client doesn't have a commit if it's newer than the oldest have it sent. So I still have to start from the newest commit first. | 18:24 |
|
charon
| blingo: not to dissuade you, but note that there are GUI projects for almost any platform/toolkit combination, so your time might be better spent helping those efforts | 18:24 |
|
| (i think the wiki has a list) | 18:24 |
| → leanucci joined | 18:24 |
| → dkerschner joined | 18:25 |
| ← olly left | 18:25 |
| ← sfwc left | 18:28 |
| → codeshah joined | 18:29 |
|
blingo
| Much thanks <charon> I want to create something in Java, There are some gui's that look a lot like the text mode, do you remember any examples of a mature product? I will look it up myself, regardless | 18:29 |
|
charon
| blingo: there's a fairly good java implementation called jgit and a corresponding eclipse plugin called egit | 18:31 |
| dfr|work → poop | 18:33 |
| ← nbrunson left | 18:33 |
| → Alinermedia joined | 18:33 |
|
blingo
| Much thanks <charon>, will look it up :) | 18:35 |
| → kumbayo joined | 18:35 |
| ← bcarlyon|laptop left | 18:35 |
| → poh joined | 18:41 |
| → context joined | 18:41 |
|
poh
| if I started coding but forgot to branch, is there a way to create a new branch with some of the changes I have made? | 18:41 |
| gwoo_ → gwoo | 18:43 |
| → mikl joined | 18:43 |
| poop → dfr|work | 18:43 |
| ← galderz left | 18:44 |
|
parasti
| poh: just git checkout -b newbranch and fix up your previous branch if necessary | 18:44 |
| → kraymer_ joined | 18:45 |
| → yann joined | 18:45 |
|
poh
| parasti: thanks | 18:45 |
| ← kraymer_ left | 18:45 |
| ← hyperair left | 18:47 |
| ← gberdyshev left | 18:47 |
| → xkr47 joined | 18:49 |
| ← poh left | 18:49 |
|
cxreg
| is there a simple command to say "what branch does this branch have the most recent merge-base with" ? | 18:55 |
| ← DavidKlein left | 18:56 |
| → DavidKlein joined | 18:56 |
| ← xkr47 left | 18:57 |
| ← javatexan left | 18:58 |
|
Ilari
| cxreg: AFAIK, no. | 18:59 |
| → mjf joined | 19:02 |
| → BlindOracle joined | 19:03 |
| → crystal joined | 19:05 |
| ← mikl left | 19:07 |
| → David^ joined | 19:07 |
| ← jeremiah left | 19:07 |
| → jsbmsu joined | 19:07 |
| → jeremiah joined | 19:08 |
| → avaja joined | 19:08 |
| ← DavidKlein left | 19:08 |
| → patmaddox joined | 19:12 |
| → struberg joined | 19:16 |
| ← eletuchy left | 19:18 |
| ← Alinermedia left | 19:18 |
| → eddyp joined | 19:19 |
| → dreiss joined | 19:19 |
| → DavidKlein joined | 19:19 |
| tswicegood-afk → tswicegood | 19:20 |
| ← David^ left | 19:20 |
| → matthewmcculloug joined | 19:25 |
| ← matthewmcculloug left | 19:26 |
| ← jjuran left | 19:27 |
|
SteveC_
| http://pastie.org/478349 | 19:28 |
|
| what's going on there? it wont let me delete that folder | 19:28 |
| → eletuchy joined | 19:29 |
| → thiago_home joined | 19:30 |
|
mbroeker
| SteveC_, well, how many chars are before the .svn/ folder? | 19:30 |
|
SteveC_
| um.. none | 19:31 |
| ← eletuchy left | 19:31 |
|
SteveC_
| even if i do.. git rm -r .svn/ it doesn't work | 19:31 |
| ← mfilipe left | 19:32 |
| → lucsky joined | 19:32 |
| → hydrogen joined | 19:33 |
|
blingo
| Anyone installed egit? | 19:33 |
| → loincloth joined | 19:33 |
| → lightcap joined | 19:34 |
| → plexq joined | 19:35 |
|
plexq
| Hello - I'm getting the error: fatal: Invalid symmetric difference expression 1377f5d8fa7bbc8286fe691888627ee6f862cf3f...9174b990db57e78ac71a7551ee9799fd409e8607 | 19:35 |
|
| after a bad push | 19:35 |
|
| or possibly a pull | 19:35 |
| → khmarbaise joined | 19:37 |
| → lightcap_ joined | 19:37 |
| ← lightcap left | 19:37 |
| → jksz_ joined | 19:37 |
| → Alex_Norton joined | 19:39 |
|
henr_k
| can I set the .gitconfig to automatically add the diff in commit (as in git commit -v) ? | 19:39 |
| ← ceej left | 19:39 |
| ← lightcap_ left | 19:39 |
| → lightcap joined | 19:40 |
|
Alex_Norton
| www.YouFastPorn.com - Free,Fast,Safe & NO ADV..NO-PROFIT !!! | 19:40 |
| ← Alex_Norton left | 19:40 |
| ← lightcap left | 19:42 |
| → lightcap joined | 19:42 |
| ← lightcap left | 19:42 |
|
drizzd
| henr_k: I don't think so. You can make an alias. | 19:45 |
| → mfilipe joined | 19:45 |
|
henr_k
| drizzd: ok | 19:45 |
| tchan1 → tchan | 19:46 |
| ← gitte left | 19:47 |
| ← d0k left | 19:48 |
|
hugoxrosa
| SteveC_, Is the folder empty? | 19:50 |
| ← avaja left | 19:51 |
|
henr_k
| drizzd: I guess the same goes for signoff (git commit -s) ? | 19:51 |
|
SteveC_
| hugoxrosa: nope | 19:51 |
|
| hugoxrosa: it has two other dot folders inside of it | 19:51 |
|
hugoxrosa
| SteveC_, hum... is the folder unstagged? | 19:54 |
| ← mobhawk left | 19:54 |
|
hugoxrosa
| SteveC_, I have problem only in this two situations. | 19:54 |
| bleything → bleything|away | 19:55 |
| → dwave joined | 19:55 |
|
hugoxrosa
| SteveC_, maybe you should delete (with rm) and use git gui to correct the status of git. | 19:57 |
|
SteveC_
| hugoxrosa: i ended up deleting it through the svn repository | 19:57 |
|
hugoxrosa
| SteveC_, It have been my solution in case like this one. | 19:57 |
|
drizzd
| henr_k: pretty sure, yes | 19:57 |
|
SteveC_
| hugoxrosa: git wouldn't see it no matter what idid | 19:57 |
|
henr_k
| drizzd: ok, thanks. then I can stop looking for it :) | 19:59 |
| → dbtid joined | 20:03 |
| ← UUncia left | 20:04 |
| → peshalto joined | 20:04 |
| → porcnick joined | 20:05 |
| → Ademan joined | 20:07 |
| → Travis-42 joined | 20:08 |
| → ciskje joined | 20:08 |
| → UUncia joined | 20:09 |
| → kold joined | 20:10 |
| ← dwave left | 20:11 |
| ← jwshen left | 20:11 |
| → Azerthoth joined | 20:12 |
| ← peshalto left | 20:13 |
| → warthog9 joined | 20:13 |
| → poseidon joined | 20:14 |
| ← fujin left | 20:17 |
|
zuez
| I have the following listed in .git/info/exclude, yet it still shows up in git status client/myproject/sf.pbxuser | 20:17 |
|
| does that mean that it is being versioned already? | 20:17 |
| ← schmrz left | 20:18 |
|
patrikf
| zuez: is it listed under "untracked files"? | 20:19 |
| → boto_ joined | 20:20 |
| ← ph^ left | 20:21 |
| → naeu joined | 20:21 |
| → Bagder joined | 20:21 |
| tswicegood → tswicegood-afk | 20:21 |
| → schacon joined | 20:24 |
| ← tomaw left | 20:25 |
| jksz_ → jksz | 20:25 |
| → tomaw joined | 20:26 |
| → nighthwk1 joined | 20:29 |
| ← Modius left | 20:29 |
| → aspotashev|eeepc joined | 20:30 |
| ← bdiego left | 20:31 |
| ← boto left | 20:33 |
| → rimenes joined | 20:35 |
| → Modius joined | 20:36 |
| ← wsc left | 20:37 |
| ← seangrove left | 20:37 |
| ← joevandyk left | 20:37 |
| → wsc joined | 20:37 |
| → seangrove joined | 20:37 |
| → joevandyk joined | 20:37 |
| rimenes → rimenes-away | 20:38 |
| ← krh left | 20:39 |
| ← naeu left | 20:42 |
|
Stravy
| hi all : the hook for http protocol run git-update-server-info, does this means that git must be installed on the machine running the web server? | 20:42 |
| ← Bagder left | 20:43 |
| → javatexan joined | 20:43 |
| ← patrikf left | 20:43 |
|
Ilari
| Stravy: Well, you need it installed anyway for ssh push... | 20:43 |
|
| Stravy: And HTTP push doesn't run hooks. | 20:44 |
|
blingo
| I've used "git init, git add ." on a large diractory, it took it some minutes, and no information like ending time was displayed, is there some way to see it? | 20:46 |
| ← javatexan left | 20:46 |
|
Fissure
| don't think so | 20:46 |
| → s0ber joined | 20:47 |
|
Fissure
| though in my experience, add is almost instantaneous | 20:47 |
| → javatexan joined | 20:48 |
| → eletuchy joined | 20:48 |
|
blingo
| Darn, thanks. <Fissure> | 20:50 |
|
Stravy
| Ilari: funny I didn't realized that git had to be installed on both sides of the push, as it was always the case when I tried | 20:50 |
| ← jceb left | 20:51 |
| ← Weaselweb left | 20:51 |
| ← ntoll left | 20:53 |
| ← DavidKlein left | 20:53 |
|
Ilari
| blingo: Not usable after-the-fact, but there is shell builtin 'time' that can be used to show real, user and system times at process exit. | 20:54 |
|
blingo
| intersting | 20:54 |
|
| I assume can use TOP to see the time it is running, but not the time to finish :( | 20:55 |
| → ntoll joined | 20:55 |
| ← carrus85 left | 20:56 |
|
uau
| blingo: i'd guess it was disk activity | 20:56 |
| ← ntoll left | 20:56 |
| ← lorandi left | 20:56 |
|
uau
| IIRC 'git add' needs to read all the files you're adding | 20:56 |
|
blingo
| I'm by no way blaming git, I want to create a gui, and it's a must for it, I only see tweaking git as an option, a bad one. | 20:57 |
| ← bhearsum left | 20:57 |
| ← gh34 left | 20:58 |
|
blingo
| Maybe there's a way to see what file git is currently working on? | 20:59 |
| ← s0ber_ left | 20:59 |
|
uau
| if nothing else, you could use a tool like lsof to see what files the process has open (or look directly under /proc/pid) | 21:00 |
|
Ilari
| Heh... Running one program I have done (on rather big iron): It spent 5.56s in user space, 2.19s in system calls, with wallclock completion time of 2.269s... Program internal CPU usage stat showed 499% CPU usage... | 21:01 |
| ← cannonball left | 21:01 |
|
blingo
| 499% is a bit high :) | 21:02 |
|
uau
| you can get similar times on basic consumer processors nowadays (though more than 4 cores is still relatively rare i guess) | 21:02 |
| ← AkumaStreak left | 21:02 |
| → krawek joined | 21:02 |
|
Ilari
| More like bit low. That program is bottlenecked by mmap performance. | 21:03 |
|
dmlloyd
| not if you have, say, 8 CPUs :) | 21:03 |
|
blingo
| for 8 CPUs, being one CPU 100%, it's low :-) | 21:03 |
|
uau
| dmlloyd: i know there are machines with more, i meant that quad-core processors have been common consumer stuff for a while | 21:04 |
|
Ilari
| Data throughput stat was 241 028kB/s... The program could take some optimization. | 21:04 |
| ← Stravy left | 21:05 |
| → mithraic joined | 21:06 |
|
blingo
| I will check the lsof option, thanks, hope that git open files one by one.. | 21:06 |
|
Ilari
| blingo: If you want performance, issue multiple database writes in parallel and then run index update? | 21:07 |
| ← lucsky left | 21:08 |
| ← cemerick left | 21:08 |
|
Ilari
| blingo: And since the program is issuing the commands, it presumably knows what file is currently being handled. | 21:08 |
|
uau
| blingo: if you mean you want to find the files from a _program_ (as opposed to checking it in your interactive use), then hacks like lsof are certainly not a good idea | 21:10 |
| → _Vi joined | 21:10 |
| → Suhail joined | 21:10 |
|
blingo
| I appreciate your kind efforts, I will explain, It's not the speed that worries me, I'm writing a gui for git, and I need to show it's current status, something like working and not showing any status isn't good for me. this is the reason I want to know what file it working on - to show something in the gui, maybe calc the number of files and than showing a progress bar by counting the files remaining.. | 21:10 |
|
Suhail
| Is there anything special I need to do, I am changing servers and I want to move my remote repo I've been using to another | 21:11 |
|
| place | 21:11 |
| → eletuchy_ joined | 21:11 |
|
Ilari
| Suhail: Nothing special, aside of changing the URLs. Also if you use file-level copy, you might want to use fsck on the result. | 21:12 |
| ← nighthwk1 left | 21:12 |
| → AkumaStreak joined | 21:12 |
|
Ilari
| blingo: Use hash-object + update-index? That way you know what is being added right now... | 21:13 |
| ← paulboone left | 21:13 |
|
Ilari
| blingo: The update-index is single step, but it should be very fast even with huge number of files. | 21:13 |
|
Fissure
| unless you're doing something crazy like writing to sshfs over a modem link ;) | 21:14 |
| ← [intra]lanman left | 21:14 |
| ← quoin left | 21:14 |
| ← qrush left | 21:14 |
| → paulboone joined | 21:15 |
| ← solydzajs left | 21:15 |
|
Ilari
| blingo: For even more control, write the object files yourself. It isn't as hard as it sounds. The hardest part in it is actually discovering wheither or not you actually need to write an object. | 21:15 |
| ← aspotashev_ left | 21:16 |
|
blingo
| I thank you <Ilari> this is huge help, for the easier part can you tell me how to combine the hash-object + update-index to the add . ? | 21:16 |
| ← kumbayo left | 21:17 |
|
Ilari
| blingo: Well, the idea is: use hash-object to write the changed stuff to object database and then update-index to update what the index contains. You have to extract the list of files to update yourself. | 21:17 |
| → smashwilson joined | 21:18 |
|
Suhail
| Ilari: how would you change the url? | 21:18 |
|
Ilari
| blingo: There is update-index mode that accepts complete index entries from stdin. | 21:19 |
| ← leanucci left | 21:19 |
|
Ilari
| Suhail: edit .git/config or use 'git config remote.<remote>.url <newURL>'. | 21:19 |
|
| Suhail: I would go and directly edit .git/config. | 21:20 |
| → leanucci joined | 21:20 |
|
Suhail
| Ilari: so i change the url and just push the changes from my local repo? | 21:20 |
|
blingo
| o.k I assume what you're suggesting requires a higher level of understanding of git internals, I will try to achieve it, but getting this information of which file is "handled" does seem possible to you? | 21:20 |
| ← leanucci left | 21:21 |
| → leanucci joined | 21:21 |
|
Ilari
| Suhail: You can do that way as well, if you have the needed stuff in local repo. | 21:21 |
| ← eletuchy left | 21:21 |
|
Suhail
| Ilari: yeah i do | 21:21 |
| ← yann left | 21:22 |
| ← mikearr left | 21:22 |
|
Ilari
| blingo: Search for "Git for Computer Scientists" and "Git from the Bottom Up". And I don't think its possible to get info about progress of commands during invocation, only about what is being invoked. | 21:23 |
| → mikearr joined | 21:23 |
|
blingo
| So i'll have to do each command on one file at a time to make this work? | 21:23 |
|
Ilari
| blingo: So to get smooth progress even on large files, you would need to write the stuff out yourself. | 21:24 |
|
blingo
| but on many small files, your technique will work? | 21:25 |
|
Ilari
| blingo: Or batch files to windows by size/number and hand off each window at time. | 21:25 |
|
blingo
| You mean add 1.file, move progress bar, add 2.file etc' ? | 21:26 |
| → ebneter joined | 21:26 |
|
Ilari
| blingo: I mean: You have list of files that need adding. Find size of each. Now batch them into sets, such that each set either stays under given size and number limit or contains single file that blows the size limit. Then hand off each set to one command. | 21:27 |
|
blingo
| got you. | 21:28 |
|
| and on commit, I see the list of files, but only when the commit finishes, is there something to be done the easy way ? | 21:29 |
|
Ilari
| blingo: Doing such batching to optimal number of batches is probably NP-hard, but any reasonable approximation should do. | 21:29 |
| ← eletuchy_ left | 21:29 |
|
doener
| blingo: committing should be fast enough not to matter at all | 21:29 |
|
| blingo: if something is slow, then it's the hash-object part | 21:29 |
|
Ilari
| blingo: To commit, you actually need index file that contains the stuff you want to commit. | 21:29 |
| → bremner_ joined | 21:30 |
| ← khmarbaise left | 21:30 |
|
troyt
| Quick question about git commit messages: the syntax highlight of my $EDITOR changes colors at column 50 for the commit message (and the syntax is git commitmsg). I've noticed similar behavior with a couple GUI programs for git commits. Can anybody explain why? | 21:31 |
| ← priidu left | 21:32 |
| → fargiola` joined | 21:32 |
|
Ilari
| troyt: The convention is that first line of commit msg is at most 50 characters. | 21:32 |
|
doener
| Ilari, blingo: For the hash-object/update-index part, you could fork hash-object -w --stdin-paths and feed paths to it. It reports back the hash immediately, so you can write the index entry | 21:32 |
|
troyt
| OK; thanks, that was what I was wondering. | 21:32 |
|
doener
| Ilari, blingo: and as both run in batch mode, you don't have to fork like hell | 21:32 |
|
Ilari
| doener: Ah, yes that... | 21:32 |
| ← bremner_ left | 21:32 |
|
doener
| I think git-svn does that | 21:33 |
| → qrush joined | 21:33 |
|
Ilari
| doener: There isn't any command that could accept batch object write input from stdin complete with assumed paths and even with types? Didn't see such in git-hash-object(1). | 21:34 |
| → gberdyshev joined | 21:35 |
|
blingo
| I think It is all clear now.. | 21:35 |
| ← pcutler left | 21:35 |
|
doener
| Ilari: no, nothing I'd know of. With --stdin it writes just a single object, and --stdin-paths just writes objects of one type. | 21:36 |
|
Ilari
| doener: And besides, the --stdin-paths presumably accepts paths, not contents. | 21:36 |
|
blingo
| You all were huge help, I will dig into this "Git for Computer Scientists" and "Git from the Bottom Up" many thanks. | 21:36 |
|
doener
| Ilari: uhm, yeah. But wasn't that the idea? To get a progress report for adding a bunch of existing files? | 21:37 |
|
| Ilari: didn't follow the whole discussion, just skipped to the start once | 21:37 |
|
Ilari
| blingo: Just don't do anything stupid like trying to add all files every time (first see which have mods in working dir). | 21:38 |
|
blingo
| lol thanks :) | 21:39 |
| ← gberdyshev left | 21:39 |
| ← Azerthoth left | 21:40 |
| ← LiamH left | 21:41 |
|
Ilari
| troyt: Presumably the rest of the lines can be little longer, but don't overdo it. Even if you have 200 wide terminal doesn't mean everyone has one. And even if one has, reading that long lines is painful. | 21:41 |
| ← leanucci left | 21:42 |
|
troyt
| I figured that; I just thought it odd the value was < ~80 characters (ie. most terminal widths) | 21:42 |
| ← blingo left | 21:42 |
| → gebi_ joined | 21:42 |
| → daed455 joined | 21:42 |
|
daed455
| does anyone here use buildbot? | 21:43 |
| ← fargiolas left | 21:43 |
| daed455 → daed | 21:43 |
|
Ilari
| Real fun to read some pages from terminal-based web browser when the terminal width is 212 characters... | 21:43 |
| ← bmalee left | 21:43 |
| ← impulze left | 21:43 |
| ← up_the_irons left | 21:43 |
| ← madduck left | 21:43 |
| ← Tali left | 21:43 |
| ← incd^ left | 21:43 |
| ← numbah left | 21:43 |
| ← hegge left | 21:43 |
| ← avtobiff left | 21:43 |
| ← janl left | 21:43 |
| ← Ingmar left | 21:43 |
| ← dionoea left | 21:43 |
| ← pcgod left | 21:43 |
| ← natlus left | 21:43 |
| ← hgb left | 21:43 |
| ← maxb left | 21:43 |
| → bmalee joined | 21:45 |
| → up_the_irons joined | 21:45 |
| → numbah joined | 21:45 |
| → impulze joined | 21:45 |
| → Ingmar joined | 21:45 |
| → hegge joined | 21:45 |
| → natlus joined | 21:45 |
| → pcgod joined | 21:45 |
| → maxb joined | 21:45 |
| → incd^ joined | 21:45 |
| → hgb joined | 21:45 |
| → dionoea joined | 21:45 |
| → Tali joined | 21:45 |
| → madduck joined | 21:45 |
| → avtobiff joined | 21:45 |
| → janl joined | 21:45 |
| → dodo_the_last1 joined | 21:46 |
| ← struberg left | 21:46 |
| → seb- joined | 21:48 |
|
seb-
| When "git checkout foo" changes your branch, does it change the SOURCE CODE in the local working directory also to reflect that change? | 21:48 |
| ← qrush left | 21:49 |
| → btanaka joined | 21:49 |
|
btanaka
| is "sharedRepository = group" supported in git version 1.4.4.4 | 21:50 |
| ← jefftriplett left | 21:50 |
| ← juanjoc left | 21:52 |
| ← SteveC_ left | 21:52 |
| ← jsbmsu left | 21:53 |
| ← jballanc left | 21:53 |
| ← dodo_the_last left | 21:54 |
| ← hugoxrosa left | 21:55 |
| ← romao left | 21:56 |
| → pinholecamera joined | 21:56 |
|
pinholecamera
| hey folks | 21:56 |
| → romao joined | 21:56 |
| → sshc joined | 21:56 |
|
pinholecamera
| was wondering, how do i resolve a situation where i try to pull from master and it tells me i can't pull, because xxx file would be overwritten by merge? i just tried merging and no dice... where do i go from here? | 21:57 |
| → Azerthoth joined | 21:57 |
|
sshc
| I'm in the middle of a bisect and I made some local changes so that it could compile. How do I revert all of my local changes I made without messing up the bisect? | 21:57 |
| → fargiolas joined | 21:58 |
| ← ankit9_ left | 22:00 |
| ← Tuomas left | 22:00 |
| ← angerman_ left | 22:00 |
| ← Lgb left | 22:00 |
| ← seb- left | 22:01 |
| ← thumper left | 22:01 |
| fr → fr| | 22:01 |
| → Lgb joined | 22:01 |
| ← hobodave left | 22:01 |
| → j416 joined | 22:02 |
|
pinholecamera
| the file is actually the same as on the repo i'm pulling from, which is the really confusing part | 22:02 |
| → thisisrobv joined | 22:02 |
| ← hydrogen left | 22:02 |
| → hydrogen_ joined | 22:02 |
| → thumper joined | 22:03 |
|
thisisrobv
| Quick question, does git do bit level replacement on pushes / pulls | 22:03 |
|
| or byte level | 22:05 |
|
Ilari
| sshc: 'git reset --hard'? | 22:06 |
|
| pinholecamera: Does 'git status' list it? | 22:07 |
| ← loincloth left | 22:07 |
| ← fargiola` left | 22:07 |
|
pinholecamera
| Ilari: unfortunately yes | 22:07 |
|
sshc
| Ilari, thanks | 22:07 |
|
Ilari
| thisisrobv: Pushes/pulls transfer complete objects (perhaps delta-compressed). | 22:07 |
|
sshc
| how do I get the current revision? | 22:07 |
|
| I'm trying to store it in a bash variable | 22:08 |
|
Ilari
| sshc: 'git rev-parse HEAD'? | 22:08 |
|
sshc
| foo=`git bar` | 22:08 |
|
| Ilari, yep, thanks again :) | 22:08 |
|
Ilari
| pinholecamera: 'git diff HEAD -- file' should show the diff. | 22:08 |
|
| pinholecamera: Also, what OS? | 22:08 |
| ← wycats left | 22:08 |
|
pinholecamera
| Ilari: debian | 22:09 |
|
parasti
| thisisrobv: what do you mean by "replacement"? | 22:09 |
|
Ilari
| pinholecamera: So no CRLF problems... | 22:09 |
| → qrush joined | 22:10 |
|
Ilari
| pinholecamera: And presumably the underlying filesystem is sane. | 22:10 |
| → warlock_mza joined | 22:10 |
| → jefftriplett- joined | 22:10 |
|
pinholecamera
| Ilari: yes... accord to diff there is no data difference | 22:10 |
| ← boto_ left | 22:11 |
|
Ilari
| pinholecamera: What about 'git diff -- file' (not the same thing as 'git diff HEAD -- file')? | 22:11 |
| ← btanaka left | 22:11 |
|
comboy
| git clone should fetch all branches, right? if so, any idea why it may be fetching just master for me? | 22:11 |
|
Ilari
| comboy: It does fetch them all. | 22:11 |
|
| comboy: Look at 'git branch -r'. | 22:11 |
|
pinholecamera
| Ilari: doesn't return anything | 22:11 |
|
comboy
| Ilari: ah, so I just do git fetch origin mybranch:mybranch, right? | 22:12 |
| ← mikearr left | 22:12 |
|
Ilari
| comboy: No. 'git checkout --track origin/mybranch' (assuming recent enough git). | 22:12 |
| ← bx2 left | 22:12 |
| → mikearr joined | 22:13 |
|
comboy
| Ilari: it says --track requiries -b option | 22:13 |
|
Ilari
| pinholecamera: In what section does 'git status' list the file. What it shows being done to that file. | 22:13 |
| ← daed left | 22:14 |
| ← Travis-42 left | 22:14 |
|
Ilari
| comboy: 'git checkout -b mybranch origin/mybranch' (your git isn't new enough for --track on remote branch without -b). | 22:14 |
|
pinholecamera
| Ilari: it's under "changes to be commited" | 22:14 |
| ← mbroeker left | 22:14 |
|
thisisrobv
| parasti: byte level transfers Ilari said no | 22:14 |
|
Ilari
| pinholecamera: New file? Modified? Unmerged? | 22:14 |
|
comboy
| Ilari: ok, thenks a lot | 22:15 |
|
pinholecamera
| Ilari: modified | 22:15 |
|
Ilari
| pinholecamera: IIRC, unmerged stuff appears as both 'modified' and 'unmerged'. | 22:15 |
| → _sps_ joined | 22:16 |
|
pinholecamera
| Ilari: hrmm, weird | 22:16 |
| ← _sps_ left | 22:16 |
| → rjc joined | 22:17 |
|
Ilari
| pinholecamera: What does 'git rev-parse HEAD:file :0:file' yield, the same hash two times or different hashes? | 22:18 |
| → dodo_the_last joined | 22:18 |
| → ankit9_ joined | 22:18 |
|
pinholecamera
| Ilari: same hash twice | 22:18 |
| ← _sps left | 22:19 |
|
Ilari
| pinholecamera: Whee... Getting even stranger. Two same hashes means the file is identical in HEAD and in staged. But why did status report it having modifications to be committed. | 22:20 |
|
pinholecamera
| Ilari: exactly, it's really weird | 22:20 |
| ← gaveen left | 22:20 |
| ← porcnick left | 22:20 |
| ← sergiodj left | 22:20 |
|
Ilari
| pinholecamera: Wonder what would happen if you tried to commit... | 22:20 |
|
pinholecamera
| i can give it a shot | 22:20 |
| ← thisisrobv left | 22:21 |
| → gaveen joined | 22:21 |
| ← amrox left | 22:21 |
|
pinholecamera
| Ilari: well it let me commit | 22:22 |
| ← ankit9_ left | 22:22 |
| ← Dashkal left | 22:22 |
| ← agile left | 22:22 |
| dereine → dereine[OFF] | 22:22 |
|
Ilari
| pinholecamera: Does pull work now? | 22:22 |
|
Suhail
| Ilari: should I do git --bare init and then push to it? | 22:23 |
|
Ilari
| Suhail: Yes (assuming it is only intended to be updated by single user). | 22:24 |
|
Suhail
| Ilari: multiple users are going to commit code to this repo | 22:24 |
|
pinholecamera
| Ilari: it tells me it's up to date, which is interesting, there was a whole other commit from another machine that i was trying to pull | 22:24 |
|
Suhail
| Ilari: we're using it as a remote repo where we can commit/bring down changes for now | 22:24 |
| → hobodave joined | 22:25 |
| ← xeno left | 22:25 |
| → krich87 joined | 22:25 |
| ← krich87 left | 22:25 |
| → xeno joined | 22:25 |
| ← corybantic left | 22:25 |
|
pinholecamera
| Ilari: so now i just need to back track in the commits i guess | 22:26 |
|
Ilari
| pinholecamera: How many lines 'git rev-parse HEAD^!' gives? | 22:26 |
| ← j416 left | 22:26 |
|
pinholecamera
| Ilari: three | 22:26 |
|
Ilari
| pinholecamera: Last commit is merge then. | 22:26 |
|
pinholecamera
| Ilari: so it merged with my last commit, you mean? | 22:27 |
|
Ilari
| pinholecamera: Apparently last commit you made did merge in what you where trying to pull... | 22:27 |
| → tvw joined | 22:27 |
|
pinholecamera
| Ilari: huh, so weird, none of the changes from the previous commit are actually there | 22:28 |
|
Ilari
| pinholecamera: Git pull/merge does save information that subsequent commit picks up to make proper merge. | 22:28 |
|
Suhail
| Ilari: i got No refs in common and none specified; doing nothing | 22:28 |
|
Ilari
| pinholecamera: Fscked up merge resolution? | 22:29 |
| ← rjc_ left | 22:29 |
|
Suhail
| oh wait git push origin master seems to work | 22:29 |
| ← ciskje left | 22:29 |
|
pinholecamera
| Ilari: yeah, i think something got missed somehow, i'll take a look at the versions | 22:29 |
|
Ilari
| Suhail: That only pushes master. | 22:29 |
|
Suhail
| Ilari: yeah how do i push everything? | 22:29 |
|
| i basically need to move my entire repo to a new place | 22:30 |
|
Ilari
| Suhail: --all | 22:30 |
|
| Suhail: And then second push with --tags | 22:30 |
|
Suhail
| git push --al? | 22:30 |
|
| --all | 22:30 |
| ← Azerthoth left | 22:30 |
| → dodo_the_last2 joined | 22:30 |
|
Ilari
| Suhail: 'git push origin --all ; git push origin --tags'. | 22:30 |
| → Azerthoth joined | 22:31 |
| ← dodo_the_last left | 22:31 |
| ← Yuuhi left | 22:31 |
|
hachi
| is there a way to test a remote? | 22:33 |
|
| I don't want to push | 22:33 |
|
| nor pull | 22:33 |
|
| I just want to see if it seems to be a valid remote | 22:33 |
|
broonie
| hachi: git remote show <remote> should do the trick. | 22:33 |
|
Ilari
| hachi: Also, 'git remote' list the remotes. | 22:33 |
| Run → Aleric | 22:33 |
|
hachi
| it lists them | 22:33 |
|
| yes, but does it connect? | 22:34 |
|
Ilari
| hachi: 'git ls-remote <remote>'? | 22:34 |
|
broonie
| yes, if you ask it to display an individual remote. | 22:34 |
| cpg → cpg|away | 22:34 |
|
hachi
| okay okay, thank you | 22:35 |
| cpg|away → cpg|biab | 22:35 |
|
hachi
| thanks a ton :) | 22:35 |
|
Ilari
| hachi: That connects to remote repo and obtains list of refs that are present there. | 22:35 |
| ← qrush left | 22:35 |
|
hachi
| ilari++ broonie++ | 22:35 |
|
Suhail
| Ilari: thanks, move worked perfect | 22:35 |
|
| Ilari: I thought it was going to suck a lot more than it actually did. | 22:35 |
| → mtkd joined | 22:36 |
| ← Ryback_ left | 22:39 |
| ← dodo_the_last1 left | 22:40 |
| ← Azerthoth left | 22:40 |
| → ankit9_ joined | 22:41 |
| ← fargiolas left | 22:42 |
| → sakyamuni joined | 22:43 |
| dwmw2 → dwmw2_gone | 22:44 |
| → gaveen_ joined | 22:45 |
| ← gaveen left | 22:45 |
|
hachi
| if I screwed up my config file, and now I have a bunch of refs/remotes/* that shouldn't be there | 22:46 |
|
| can I just delete the files from .git/refs/remotes/ | 22:46 |
|
| or is there more cleanup involved? | 22:46 |
|
thiago_home
| yes | 22:46 |
|
| there's .git/logs/refs/remotes | 22:46 |
| ← tatsuyao left | 22:46 |
|
hachi
| wow, what does that contain? | 22:47 |
| ← tono__ left | 22:47 |
|
doener
| it's the reflog for the ref | 22:47 |
| → rolfb joined | 22:48 |
| → jerbear joined | 22:48 |
| ← tvw left | 22:49 |
| → tvw joined | 22:49 |
| cpg|biab → cpg | 22:52 |
| ← hpoydar left | 22:54 |
| ← helo left | 22:56 |
|
pinholecamera
| Ilari: huh, it actually did merge them correctly. not sure why it took me so long to verify that. thanks for your help | 22:56 |
| sebleier → sebleier|away | 23:00 |
| ← mfilipe left | 23:01 |
| → porcnick joined | 23:01 |
| ← djgera left | 23:02 |
| → agile joined | 23:03 |
| → Dashkal joined | 23:03 |
| ← MisterN left | 23:04 |
| ← tbf left | 23:07 |
|
UUncia
| When I try to clone a remote repository I keep getting "fatal: The remote end hung up unexpectedly" (I use ssh://), but when I connect through ssh to that machine it's ok... any ideas why? | 23:10 |
| ← mtkd left | 23:11 |
| jefftriplett- → jefftriplett-afk | 23:12 |
| ← Suhail left | 23:12 |
|
Ilari
| UUncia: Any other messages? | 23:13 |
| ← SRabbelier left | 23:14 |
| ← javatexan left | 23:16 |
| ← elik left | 23:17 |
| → javatexan joined | 23:19 |
| → Budd joined | 23:19 |
| ← doener left | 23:20 |
| → djgera joined | 23:20 |
|
Budd
| Is there a nice way to get a list of git repositories on a server? I couldn't find anything relevant in the man pages. | 23:21 |
|
| I'm trying to make a script to auto-update all the x.org packages from git. | 23:22 |
| ← rolfb left | 23:22 |
|
Ilari
| Budd: No, unless the server offers some specific way to do it. | 23:22 |
| → loincloth joined | 23:23 |
|
Ilari
| Budd: As with some common setups, a git repo could be lurking pretty much anywhere in filesystem. And there's no registry of them. | 23:24 |
|
Budd
| OK. They do have an index web page, which will suffice - just less automatic. | 23:24 |
|
| Thanks. | 23:24 |
| → sergiodj joined | 23:25 |
| → LiamH joined | 23:25 |
| → agenteo joined | 23:25 |
| ← LiamH left | 23:26 |
| ← countd left | 23:26 |
|
djgera
| Hi people, in my machine, i doing some weekly backups from my entire GNU/Linux system to another harddisk with a "rsync -a", in some directories I have some GIT repos, my question is: these GIT repos, are corrupted or GIT don't know about some "file stats" (like inode, timestamps, etc are changed)? | 23:28 |
| ← tvw left | 23:28 |
| → jballanc joined | 23:29 |
|
bdrewery
| djgera: that's fine | 23:29 |
|
| I rsync my .gits all the same all over, they all function properly | 23:29 |
|
djgera
| bdrewery, so git only tracks only the contents of files , true?, like read in some manpages | 23:30 |
|
Ilari
| djgera: Git DOES know about those and uses them. | 23:30 |
|
djgera
| ooh OK | 23:30 |
|
Ilari
| djgera: Use 'git update-index --refresh' or 'git status' to fix them. | 23:30 |
|
| djgera: That info being wrong can lead to Git considering clean file dirty, leading to some operations aborting. | 23:31 |
|
djgera
| thanks, let me try.... | 23:31 |
|
| will do a simple "cp -a" | 23:31 |
|
bdrewery
| yeah forgot to mention the status part, simple solution though | 23:31 |
| ← rektide left | 23:32 |
|
Ilari
| djgera: And those false dirties won't show up in diff. | 23:32 |
| ← jrmuizel left | 23:33 |
|
djgera
| mmm OK, the git status don't show any "changes" after "cp -a" under new dir. | 23:33 |
| → sergio_ joined | 23:34 |
|
djgera
| also git update-index --refresh, none output, | 23:34 |
| ← poseidon left | 23:34 |
| ← sgrimm left | 23:34 |
| → Suhail joined | 23:34 |
|
Suhail
| i am getting permission denied for my repo after adding my pub key to gitosis | 23:35 |
|
Ilari
| djgera: Git status essentially first runs 'git update-index --refresh'. | 23:35 |
| ← vipul left | 23:35 |
|
Ilari
| djgera: AFAIK, there is no easy way to get list of those falsely dirty files. But they mess things such as merges. | 23:35 |
| → rektide joined | 23:36 |
|
Ilari
| Suhail: You authorized that key to access that repo too? | 23:36 |
| → qrush joined | 23:36 |
|
Suhail
| Ilari: put in the keydir and added the <filename> to the members list | 23:36 |
| ← wmoxam left | 23:36 |
|
djgera
| ok so, for safe/secure backup, then... ignore these git repos in rsync, then do a git clone ? | 23:37 |
|
Ilari
| Suhail: If the key file is called 'foo.pub', the username is 'foo'. Also, any warnings mean it DOES NOT WORK. | 23:37 |
|
| djgera: You can rsync them, as long as you remember that those repos need fixing before being used. | 23:38 |
| ← sergio_ left | 23:38 |
|
Suhail
| Ilari: yeah i did that | 23:39 |
| → sergio_ joined | 23:39 |
|
Suhail
| Ilari: I made a called test.pub and added "test" to the members list | 23:39 |
|
| Ilari: now I am trying to clone the repo locally and it won't let me | 23:39 |
| ← rylar left | 23:40 |
| ← Ademan left | 23:40 |
| ← Alien_Freak left | 23:40 |
|
Suhail
| Ilari: and it asks for my password | 23:41 |
|
Ilari
| Suhail: Key problems. | 23:41 |
|
djgera
| oh sorry, then misinterpreted. You mean I can be sure that after a "git status" or the another command, all is right and ready to use without any problem, right? | 23:41 |
|
Ilari
| djgera: Yes. | 23:41 |
|
djgera
| many thanks! | 23:41 |
|
Ilari
| Suhail: That is, if it asks for password, SSH has rejected keypair authentication attempts. | 23:42 |
| ← meyering left | 23:42 |
|
Ilari
| Suhail: And with gitosis it means you don't either have valid key to authenticate or SSHD is configured to deny logins to the whole account. | 23:43 |
|
djgera
| recently started working with git, I had never worked with this software, just download and compile software really is impressive. Again thank :) | 23:43 |
| → poseidon joined | 23:43 |
|
Ilari
| Suhail: Where did you get the .pub file you added to keydir/? | 23:44 |
|
Suhail
| Ilari: account isn't denied | 23:44 |
|
| Ilari: I generated it locally | 23:44 |
|
Ilari
| Suhail: You didn't have keypair before? | 23:45 |
| → rylar joined | 23:45 |
| ← warthog9 left | 23:45 |
|
Suhail
| Ilari: I got it to work, just have to add the private via ssh-add | 23:46 |
|
| Ilari: think that was the problem | 23:46 |
|
Ilari
| Suhail: I consider having multiple ssh private keys per account a mistake. | 23:46 |
|
Suhail
| Ilari: just wanted to test | 23:46 |
|
Ilari
| Suhail: Unless the others are for special purpose use. | 23:47 |
| ← javatexan left | 23:47 |
|
Ilari
| Suhail: That is, each account has one and only one SSH private key for interactive use. Anything else is asking for trouble. | 23:47 |
| ← sergiodj left | 23:48 |
| ← romao left | 23:48 |
| → javatexan joined | 23:49 |
| ← cmarcelo left | 23:50 |
| → scientes joined | 23:53 |
| → warthog9 joined | 23:53 |
| → arohner joined | 23:55 |
| → peshalto joined | 23:56 |
| ← wshimmy left | 23:58 |
| → wshimmy joined | 23:59 |
| ← intripoon left | 23:59 |