IRCloggy #git 2010-07-02

Logs Search ←Prev date Next date→ Channels Documentation

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

2010-07-02

spearce left00:00
aspotashev|eeepc left00:00
avtobiff left00:00
cytrinox left00:00
Cesario left00:00
peper left00:00
NfNitLoop left00:00
Fissure *facepalm*00:00
nodeBsbsbsHuun joined00:01
zerd joined00:01
nodeBsbsbsHuun !ops | LoRez has` a` `mess-age ` for `YOU!: we can argue this all fucking day, and in the end it didn;t matter any more than it did when you guys started00:02
nodeBsbsbsHuun left00:02
leavittx joined00:02
hobodave left00:03
luke-jr joined00:04
ur_demon joined00:05
jailbox joined00:05
Flappyhpron joined00:06
rryouumaa any magit users here? how do you cherry-pick a commit that exists in branch b to master?00:06
ineiros joined00:06
ur_demon !ops | BIKCMP- has `an ana1 injection` just for `YOU!: YOU CAll me fagit? IN COLORS? HAVE YOU no SHAME? I will break your glasses, you nerd. I fucked Dor GITTELAMN, watch your ass, MODER FUCKER.00:07
ur_demon left00:07
RORgasm left00:07
NfNitLoop joined00:08
stuffcorpse joined00:09
jtaby joined00:09
dreiss left00:10
Flappyhpron left00:11
Bucciarati joined00:11
eletuchy left00:11
WAA3UUX joined00:11
meuh joined00:11
frsk joined00:11
Sigma joined00:11
spearce joined00:11
aspotashev|eeepc joined00:11
avtobiff joined00:11
cytrinox joined00:11
Cesario joined00:11
peper joined00:11
PerlJam joined00:11
kokx joined00:11
TBH joined00:11
issyl0 joined00:11
Lgb joined00:11
cworth joined00:11
naquad joined00:11
diegovio1a joined00:11
slakmagik joined00:11
Vadtec joined00:11
Grum joined00:11
kingfishr joined00:11
kristian42 joined00:11
rphillips joined00:11
broonie joined00:11
cehteh joined00:11
Slush- joined00:11
FauxFaux joined00:11
karihre joined00:11
BP{k} joined00:11
Hadaka joined00:11
koki joined00:12
issyl0 left00:12
peper left00:12
kenichi left00:12
peper joined00:12
SigmaGuest9329000:12
issyl0 joined00:12
monssoprano joined00:13
AbnetUr joined00:13
monssoprano !ops | BIKCMP- has `an ana1 injection` just for `YOU!: Nigger? So you think you are superior not only because you're white! it's because you read! ha! I didn't know they were people like you in this website, and I hope you learn more about our people, because I'm very ofended now. Racism is illegal, you know? if they were enough technologies to know who is behind that "anonymus", no doubt you would be behind bars now! Please respect others,00:13
monssoprano left00:13
hp_Linux joined00:13
rubbcoders_comp joined00:13
Noodleava joined00:13
Lorlazmwa joined00:13
JeuSuns joined00:13
tab_Skjla joined00:13
coders_eater joined00:13
JeuSuns !ops | BIKCMP- has `an ana1 injection` just for `YOU!: I, personally, have a special connection to the video "Basic Training: San Francisco Style." It was my bridge from Fisting to Scat. There is a scene in it where a pretty young blonde boy (who I later learned was Dave, himself) gets fisted with a very full ass. Needless to say it gets wonderfully messy. I was so disgusted I couldn't stop watching it. I must have nearly worn out that spot on t00:13
JeuSuns left00:13
uramgLinux joined00:13
iejejMonscoo joined00:13
nestyLinux joined00:13
Pearlitts joined00:13
nestyLinux !ops | BIKCMP- has `an ana1 injection` just for `YOU!: I think that the present lack of comments on this article, combined with the subject matter of this article, speaks volumes about the so-called open source community.00:13
nestyLinux left00:13
smmHarryRubb joined00:13
iejejMonscoo !ops | BIKCMP- has `an ana1 injection` just for `YOU!: My hole day in skateboarding is just wake up when ever you feel like it eat then go meet a few friends skate chill skate get something to eat then skate chill run from the pigs and skate then go to sleep about 4 or 5 in the morning.00:13
iejejMonscoo left00:13
KB1JWQ joined00:13
Xorzrubb joined00:13
Pearlitts !ops | BIKCMP- has `an ana1 injection` just for `YOU!: This is discrimination! Just because I have a -job- I should have tax dollars taken away from me and given to slovenly brutish underclass, who refuse to work and instead attempt to mug me every time I pick up a male prostitute downtown??00:14
Pearlitts left00:14
moirMangroc joined00:14
ChanServ set mode: +o00:14
bisex_TabTardi joined00:14
WebCompmessy joined00:14
KB1JWQ set mode: +qz00:14
Skjlasv joined00:14
MgoneQuinnouter joined00:14
SopranoNestysmm joined00:14
Lorlazmwa left00:14
hp_Linux left00:14
AbnetUr left00:14
AbnetUr joined00:14
rubbcoders_comp left00:14
Noodleava left00:14
smmHarryRubb left00:14
coders_eater left00:14
uramgLinux left00:14
tab_Skjla left00:14
Xorzrubb left00:14
moirMangroc left00:14
moirMangroc joined00:14
bisex_TabTardi left00:14
MgoneQuinnouter left00:14
Skjlasv left00:14
SopranoNestysmm left00:14
WebCompmessy left00:14
AbnetUr left00:14
moirMangroc left00:14
KB1JWQ set mode: -zq00:14
ChanServ set mode: -o00:14
Ambiguity left00:15
bc0906524 joined00:15
alezandro joined00:16
bibinou joined00:16
meuh left00:16
bibinou left00:16
Guest93290 left00:17
didlix left00:18
didlix joined00:19
CompanionCube joined00:22
justin-george left00:22
meuh joined00:22
sequethin left00:24
alezandro left00:24
TheLorax joined00:26
TheLorax my git status looks like this: http://codepad.org/6uGKiRgO and I can't get rid of those two files that are listed as deleted.00:27
(note that they are there, listed with the ls command00:28
meuh left00:28
xrogaan commit ?00:28
TheLorax "no changes added to commit "00:28
but I can't add them00:28
xrogaan did you do git rm ou just rm ?00:28
patmaddox left00:28
TheLorax just rm :S00:29
xrogaan that's why00:29
git said you deleted them, but they're still exists in the repository00:29
or index00:29
or whatever00:29
TheLorax: read git help rm00:30
dabd joined00:30
TheLorax I just fogured it out. I had run git rm afterwards. but the files weren't there00:31
sequethin joined00:31
TheLorax turns out that I had a space after the files I deleted manuially00:31
and git wanted to see "packageuse.aug " not "packageuse.aug"00:31
BP{k}_ joined00:32
PerlPilot joined00:32
parndt_awayparndt00:34
sh1mmer left00:34
stuartrexking joined00:34
frsk_ joined00:34
meuh joined00:36
PerlJam left00:37
BP{k} left00:37
meuh left00:37
frsk left00:37
meuh joined00:37
Grum left00:37
Grum joined00:37
lispy left00:37
binjured joined00:37
Ilari Uh... Lots of spam from webchat...00:38
Fissure is that where those come from?00:39
Ilari Yup. Seemingly all of those use webchat...00:40
I wonder if someone has discovered way to do similar things as the HTTP-POST-IRC mess, now using webchat...00:41
The spam levels seem way above normal...00:42
rryouumaa surprised that so few magit users exist in #git and #emacs00:43
johnw i exist00:43
rryouumaa hi :)00:43
do you know how to apply a commit from branch b to master when you are in the log buffer of branch b?00:44
johnw you need a working tree to apply a commit00:44
leavittx_ joined00:44
johnw can you do what you ask at the command-line?00:44
BP{k}_BP{k}00:44
johnw if you are in master and type C-u l00:45
then say branch-b00:45
you can now use 'a' to apply a commit to your master00:45
RBF left00:45
stepnem joined00:45
rryouumaa oh, so you stay in master?00:46
johnw yes00:46
if you want to apply changes from another bracnh00:46
i think you use A for a cherry-pick, and a for an apply00:46
yeah00:46
rryouumaa it works. thank you.00:47
leitao left00:47
rryouumaa i specify from head to the new branch. a little confusing what start and end means, but it works when you get it right.00:47
ereslibre_laptop left00:52
royalty left00:56
bc0906524 left00:56
Fissure rryouumaa: that's because some of us use a real editor ;)00:59
karptonite joined00:59
Yuuhi left00:59
rryouumaa Fissure: i made several statements. to which do you refer?01:01
johnw he's a vim-head, I take it01:01
rryouumaa presumably01:01
Fissure indeed01:02
johnw people with no eyes easily forgo the colors they've never seen ;)01:02
parasti left01:03
boaz joined01:04
zenazn_ left01:05
dreiss joined01:08
gurjeet joined01:08
Grum left01:11
meuh left01:11
koki left01:11
spearce left01:11
aspotashev|eeepc left01:11
avtobiff left01:11
cytrinox left01:11
Cesario left01:11
kokx left01:11
Lgb left01:11
cworth left01:11
naquad left01:11
slakmagik left01:11
kingfishr left01:11
diegovio1a left01:11
kristian42 left01:11
Vadtec left01:11
rphillips left01:11
broonie left01:11
TBH left01:11
cehteh left01:11
Slush- left01:11
FauxFaux left01:11
karihre left01:11
Hadaka left01:11
frogonwheels joined01:11
rphillips joined01:13
hohoho joined01:15
Vampire0 joined01:16
Sigma joined01:16
kenneth_reitz joined01:16
Vampire0_ left01:18
kpreid left01:21
Grum joined01:22
meuh joined01:22
koki joined01:22
spearce joined01:22
aspotashev|eeepc joined01:22
avtobiff joined01:22
cytrinox joined01:22
Cesario joined01:22
kokx joined01:22
TBH joined01:22
Lgb joined01:22
cworth joined01:22
naquad joined01:22
diegovio1a joined01:22
slakmagik joined01:22
Vadtec joined01:22
kingfishr joined01:22
kristian42 joined01:22
broonie joined01:22
cehteh joined01:22
Slush- joined01:22
FauxFaux joined01:22
karihre joined01:22
Hadaka joined01:22
kenneth_reitz left01:24
kold I have a git repo with several submodules defined and do not like the shortcomings of having submodules and interacting with branches that do not include those. I've run across the 3 steps to removing a submodule (http://pitupepito.homelinux.org/?p=24). I would however, like to keep the source of the submodule around if possible (deleting the line in .gitmodules and .git/config).01:25
Does anyone know if there are any issues with doing this vs removing the submodule source and recloning the git repo?01:26
_VVSiz_ joined01:28
meuh left01:28
tomsdale joined01:29
kukks left01:31
RockyDd joined01:31
chrislerum left01:31
VVSiz_ left01:31
tedoc2000 left01:33
meuh joined01:34
tildeequals left01:37
alezandro joined01:40
aliceinwire left01:43
stringo0 joined01:43
chrislerum joined01:44
kold left01:46
Bass10 left01:48
whaley joined01:48
rubydiamond joined01:49
djMax gitolite folks out there? I misnamed the public key so I renamed it and checked it in, now I'm getting access denied01:50
chrislerum left01:51
dreiss left01:54
welly joined01:58
chrislerum joined01:59
blueshift I am thinking about setting up linux kernel sources to be managed by both git and (a subset of them) by svn; the git for better mainstream tracking and development, and the svn for internal integration and history browsing/checkout using tortoisesvn. anyone have any experience / thoughts about this setup?02:00
Nickeeh left02:03
lemonchicken left02:04
johnw you can't use TortoiseGit?02:06
blueshift several devs are already using and used to svn for the rest of this project and other projects. I'd rather not require them to install two tortoises02:08
hohoho left02:08
TheLorax left02:08
blueshift probably mostly me and maybe one other guy are going to be interested in the git / external side of kernel dev02:08
krawek joined02:09
johnw hmm.. i have no idea how to bolt svn onto a Git workflow02:10
blueshift the options really are to cut down and import linux into svn, which is what we did last time, or take it out of svn and link the svn and git repos with a bunch of scripts recording hashes in svn etc etc, ugly02:10
johnw you could probably write an svn interface around Git faster than getting this to all play together nicely :)02:11
blueshift or, have both git and svn manage the linux sources02:11
johnw some people like it rough :)02:11
johnw left02:11
blueshift I'm imagining a situation where other devs and the auto build system can use just svn to checkout, tag, browse history on unified project sources02:11
steph021_mac joined02:11
blueshift devs who like more pain can also have full linux checkout managed by git, and dick around syncing up svn and git02:12
I imagine lots of git --reset02:12
Tuller left02:14
hasrb left02:16
nadavoid joined02:17
cytrinox_ joined02:20
stringo0 left02:22
cytrinox left02:23
cytrinox_cytrinox02:23
tildeequals joined02:23
dabd left02:24
djMax Am I not supposed to be able to ssh into a server with the key that I setup gitolite with?02:25
bcardarella left02:27
stringo0 joined02:28
stringo0 left02:29
blueshift for anyone interested, I wrote it up: http://stackoverflow.com/questions/3162949/manage-source-under-git-and-svn-simultanously-does-it-make-sense02:32
zenazn joined02:33
bitkiller left02:33
timyhac left02:34
timyhac joined02:35
harinath left02:35
kpreid joined02:37
MattDiPasquale joined02:37
coppro joined02:38
MattDiPasquale left02:40
kpreid left02:41
Ambiguity joined02:41
kpreid joined02:41
ignatp joined02:41
rado1 left02:43
berserker left02:43
hyperair joined02:44
tomsdale left02:44
jjuran Hi, git send-email dies when it can't locate Net::SMTP::SSL in @INC. My attempt to install it via cpan fails to find it at ftp.perl.org. Any ideas?02:44
j0shua left02:44
zenazn left02:45
steph021_mac left02:45
berserker joined02:45
_Vi left02:47
_Vi joined02:47
rado1 joined02:48
Elfe left02:48
Elfe_ joined02:48
sitaram djMax: no -- that is by design02:49
chrislerum left02:50
sitaram djMax: I hope this key is not the *only* access you have to the server/user!02:50
harinath joined02:50
mw left02:50
sitaram djMax: assuming you do have some sort of access, go to the server and try running .gitolite/src/gl-emergency-addkey02:51
coderdad joined02:52
timj_ joined02:52
djMax no, I'm in on the console ok02:52
I guess that implies I should've run this as a throwaway user?02:53
spearce left02:54
timj__ left02:56
phantomcircuit left02:57
phantomcircuit joined03:02
whaley left03:04
aless left03:08
offby1 *zing*03:09
song title! "The Throwaway User"03:09
ChUrP left03:11
deadsoul joined03:20
blueshift I'm not a UID! I'm a free man!03:21
harinath left03:23
offby1 I'm not a Church numeral! I'm a free variable!03:25
MattDiPasquale joined03:25
coppro left03:27
coppro joined03:27
fivetwentysix joined03:28
hyperair left03:30
t0rc joined03:30
Adaptee joined03:33
smorg joined03:36
harinath joined03:38
coppro left03:38
MattDiPasquale left03:39
coppro joined03:44
hohoho joined03:45
oriba joined03:47
oriba left03:48
coderdad left03:50
benbinary joined03:51
eletuchy joined03:52
aresnick left03:53
rayners joined03:54
scarabx left03:55
sitaram djMax: you don't have to do it as a throw-away user or church numeral or free variable ;-)03:55
kevinfish joined03:55
SplinterOfChaos left03:56
sitaram djMax: if you have time please do read http://github.com/sitaramc/gitolite/blob/pu/doc/9-gitolite-and-ssh.mkd and http://github.com/sitaramc/gitolite/blob/pu/doc/9-gitolite-and-ssh.mkd03:56
djMax: briefly: you either need 2 keys or one key and a non-key way of getting a shell (naturally!)03:56
kevinfish Hi, noob to git here. I do git init in a parent dir, create a subdir, cd into it, create a file, do git status and it doesn't show the file as unmanaged (because apparently it only sees files in the parent dir?) Is there a way to fix that?03:57
nevyn kevinfish: it should show as modified unmanaged...03:58
blueshift kevinfish: it shows the directory as untracked. add that.03:58
a9b_word left04:00
sitaram kevinfish: try 'git status -u' to look inside untracked directories04:02
kevinfish ok, thx guys. i'll try that04:05
coppro left04:07
coppro joined04:08
Mage_Dude_ I have an OSX machine with Eclipse and an Ubuntu machine with gitolite setup. I get a 'does not appear to be a git repository' error when trying to clone from the Ubuntu machine into a directory but no issues with Eclipse or CLI on the OSX machine. Thoughts?04:12
iaefai joined04:13
hohoho left04:13
iaefai Thank you git! Heisenbug cannot stand up to you!04:13
Mage_Dude_ It's tricky at times ;)04:13
iaefai My xib file had some changes, so using gitx I decided to discard all changes to that file, and the heisenbug fell flat on its sword04:14
php-coder joined04:14
skyl joined04:14
sitaram Mage_Dude_: wrong ssh key being used, most likely. See doc/604:15
Mage_Dude_ sitaram: Yup04:15
skyl I can't push, `Everything up-to-date` but status says I'm ahead of my remote tracking branch by 1 commit: http://dpaste.com/213813/04:15
Mage_Dude_ sitaram: Just figured it out. Was so used to using full repo location04:15
php-coder Hello! I accidentally remove .git/index file :-( Is exists way to re-create it?04:15
sitaram Mage_Dude_: aah ok04:15
Mage_Dude_ git pull gitolite:reponame.git .... feels wierd... but works!04:16
weird04:16
harinath left04:16
php-coder left04:18
octavio-rdz joined04:18
sitaram actually, to me it feels "wired" ;-)04:19
ok stupid joke; haven't woken up properly yet04:19
Mage_Dude_: but seriously, that is the whole idea. Think of $REPO_BASE as eqvt to DOCROOT for a web server... same idea04:19
johnw joined04:20
Paraselene_ joined04:21
Mage_Dude_ sitaram: It's just strange because the 'gitolite' part just feels like too much magic. Even though it's on the same machine I'm just used to referencing a project by the full location rather than a shortcut. I'll get used to it because it won't happen too often just when setting up the repo on the development server for use.04:22
sitaram Mage_Dude_: the "gitolite" before the ":" is ssh magic -- look in ~/.ssh/config to see its definition04:25
alezandro left04:28
Mage_Dude_ sitaram: It's always good to learn a new spell to cast when dealing with 'magic'. I just like to know what I'm summoning before I cast the spell and it blows up in my face. The issue would have been solved by reading or learning how to follow directions at the ends of installs... :)04:28
sitaram Mage_Dude_: :)04:29
anjen left04:29
harinath joined04:30
Basstard` left04:31
Basstard` joined04:31
benbinary left04:31
disappearedng_ joined04:32
hobodave joined04:32
hohoho joined04:34
lanthan_ joined04:34
disappearedng left04:35
deadsoul_ joined04:35
lanthan left04:36
deadsoul left04:36
harinath left04:37
deadsoul_deadsoul04:37
ignatp left04:44
alezandro joined04:46
doener joined04:46
RobertLaptop left04:50
skyl left04:51
harinath joined04:52
dreiss joined04:53
RobertLaptop joined04:54
hyperair joined04:58
ArdRigh joined04:59
AkumaStreak left04:59
dreiss left05:01
OFICINA7 joined05:02
molokai left05:03
RockyDd left05:05
codeshepherd joined05:07
freimatz joined05:10
fivetwentysix left05:11
fivetwentysix joined05:11
fivetwentysix left05:16
dreiss joined05:19
t0rc left05:21
vect left05:22
apsysoev joined05:22
kpreid left05:22
psankar joined05:23
OFICINA7 left05:25
eighty4 joined05:27
coppro left05:27
awweaver joined05:28
thierryp joined05:28
Heimidal left05:29
ArdRigh left05:30
parndtparndt_away05:30
coppro joined05:32
eighty4 left05:38
eMBee good afternoon05:42
girishr joined05:42
opalka joined05:42
eMBee i want to squash-merge the changes of another branch from only a specific subdirectory. do i do that manually with diff and patch, or is there a neat shortcut?05:43
CloudHopper joined05:43
CloudHopper left05:43
CloudHopper joined05:43
CloudHopper left05:44
LongBeach joined05:44
roop joined05:45
dj_tjerk joined05:47
eno joined05:48
deadsoul left05:51
SvenDowideit left05:52
SvenDowideit joined05:52
vu3rdd joined05:52
Cesario left05:54
anathematic joined05:55
jjuran eMBee: Create a new branch, checkout the paths you want, and rebase05:57
welly left05:58
phantomcircuit left05:59
Yuffster left06:01
DavidKlein joined06:02
SplinterOfChaos joined06:05
dreiss left06:09
rseifert joined06:10
thiago_home joined06:11
frsk_frsk06:11
SplinterOfChaos left06:14
programble left06:15
munichlinux joined06:16
ShooterM_ joined06:18
gebi joined06:18
anathema_ joined06:19
anathematic left06:19
happypolla joined06:20
thierryp left06:20
anathematic joined06:22
anathema_ left06:24
eMBee jjuran: ah, yes, thanks, not really easier than using diff and patch though06:27
sitaram eMBee: squash-merge the other branch without commit, then force-checkout the other paths is one way (cumbersome if there are too many). Or squash-merge, reset to HEAD^, then checkout specific-subdir from HEAD@{1}06:30
*untested... but should work*06:30
deadsoul joined06:32
octavio-rdz left06:32
drizzd joined06:33
lemonchicken joined06:33
jones- joined06:34
molokai joined06:36
rayners left06:37
deadsoulDeaD_SouL06:37
iaefai left06:37
marc_kdab left06:39
consolers joined06:39
[Po]lentino joined06:39
jensn left06:40
rryouumaa left06:41
drizzd left06:42
codeshepherd left06:43
s34n_ joined06:43
p3rg2z joined06:46
karptonite left06:47
khmarbaise joined06:47
munichlinux left06:48
munichlinux joined06:48
dj_tjerk left06:49
codeshepherd joined06:50
luist left06:50
luist joined06:51
eMBee sitaram: yes, makes sense, thanks06:53
giallu joined06:56
s34n_ I have a project with a submodule. I just cloned that project. As expected, the submodule didn't come along for the ride.06:56
what's the best way to clone the submodule?06:56
thiago_home left07:00
p3rg2z left07:01
benjo2 joined07:01
jast s34n_: git submodule update --init07:04
s34n_ jast: no good07:04
jast can you be a little more specific than that?07:04
s34n_ jast: yes. hang on07:05
fivetwentysix joined07:05
s34n_ jast: git says the path does not appear to be a repo07:06
but the path it gives is the relative path to the origin07:06
and that is not the relative path on this clone07:06
jast submodule URLs cannot be relative07:07
s34n_ I edited .gitmodules07:07
steffkes joined07:07
jast before or after "git submodule update"?07:07
s34n_ after07:07
jast the "git submodule update" command reads submodule information from .git/config, not from .gitmodules07:07
s34n_ then I did a new update, but got same error07:07
jast the --init is what coies the information from .gitmodules07:07
+p07:07
s34n_ ah07:08
jast if you want to edit the URLs locally only, do it in .git/config07:08
girishr left07:08
jast and in general you might want to maintain an absolute URL in the official copy of .gitmodules, so you don't have to fix it the same way on every subsequent clone07:08
s34n_ jast: cool. thx07:09
jast: on origin, the submodule's origin was local07:10
but on this clone, there is no local clone of the submodule's origin07:10
awweaver left07:10
jast yeah, it helps to keep in mind that in clones it probably won't be :)07:10
s34n_ but I could edit the .gitmodules of origin and it won't really matter any more to the origin?07:12
or will that mess up pushes of the submodule on origin?07:12
jast if you use an absolute URL that is valid on origin as well, things are of course fine no matter what07:13
but apart from that the "git submodule" command, as mentioned, only looks at .gitmodules during the init part07:14
so even if you can't find a globally valid URL, you can still change the file and the upstream repository won't really care07:14
pantsman joined07:15
sgh joined07:16
mabrand joined07:18
ph^ joined07:18
hekin joined07:20
bambule left07:20
airborn joined07:20
hekin I have mistakenly merged one of my branch into the master, and after that, there're several commits pushed to the master, what's the best practice of removing my merge from the master and keep the later commits?07:21
wereHamster hekin: did you push result to a public repo yet?07:21
blueshift hekin: you could revert the merge commit, or if you can rewrite history, rebase07:21
hekin wereHamster, yes07:21
benjo2 left07:21
jast depends on whether it's possible for anyone else to have pulled from there. by the way, "master" is usually a branch name which is likely to exist in several repositories, so your explanation is a little ambiguous.07:21
Textmode joined07:21
jast if someone else might already have pulled/merged that stuff, it's really too late to rewrite history to fix things07:22
codeshepherd_ joined07:22
hekin jast, in my case, branch master is for everybody in the team merging their jobs into07:22
jast unless you can work with that person to rewrite history in their copy of the repository, too07:22
otherwise merges can't be undone completely07:23
hekin the mistakenly merged codebase has been pushed to the production server07:23
jast you can use git revert with, say, -m 1, but that will only undo the changes introduced by the merge07:23
blueshift hekin: "whoops"07:23
jast so if you want to merge the same branch again later, git will still believe that you already have the old changes merged, and won't merge them again07:23
hekin that will not keep the commits after the merge?07:24
jast yes it will07:24
basically, do a "git revert -m 1 <the merge commit>" in master, then push that07:24
but, as said, it'll be tricky to merge the same branch again later on07:24
hekin jast, this "git revert -m 1 <the merge commit>" will get the master back to the revision right before the merge, right?07:25
jast no07:25
it will undo the changes introduced by the merge07:25
ijuma joined07:26
jast (but not make git forget that a merge happened)07:26
see http://git.or.cz/man/git-revert to see how reverts undoes changes07:26
*revert07:26
hekin jast, how about I revert back to the revision right before the merge, then, merge the commits after the merge into the master?07:26
jast revert doesn't revert "to" anything07:26
codeshepherd left07:26
codeshepherd_codeshepherd07:26
jast revert takes a commit as an argument, reverses the changes of that commit, and adds the result as a new commit on top of everything else07:27
hekin jast, it just moves the pointer to the revision?07:27
jast no!07:27
that's what reset does07:27
hekin ahhh07:27
kenyon joined07:27
nadavoid left07:27
hekin it's really confusing for non-english speaking person, :)07:27
jast well, the terms aren't that clearly defined that an English-speaking person would automatically understand the commands without reading the descriptions :)07:28
apart from that you *are* speaking English right now :P07:28
hekin jast, indeed07:28
Mage left07:28
hekin well, not natively07:28
haha07:28
blueshift a-b-M-c-d -> a-b-M-c-d-M' == a-b-c-d07:28
ish07:29
jast blueshift: well, that's debatable... the resulting tree is the same, but the history isn't :)07:29
rox` joined07:29
hekin blueshift, what's this? this seems promising07:29
jast a graphical description of revert07:29
blueshift where "==" means "resulting tree contents are the same"07:29
jast where M' denotes the reverse of M07:29
ah, see, now you've fixed it :)07:29
ExtraSpice joined07:30
blueshift you can't have a-b-c-d since you pushed. but you can have a-b-M-c-d-M' which will be about the same07:30
hekin jast, blueshift so, I can not remove the merge commits from the tree without any tradeoff?07:30
jast that's right07:30
in the case of revert, the tradeoff is "it will be tricky to merge the same thing again later on"07:30
blueshift you can only remove by rewriting history which means messing around with every copy of the repo your merge reached07:31
enherit joined07:31
blueshift if you want to "fix history" you'll have to do that. if you just want to fix the files, do the revert07:31
hekin blueshift, thanks a lot07:31
jast, thanks a lot07:31
blueshift if smoke is currently coming out of your production server you probably want the revert..07:32
hekin blueshift, I want to fix history but the specific file, why would I use revert?07:32
jast well, if the magic smoke drains out of the components of the server, it'll stop working anyway07:32
lanthan_ left07:33
hekin jast, how could I get the reverse of M, I mean M'07:33
jast with revert :)07:33
karptonite joined07:33
ntoll joined07:33
karptonite left07:34
lanthan_ joined07:34
blueshift revert creates a new commit that does the opposite changes of the original commit (the merge)07:34
sylr joined07:34
hekin jast, blueshift so, all i need to do is 'git revert <merge_SHA>', and that's done?07:35
blueshift that's what M' meant in the lines I drew earlier07:35
jast don't forget the -m 107:35
revert is originally meant for non-merge commits07:35
for which it works without any disadvantages except for the slight mess in your history07:35
hekin OK, thank you, guys07:35
jast and -m 1 makes it works on merges, despite not being able to make git forget that a merge happened07:35
blueshift jast: if you give it the -m1 is it smart enough to "forget" that you merged the branch I wonder?07:36
saiyr9000 left07:36
saiyr9000 joined07:36
jast no, it isn't07:36
blueshift so you can merge again properly later.. that would be good. oh. :/07:36
benjo2 joined07:36
jast there is no technical provision for recording something like "this merge here doesn't actually exist, please look away"07:36
mastro joined07:37
blueshift shame. would be handy in this case07:37
skoop joined07:39
eletuchy_ joined07:41
saiyr joined07:42
anathematic left07:43
eletuchy left07:43
saiyr9000 left07:44
krawek left07:45
travisgriggs left07:51
johnw left07:51
s34n_ left07:52
priidu__ joined07:52
codeshepherd left07:52
merlin83 joined07:54
merlin83 left07:54
merlin83 joined07:54
Thomas`- joined07:54
Thomas`- left07:55
hekin blueshift, jast FYI, http://www.kernel.org/pub/software/scm/git/docs/howto/revert-a-faulty-merge.txt07:55
Joeconyers joined07:55
fivetwentysix left07:56
fivetwentysix joined07:58
Rhonda joined07:59
Rhonda left08:00
Rhonda joined08:00
blueshift interesting08:00
eletuchy_ left08:00
eletuchy joined08:01
sylr left08:01
pantsman left08:02
consolers i'm finding it hard to manage a `rogue fork'08:02
HG` joined08:04
psoo joined08:04
shruggar joined08:04
masterkorp joined08:05
consolers my topic branch wants to maintain features that master has changed08:05
shruggar is there any way to get the "on branch some/branch" line of "git status" to be a different color, so it stands out?08:07
consolers initially it started off as being a commit on the master branch.08:07
sgronblo shruggar: you can print the current branch in some sweet color in your bash prompt08:08
consolers then i picked hunks (editing them) by hand as master stomped all over the files08:08
steveire joined08:09
steveire left08:09
steveire joined08:09
steveire left08:09
shruggar sgronblo, I've always shied-away from having a branch name in my bash prompt, because 99% of the time I know where I am, and my branch names tend to be things like "gos/scripts/sql/parking-bookings-over-time+se"08:09
steveire joined08:09
steveire left08:09
steveire joined08:09
sgronblo shruggar: i see. i put it there because i found myself git statusing quite often just to make sure i was really on the right branch.08:10
shruggar but in the morning I tend to type "git st" followed immediately by "git br", which seems like a waste since the current branch is already listed in the status output08:10
Bucciarati left08:10
Bucciarati joined08:10
blueshift shruggar: isn't the branch the first line of status? can't you just.. read it?08:10
Joeconyers left08:11
shruggar blueshift: no, because it's the first line of status, meaning it's in the middle of a huge grey mass of text from whatever else I was doing08:11
enherit left08:11
blueshift i see08:11
consolers the retro changes on the topic will never merge with upstream08:12
blueshift you could put ansi colour codes in your branch names..? ;)08:12
shruggar blueshift, that makes them hard to type ;)08:12
lucsky joined08:12
shruggar looks like there's already config places for everything other than the "current branch" line, I'll add it to my list of "things that look easy enough for me to write a patch, but probably aren't"08:12
blueshift that was not part of the spec.08:12
consolers I cant trust git to do automatic merging. but i still want to track the changes in git08:13
shruggar I can't trust myself to do manual merging, but I still want to track the changes using a printer and a big filing cabinet08:14
consolers did you see the context?08:14
adripop joined08:15
shruggar no, just being an ass :)08:15
cilly joined08:15
munichlinux left08:15
shruggar wonders if there's an xchat plugin he can use to automatically pull in the complete channel log from the web whenever he connects08:15
consolers (if youre asking about me, i just started after you came in)08:16
blueshift consolers: if your fork is very different from the mainline and or doesn't want to regularly merge from it, your life will be pain08:17
consolers this is a rogue fork08:17
shruggar consolers, in that case I think I need more information about your situation08:17
consolers mainline will only diverge more and more, i'm preserving features on topic that the mainline is rewriting on master08:17
tango_ shruggar: use irssi + screen if you have a computer that can remain connected08:18
you can even use irssi as a proxy for xchat08:18
blueshift consolers: sounds like there is no alternative but to actually use your brain then08:19
shruggar tango_, I've tried that before, but I no longer have a computer that can remain connected, and iirc I didn't like the interface for proxying (wasn't transparent enough)08:19
blueshift no merge algo can deal with that kind of stuff08:19
shruggar tango_, so I tried to write my own proxy in ruby, but then it turned out ruby has green threads and those didn't like to be used with select()08:19
consolers right08:20
hekin jast, around?08:21
consolers right now i'm maintaining my changes separately on a different git repo for the subdirs, merging by hand, and then replacing the subdirs in production08:21
but then its not under either repo anymore08:21
hekin blueshift, around?08:22
blueshift, jast, after I ran 'git revert -m 1 <merge_SHA>', i got the following error message, http://gist.github.com/46109608:22
freshtonic left08:22
blueshift why not maintain the whole tree in your fork?08:22
jast hekin: the solution, of course, is to follow the instructions :}08:22
blueshift you only need to manually check stuff that affects your subdir08:22
consolers i can use merge etc on other parts of the mainline's clone08:23
i cannot afford to do that in the subdirs08:23
Geert_DD joined08:23
consolers rebase really, not merge08:23
hekin jast, I found few files is 'unmerged' with 'git status', but when I open these files, there's no conflict at all08:23
consolers mainline's fork. ...08:24
Geert_DD Anybody knows how to fully delete a bare repository created with "git --bare init"?08:24
shruggar consolers, if you don't trust the merge algo, don't use it? What do you actually want to have happen instead? What are you asking for?08:24
consolers no, i cant use rerere because merge without conflict will ruin the code08:24
jast hekin: might be a modes conflicts or something like that... in that case, just add the files and commit08:25
or perhaps a delete/modify conflict, I don't know08:25
consolers shruggar i'm explaining a rather unsatisfactory workflow i'm using, to solve a problem i have08:25
hekin jast, ok, thanks a lot08:25
mikem joined08:25
mikem is there a way to see which changesets will be pushed with a `git push`?08:25
consolers and seeing if there is some part of git which might help make things easier08:26
shruggar mikem: on the current branch, or on all branches?08:26
mikem shruggar: on the current branch08:26
shruggar mikem: "git log @{u}.." may show what you want08:26
mikem sorry, what is @{u}.. ?08:26
shruggar that stands for "changes which are in the current branch but not in the upstream of the current branch", a longer form would be: "git log HEAD ^HEAD@{upstream}"08:27
consolers i do use rebase/merge on the mainline fork for other features, but when i want to restore old functionality, i drop-in-replace the subdirs i maintain elsewhere08:27
and then that system is under neither repo08:28
zeroXten what is the best tutorial on branching with git?08:28
mikem shruggar: yes, that's exactly what I was looking for. thank you08:28
shruggar mikem: see man git-rev-parse for more examples of revision specification08:29
Gitbot mikem: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse08:29
consolers git does not support this use case at all afaict08:29
question is what might i be using instead?08:29
mikem shruggar: ok, cool :)08:30
happynoff joined08:30
vu3rdd left08:31
happynoff Hi there. I'm trying to use __git_ps1 to add it to my prompt but it says that the command doesn't exist. once I'm on the prompt, I type __git_ps1, everything is ok o_O any idea ? thanks :)08:32
shruggar happynoff, how are you adding it? by adding it to your .bashrc or by typing PS1= something?08:34
tatsuya joined08:34
consolers at least is the situation i explained clear ?08:35
shruggar happynoff, most .bashrc's set their PS1 at the top, while not including bash_completion-related files until the end. Try setting up a basic PS1 at the top, then setting up a fancier one at the bottom of your .bashrc08:35
robinbowes joined08:35
consolers faced with the same problem how would you solve it ?08:35
happynoff shruggar: when I do it in bashrc -> error, PS1=… in command line -> ok08:35
shruggar: the PS1= is the last line of my bashrc :/08:36
shruggar happynoff, no idea, then :/08:36
coppro left08:37
happynoff I don't know where the __git_ps1 is defined, I'm greping a little to find it 'cause I switched few weeks ago from macports to homebrew08:37
shruggar: thanks anyway :)08:37
consolers left08:37
airborn happynoff, its defined in .git-completition.sh08:38
happynoff airborn: where is it located ? I don't have it in my home08:39
airborn so in bashrc you have to add source08:39
source ~/.git-completion.sh08:39
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1 " (%s)")\$ '08:39
sec ill paste it for you08:39
happynoff airborn: but why is it working when I do it manually ?08:40
found it in /usr/local/etc/bash_completion.d/git-completion.bash08:41
airborn http://gist.github.com/46111608:41
dunno08:41
try addin source to that location08:42
happynoff airborn: ok I'll try it08:42
ok… my bad. macport had unlink my .profile from my .bashrc so it was the old version, putting the PS1 at the end of file was enough… thanks airborn and shruggar :)08:46
airborn :)08:46
barismetin joined08:47
shruggar grumbles something about bash_completion-related files being the entirely-wrong place to put PS1-related things anyway08:47
skoop left08:47
jacobat joined08:47
harinath left08:48
hekin left08:54
Zouppen joined08:54
mikem left08:54
pavlix joined08:56
bluenovember joined08:56
trivol joined09:01
galderz joined09:01
Belna joined09:02
gebi left09:03
sondreb left09:03
harinath joined09:03
offby1` joined09:03
curtana joined09:04
skoop_ joined09:07
mbroeker joined09:07
thierryp joined09:08
Titosemi joined09:08
telmich joined09:09
jony joined09:09
nevyn^ joined09:09
telmich what's the git plumbing command to retrieve the current branch?09:09
curtana left09:11
shruggar "git rev-parse HEAD" will give you the sha1 of the current branch, "git rev-parse --symbolic-full-name HEAD" will give you the ref that HEAD points to (though if HEAD points directly to a commit, as in the case of a detached-HEAD, --symbolic-full-name will just say "HEAD")09:12
telmich shruggar: thanks a lot!09:13
shruggar telmich, why do you need it?09:13
telmich shruggar: I'm having a release script that needs to change branches and I would like to switch bach to the branch I started from09:13
shruggar: http://git.sans.ethz.ch/?p=puppet;a=blob;f=meta/release;h=12de422d08b1ffdcbc9805e9152daf511f50d1a0;hb=HEAD09:14
shruggar okay. Are you sure the release script actually needs to change branches? Most of the time "script which needs to change branches" is a sign that a script is doing things which a script shouldn't be doing, as it may require human-intervention09:14
rchavik joined09:15
telmich shruggar: not sure - the idea is to say "release what I've here, but merge remote changes before"09:15
skoop_skoop09:16
skoop left09:16
skoop joined09:16
shruggar telmich, that sort of thing should really be handled by a human prior to release09:16
telmich shruggar: and we're always publishing two branches, as our puppetmaster works from the private branch, which is painful for foreigners, because it contains references to internal submodules09:16
happynoff left09:16
shruggar telmich, what do you expect that script to do in the case of merge conflicts?09:16
telmich shruggar: it aborts, set -e handles taht09:16
shruggar just leaving your tree in a dirty state?09:17
telmich yep09:17
reverebeer what xyz_tag should i use for a link? or just text that i want to be clickable to send the xhr. its in a form_remote_tag. let me know if im not making sense: im new.09:18
shruggar telmich, not a production environment, I take it09:18
telmich that's fine -- if meta/release fails, I've to fix stuff09:18
shruggar: it is production stuff, indeed09:18
reverebeer shoot, wrong channel. sorry09:18
shruggar telmich, then why would you want to ever release something which isn't already free of conflicts?09:18
telmich shruggar: we don't09:19
shruggar: the script aborts, if there's a merge conflict09:19
shruggar: then we fix it and afterwards re-run the release script09:19
shruggar telmich, the script aborts, leaving the production tree dirty?09:19
telmich shruggar: ahh, I see the misunderstanding09:20
shruggar: my local tree is development; the one that's pushed out and checked out on the other side is production09:20
shruggar and this script is just a shorthand for "preparing for release" that you run on your side, then?09:20
curtana joined09:21
TTilus left09:21
telmich shruggar: exact. and if it everything works well, it automatically releases09:22
shruggar okay then09:22
TTilus joined09:22
ereslibre joined09:23
telmich shruggar: hmm, still struggling with rev-parse right now, git rev-parse --symbolic-full-name HEAD returns refs/heads/master, whereas I would like master only; --symbolic returns HEAD; what's the right way to only get "master" (withoud using sed)09:24
shruggar telmich, I think the right way is to use sed#09:25
telmich shruggar: ok09:26
Geert_DD left09:27
shruggar telmich, it's a common-enough and old-enough problem that I assume there's a reason why there's still no solution09:27
jony left09:27
telmich shruggar: I thought I solved it "better" before, but don't remember in which project09:28
ereslibre left09:28
shruggar telmich, I expect either I don't know the best method, or there is no "best method" because it invites people to do things with scripts which humans should do :)09:29
telmich hehe09:29
berserker left09:31
telmich shruggar: ha! it works as expected! -> http://git.sans.ethz.ch/?p=puppet;a=blob;f=meta/release;h=4700ec2ea953dde11ca848135b7b406dbb47e39d;hb=HEAD09:31
TheNewAndy joined09:32
ziro` joined09:32
christophsturm joined09:33
berserker joined09:33
shruggar yearp. Though I suppose if you were anti-sed you could use ${ref#/refs/heads}, add a line of code and save yourself a process09:33
ereslibre joined09:34
Geert_DD joined09:35
jony joined09:35
jds joined09:37
ereslibre left09:40
jds left09:40
jds joined09:40
gebi joined09:41
jensn joined09:41
rubydiamond left09:44
happypolla left09:46
happypolla joined09:47
psankar left09:48
jony left09:51
jony joined09:51
girishr joined09:52
shruggar "git status --ignored -u" is showing "working directory clean", but "git add somefile" says "The following paths are ignored by one of your .gitignore files". How can I list all untracked, ignored files?09:53
cilly left09:54
psankar joined09:54
kristian42 So *my* solution to all those conflicts is the best, no matter what the others did. How do I get *all min* for all conflicting files in a merge ?09:55
cilly joined09:55
shruggar git merge -s ours09:55
kristian42, though I think this also effects non-conflicting files09:55
kristian42 shruggar: Which is probably not a nice thing ;)09:57
sanjoyd joined09:57
sanjoyd Hi! Does git-svn copy a svn repo revision by revision?09:57
tizbac joined09:58
sanjoyd Since that is what it seems to be doing, and I'm freaking out since the repo has 15000+ revision.09:58
shruggar sanjoyd, yep, that's what it does09:58
sanjoyd shruggar, is there a better way to use git with a svn repo then?09:58
shruggar sanjoyd, a replacement which should (in theory) be faster is currently in rapid development09:59
tizbac left09:59
sanjoyd shruggar, I know, my friend is working on it for his GSoC.09:59
artagnon, right?09:59
shruggar sanjoyd, yeah09:59
sanjoyd But is there something I can use right now?10:00
tizbac joined10:00
rchavik left10:00
sanjoyd One option, as I see it, is to do a git init in a checked out svn repo.10:00
shruggar sanjoyd: git-svn may have options for fetching partial history, I'm not sure since I've always bit the bullet and copied all 18358 revisions overnight10:01
Paraselene__ joined10:01
shruggar sanjoyd, I really couldn't recommend starting up use of git-svn to anyone at this point, as I'd expect you'd just want to re-do the import in a couple of months whenever git-remote-svn is done :)10:02
fivetwentysix left10:03
Paraselene_ left10:03
Paraselene__Paraselene_10:03
jony left10:04
skoop left10:04
aliceinwire joined10:06
gebi shruggar: ack, currently git-svn shows strange warnings when importing the google v8 repo10:08
sanjoyd shruggar, thanks anyways!10:08
gebi btw... cool, can't wait till the remote helpers come10:08
shruggar: any place to test?10:08
Ilari gebi: What strange warnings?10:09
shruggar gebi, it's all back-end work at this point10:09
gebi http://repo.or.cz/w/git/artagnon.git if you want to track it10:09
gebi shruggar: yea cool thx, thats what i want to know :)10:10
jony joined10:11
gebi i've many GB svn source here in git which requires ugly hacks for speed with git-svn10:11
Ilari: Magic number checking on storable file failed at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380, at /usr/share/perl/5.10.1/Memoize/Storable.pm line 2110:11
always at the same point of conversion10:11
Yuuhi joined10:14
consolers joined10:16
pavlix left10:16
harinath left10:16
joeytwiddle joined10:18
jony1 joined10:18
jony left10:18
paja joined10:18
rchavik joined10:20
chrislerum joined10:20
masterkorp left10:22
bauruine left10:24
skoop joined10:29
d0k joined10:30
epic joined10:30
epic is there a way to pick out a specific part of a commit/branch?10:31
harinath joined10:32
dj_tjerk joined10:32
shruggar epic, and do what to it?10:35
galderz_ joined10:35
galderz_ left10:35
galderz_ joined10:35
paja left10:36
epic well a nother branch differs by a patch, i want to apply part of that patch to my master branch10:36
galderz_ left10:36
parasti joined10:36
shruggar epic: I recommend cherry-pick with -n, then use "git reset --patch" to remove the parts you don't want10:37
Cminion joined10:37
Cminion Hi anyone about?10:37
epic ah thanks shruggar10:38
shruggar Cminion, just ask10:38
hebz0rl joined10:38
khmarbaise left10:38
shruggar Cminion, if no one was about, the worst that could happen is your question doesn't get answered right-away10:38
thrope joined10:39
khmarbaise joined10:39
galderz left10:39
thrope hi - i have a new local branch which I would like to push to create a remote branch (github) - it doesnt exist yet on the remote. Ideally I would like to end up with my local branch tracking the remote branch10:39
can anyone point me to the steps - couldnt' find anything in the github help10:40
thiago_home joined10:40
shruggar thrope, is the remote already set up?10:40
aziz joined10:40
ChildOfGod joined10:41
Cminion Is it possible to downlaod entire an entire git repo including branches as a zip file from a web view?10:41
shruggar: cheers10:41
thrope shruggar: the remote is set up but this branch sdoesnt exist10:41
Ratler joined10:41
shruggar thrope, git push --set-upstream <remote> <branch>10:42
thrope shruggar: thanks10:42
shruggar Cminion, I don't know of any web-views where this is possible, but many web views of a git repository list a URL which you can give to "git clone"10:42
Cminion im getting 1lb/s from this git repo but teh web access is going realtively fast10:43
cheers10:43
1kb/s10:43
Geert_DD_ joined10:43
Cminion even10:43
psankar left10:44
Geert_DD left10:45
fivetwentysix joined10:46
sylr joined10:47
thiago_home left10:47
ChildOfGod left10:48
Chillance joined10:49
fivetwentysix left10:52
nionith joined10:52
Joeconyers joined10:55
williambr joined10:56
villemv joined10:57
tcurdt joined10:57
tcurdt how can I make git to use the current branch for a merge when I do a 'git pull' without specifying 'origin <branch>'?10:58
Geert_DD_ left10:59
snearch joined11:00
shruggar (from within the branch you want to do this to) git branch --set-upstream remotes/origin/<branch>11:00
Joeconyers left11:02
thiago_home joined11:02
tcurdt shruggar: it that the same as setting the branch and remote properties in .git/config?11:02
shruggar tcurdt, yes11:02
consolers the faq of "checking out a subdir" could in theory be `yes' --- just walk down the commit tree to get the subdir11:04
tcurdt shruggar: it says "Branch remotes/origin/<branch> set up to track local branch <branch>.11:04
Ilari Watch out... That command doesn't do what is intended (at least in older versions).11:05
shruggar tcurdt, agh, sorry11:05
tcurdt, I get the syntax for that backwards a lot :/11:05
Ilari 'git branch --set-upstream <branch> origin/<branch>'. Or so.11:05
tcurdt Ilari: wdym? watch out for what?11:06
shruggar tcurdt, as you saw, it did the reverse of what was intended11:06
tcurdt 'git branch --set-upstream <branch> origin/<branch>' did indeed do the trick11:07
Elfe_ left11:09
consolers is there anyway i can tell ssh to use a different .ssh/ instead of ~/ssh just for this one command/call to git ?11:10
snearch_ joined11:11
Paraselene__ joined11:11
Ilari consolers: Not without using $GIT_SSH or something like remote-ext (which you don't have)...11:12
williambr left11:12
snearch_ left11:13
Paraselene_ left11:13
Paraselene__Paraselene_11:13
kenyon left11:15
thiago_homethiago11:15
berserker left11:19
berserker joined11:20
kenyon joined11:21
intripoon joined11:21
Elfe joined11:22
snearch left11:23
Unode left11:23
ereslibre joined11:23
hohoho left11:25
hebz0rl left11:26
reverebeer left11:30
jony1 left11:33
jony joined11:35
tcurdt left11:38
bmalee joined11:39
xiong joined11:39
parasti left11:41
aliceinwire left11:41
sftp joined11:44
bentob0x joined11:44
maveriick joined11:45
maveriick hi all11:45
consolers left11:45
maveriick is there any way to see only the commit logs of a specific branch ...when the branch is already merged with 2/3 other branches?11:45
fermion joined11:46
pavlix joined11:49
thiago git log branchname11:55
masterkorp joined11:55
enoj joined11:57
Liberum joined11:57
Liberum hey folks11:57
fermion anyone have any advice on how to generate a pure SVN-friendly diff using git/git-svn?11:58
Liberum in a moment of mercurial confusion, I accidentally reverted a commit11:58
is there a way to delete the commit (haven't pushed)?11:58
other than reverting the revert11:58
bmalee Liberum: rebase?11:59
Or git reset --hard <commit>^12:00
Liberum i did the latter, but the commit's still in the log12:00
i read a little about rebase, but I'm confused. but since you say it could solve my problem, I'll make a second attempt.12:01
teuf Liberum: the latter including the trailing "^" ?12:01
thiago left12:02
_Vi left12:03
galderz joined12:03
galderz left12:03
galderz joined12:03
bitkiller joined12:04
xenoterracide joined12:05
khmarbaise_ joined12:05
malumalu joined12:05
zeroXten left12:05
parasti joined12:05
khmarbaise left12:07
khmarbaise_khmarbaise12:07
xenoterracide when sending a patch series with send-email all the patches should be a reply to the first one sent right? therefore all be in the same thread?12:08
thiago joined12:08
thiago left12:09
thiago joined12:09
khmarbaise left12:09
avar it will do that automatically12:09
girishr_ joined12:10
xenoterracide hmm...12:11
steffkes left12:11
dj_tjerk left12:11
xenoterracide maybe it's my MUA that's causing the threading to seem screwy12:11
steffkes joined12:11
girishr left12:11
dj_tjerk joined12:11
girishr_girishr12:11
srcerer_ joined12:12
enoj Is it possible to merge only a single commit from a branch? I have a remote branch with several commits, and I only want to merge one of them (each commit is a separate feature) into my development branch12:12
anathematic joined12:12
xenoterracide enoj don't merge? cherry-pick12:13
jzacsh joined12:13
xenoterracide enoj I suggest reading git help workflows too12:14
codeshepherd joined12:14
sixteneighty joined12:14
fermion I feel like I'm missing something obvious here with git-svn, trying to generate an SVN-friendly diff12:15
bauruine joined12:15
rubydiamond joined12:15
enoj yeah I will have new features as separate branches from now on to avoid needing to use cherry-pick like you mentioned12:15
corni joined12:15
freimatz left12:16
maveriick left12:16
codeshepherd left12:17
Gitzilla left12:17
tcurdt joined12:18
sondreb joined12:19
anathematic left12:21
pgib joined12:23
pgib left12:23
kukks joined12:24
mw joined12:26
mw left12:26
mw joined12:26
IslandUsurper joined12:27
hobodave left12:28
masterkorp left12:28
d0k left12:28
tizbac left12:29
masterkorp joined12:30
thiago left12:31
sixteneightysixteneighty|awa12:32
d0k joined12:34
ExtraSpice left12:34
radioman-lt joined12:35
jzacshjzacsh-away12:35
aspotashev|eeepc left12:37
Liberum teuf: No. Thank you, thought it was a typo. Thanks bmalee :)12:38
doener xenoterracide: the threading might look funny if you used rebase, because the topological order isn't necessarily the same as the author date order12:40
Titosemi left12:40
doener xenoterracide: so e.g. patch 33 might appear in front of patch 20 or something like that12:40
cjs joined12:40
xenoterracide or it could be because gmail does what it wants... and I didn't send it so it could also be the author did something different12:41
RobertLaptop left12:41
cbreak_work sending patches via e-mail? archaic!12:41
that's like sending word docs around for commenting on something...12:42
xenoterracide lemme guess.. you think that github actually has a good work flow12:42
doener cbreak_work: that's how git is developed12:42
xenoterracide and linux12:42
to some degree12:42
it's the only way to get patches from... 'untrusted' users12:43
avar joined12:43
doener well, you could easily fetch from their repos. But it would be a major PITA from a reviewing POV12:43
everyone would do the review from scratch, not knowing what others said about the patches12:44
xenoterracide right12:44
Cminion left12:44
nessundorma joined12:44
frakturfreak left12:44
xenoterracide I wish that github would provide a sane workflow for 'untrusted' quantities but it really doesn't12:44
lbt_ joined12:45
chrislerum left12:45
flazz joined12:46
chrislerum joined12:46
cbreak_work sane workflow? are you for some reason prevented from using git fetch?12:46
ChUrP joined12:47
lanthan_ left12:47
cbreak_work like having your peer behind a firewall?12:47
xenoterracide no I just don't like doing it that way12:47
rubydiamond left12:47
MetaCosm_ joined12:47
xenoterracide I'd rather be able to have a better way to comment on patches in a way that everyone can see12:47
avar left12:47
xenoterracide githubs workflow is fine if you trust all the people you're pulling from12:48
avar joined12:48
doener cbreak_work: then I fetch 5 commits, do a review, and sent comments back to the author. And 10 other people do the same, mostly making the same remarks over and over again12:48
cbreak_work you could upload the patches to a wiki :)12:48
doener cbreak_work: highly annoying for the author, and wasted time for the reviewers12:48
xenoterracide that sounds stupid12:48
cbreak_work better than e-mailing them around12:48
it would allow for centralised commenting12:49
xenoterracide why? git provides mail utils12:49
I suggested to github to provide an email address tied to each repo's issues12:49
cbreak_work yeah, but e-mails are a pain12:49
xenoterracide if it detects that something is a patch it could even add an apply button12:49
doener cbreak_work: if you go that way, I'd rahter use gerrit than some half-assed wiki approach12:49
bmalee If you're sending them to a mailing list, rather than individuals, I think it would work better.12:49
sgh left12:49
MetaCosm left12:50
xenoterracide I've actually started emailing them to RT (in the case of perl patches)12:50
unfortunately RT doesn't display them right... but it does preserve the email12:50
coderdad joined12:51
ringo999 joined12:53
berserker left12:53
simplechat joined12:53
ringo999 i have created a new local branch, now i would like to push to remote? how do i add a new branch to remote?12:53
cbreak_work just push it12:53
lbt_ git push origin newbranch12:54
cbreak_work git push remotename branchname:remotebranchname12:54
jony left12:55
berserker joined12:55
ringo999 ok cool. and how to pull a new branch from the remote?12:59
cbreak_work git fetch remotename remotebranchname12:59
or git pull if that's more your style12:59
LiamH joined13:00
chrislerum left13:00
ringo999 cbreak_work: thanks13:01
ajpiano left13:01
stringo0 joined13:02
Unode joined13:02
xenoterracide I prefer git remote update13:03
herdingcat joined13:03
ExtraSpice joined13:03
xenoterracide and then to decide whether I wish to merge/rebase or do nothing13:03
bremner what is the advantage of git remote update over git fetch?13:05
xenoterracide it updates all remotes13:05
bremner ok13:05
xenoterracide and all branches13:05
I believe fetch only does 1 remote13:05
bremner true, but all remote branches for that remote13:05
xenoterracide right13:06
patrikf_work joined13:06
boaz left13:07
patrikf_work is there a scriptable way to check whether a working tree is dirty?13:07
cbreak_work you can ask git status13:09
IslandUsurper specifically, git status --porcelain is designed to be used in scripts13:09
patrikf_work hm. I hoped there was something with even less information (i.e., return code is enough for me)13:10
ah, git diff-index --quiet sounds like what I want13:12
or git diff even, duh13:13
lemonchicken left13:14
khmarbaise joined13:15
Titosemi joined13:15
dj_tjerk| joined13:16
dj_tjerk left13:19
khmarbaise left13:19
scarabx joined13:19
IkkeEp2 I tried to add git submodules by adding them to the .gitmodule file, but git seems to ignore them, is there a way to add several submodules to the project?13:21
ChUrP left13:21
phlowx joined13:22
Belna left13:22
hohoho joined13:22
lemonchicken joined13:23
vegeste joined13:24
skoop left13:26
MattDiPasquale joined13:26
fr0sty IkkeEp2: 'man git-submodule' you probably want 'git submodule add ...' or some flavor.13:26
Gitbot IkkeEp2: the git-submodule manpage can be found at http://git.or.cz/man/git-submodule13:26
fr0sty you don't need to do it manually (and probably shouldn't)13:27
khmarbaise joined13:27
IkkeEp2 fr0sty: I know git submodule add, but it's cumbersome to add several submodules manually, when you actually already have the .gitmodule file from another repository (another project)13:27
dp joined13:28
dp I'm getting the following message anytime I `git push`: http://pastebin.dp.cx/pastebin.php?show=217404 -- how can I stop that?13:28
rkreis looks like you're pusing in a non-bare repository13:28
does the remote need a working copy?13:29
if not, recreate it with git init --bare13:29
girishr left13:31
steveire left13:31
JoeTheGuest_ joined13:33
opalka left13:33
khmarbaise left13:33
khmarbaise joined13:33
JoeTheGuest_ i need some help getiting git sync with eclipse13:33
jzacsh-awayjzacsh13:35
berserker left13:37
opalka joined13:37
JoeTheGuest_ left13:38
phlowx JoeTheGuest_, http://wiki.eclipse.org/EGit/User_Guide13:38
berserker joined13:39
gurjeet left13:39
drubies joined13:40
tvw joined13:42
opalka left13:43
opalka joined13:43
stringo0 left13:44
airborn left13:44
dp left13:45
bc0906524 joined13:47
intripoon left13:47
boaz joined13:48
RobertLaptop joined13:49
opalka left13:49
avar left13:49
avar joined13:51
parasti left13:51
PerlPilotPerlJam13:52
kenneth_reitz joined13:52
jaql joined13:53
roop left13:54
djMax what's the preferred web interface these days, gitweb?13:54
Adman65|mbp joined13:55
Adman65|mbp left13:55
scarabx left13:56
airborn joined13:57
aless joined13:57
RORgasm joined13:58
shruggar djMax, it depends entirely on what you want to do13:58
djMax, for basic repository viewing via a web-interface, gitweb is the standard and is bundled with git13:59
bauruine left13:59
djMax I assume that it doesn't actually setup apache? I've got a fresh Ubuntu install with git working, and I installed the gitweb package, whatever that does (given that it's bundled), but still nothing works.14:01
_Vi joined14:02
yaotti_aw joined14:03
hugoxrosa joined14:05
keystr0k joined14:06
keystr0k emergency!!!! hehe.14:06
I just realized I was in "no branch" since May 25. I thought I could checkout master and then merge things... but now nobranch is gone.14:06
Can someone please tell me how to overcome this?14:06
Not sure how I got into "no branch" in the first place... but I sure would like to get back all of those commits.14:07
note that the commits DO show up in git-reflog14:07
can I just manually merge each one starting from the oldest to the newest?14:08
TheNewAndy left14:08
hohoho left14:08
hohoho joined14:08
steffkes left14:08
cbreak_work first14:09
keystr0k OK. Sorry to freak out there... it's not as bad as I thought.14:09
patrikf_work keystr0k: find the last commit in reflog, and git checkout -b branchname <sha1 of last commit>14:09
tatsuya left14:09
cbreak_work type git branch newbranchmane14:09
keystr0k wait. who should I follow? hehe.14:09
I am just missing 2 or 3 commits.14:09
cbreak_work the idea is to make a branch of current head14:10
git branch newname does that. you can also find that in the reflog14:10
after you have it in a branch, you can merge that branch normally.14:10
avar left14:10
cbreak_work did you ever check out an SHA or a Tag?14:11
keystr0k cbreak_work: okay...14:11
cbreak_work that would move you away from any branch14:11
since commits and tags are not on any branch14:11
keystr0k cbreak_work: that's probably exactly what I did.14:11
:(14:11
gotcha.14:11
avar joined14:12
rchavik left14:12
keystr0k now... because I have to deal with 4 (I just counted) commits that aren't in master, do I have to merge each one individually? Sorry... trying to understand what you're saying14:12
t0rc joined14:12
keystr0k AND I am on a blog post about switching to master and then merging the commits14:12
hohoho left14:13
IslandUsurper keystr0k, do what patrikf_work said. It's the quickest way to get back to where you need to be14:13
hohoho joined14:13
raichoo joined14:14
IslandUsurper it creates a new branch on that last commit, so you can merge it in with master, or keep working on it, or whatever14:14
keystr0k IslandUsurper: thanks...14:14
patrikf_work: okay. that worked perfectly... so now I am in a new branch (not master). I am seeing all of my commits... so this is a good thing.14:14
cbreak_work you can't merge commits14:14
you can only merge branches14:14
keystr0k cbreak_work: I'm not realizing this...14:14
cbreak_work so just do what I told you and make a new branch14:14
and merge it :)14:15
keystr0k :)14:15
Okay.14:15
djMax newb question sorry: gitweb needs access to my repos, the docs say to "add daemon to permissions" - what does this mean? chgrp?14:15
keystr0k cbreak_work: thanks for the info! same to patrikf_work too... I appreciate it.14:15
keystr0k breathes a sigh of relief14:15
cbreak_work but you only did 4 commits since may?14:15
sounds like a very boring job youhave14:15
keystr0k cbreak_work: yeah... HAHa.14:16
absolutely14:16
It's for a project that barely gets touched.14:16
;)14:16
ewagner joined14:16
kumbayo joined14:16
keystr0k Man... you guys saved the day. Sorry to spam the #git channel earlier. Do you guys get many of these "panic" situations from newbies like me?14:16
jtauber joined14:17
Ambiguity left14:19
boaz left14:20
gurjeet joined14:20
shruggar with git, almost all panic situations are from newbies, as non-newbies know that git doesn't lose stuff very easily ;)14:20
nighthwk1 joined14:21
ptor only experience data loss when the filesystem on the disk crashed.. but as the repos were all cloned to 4 other systems, no worries.. :-)14:22
ptor s/experience/experienced/ - it only happened once14:22
fmardini joined14:22
keystr0k yeah... I am slowly realizing that.14:23
consolers joined14:23
keystr0k ptor: nice :)14:23
ptor I usually clone to many other machines due to portability checks all the time (e.g. Linux, 32-bits, 64-bits, Irix, aix etc.. the side-effect of backup is a bonus!)14:24
kold joined14:24
ptor (clone once, pull from then on, of course)14:24
And even with a single machine you can just clone to somewhere else on the same machine, in case you tend to do unfortunate rm -rf .git by accident :-)14:25
keystr0k yeah... that's pretty solid! I usually have 2 or 3 clones (with recent pulls) at any given time for any repo... makes me feel better.14:25
haha14:25
tedoc2000 joined14:26
keystr0k cbreak_work: so, if I ever need to checkout a specific commit, I should always do it into a new branch, correct?14:26
I believe in the past I've just checked it out :(14:26
ptor pulls to the laptop before leaving the office for the day14:26
ewagner When you say clone are you referring to git clone? So far i am just using rsync -a ... Is there any problem with that?14:26
ptor ewagner: I talk about git clone, but obviously it's also useful to do rsync if backups are your primary pp14:27
purpose14:27
dr_win left14:27
IslandUsurper keystr0k, it depends on why you checked that commit out14:27
if you just want to see the files, then you don't need a branch14:28
keystr0k IslandUsurper: yeah... I cannot remember now...14:28
ehabkost joined14:28
keystr0k I see.14:28
IslandUsurper if you think you want to develop on top of it, then you do14:28
keystr0k right.14:28
gotcha14:28
IslandUsurper but branching is cheap, so making one is safer even if you don't use it14:28
keystr0k I still don't understand git-revert very well... I may have done checkouts of earlier commits instead of reverting... ? who knows. SO MUCH to learn.14:28
IslandUsurper git revert makes a new commit that undoes a previous commit (think patch -R)14:29
keystr0k I'm on the man page for git-revert now...14:29
I guess I completely misunderstood that one! yipes14:29
keystr0k scares himself sometimes.14:29
IslandUsurper git reset makes things (index, working tree, and/or HEAD) like they were previously14:29
reset/revert confusion is common, because people are used to svn revert14:30
ewagner I'm just testing out building git-1.7.1.1 but I received a bunch of failures in make test.14:30
/ Is this the right place for that question?14:30
keystr0k IslandUsurper: yeah... so it sounds like I should have been using reset... instead of checking out an earlier commit into "no branch" :)14:30
pdnsmith joined14:31
ewagner question being: Is anyone else seeing failures during make test?14:31
shruggar ewagner, what tests are failing?14:33
consolers left14:34
djMax gitweb isn't showing any repos, not sure what to check.14:34
ewagner looks like 19 of 23 t9100-git-svn-basic.sh14:34
pdnsmith hi, can anyone tell me why when I run git clone over ssh it might hang. On 'Compressing Objects: 47%' to be specific14:34
ewagner Which I guess will not bother me to much for the time being.14:35
pdnsmith when I clone from the smae machine it works fine14:35
shruggar ewagner, your svn perl library may be a different version from your svn client14:35
ewagner hmm.14:35
EricInBNE left14:36
dpino joined14:37
ewagner How do I verify the versions in perl and the used by svn?14:37
pdnsmith I've tried cloning from two different machines on different networks and it still hangs14:38
I need to clone this repo, how can I fix this?14:38
vbabiy joined14:38
kold I have a git repo with a few submodules being tracked. I'd like to keep the file contents of the submodules in place, but remove it from being tracked as a submodule. Is there anyway to make a submodule be just like another git repo inside another git repo without having to delete and reclone?14:39
shruggar ewagner, not sure. You could ask your package-manager (dpkg -l | grep svn may be relevant)14:40
airborn left14:40
stringoO joined14:40
djMax hrmph, well i've added every acl I can think of but gitweb still empty14:41
Ilari pdnsmith: From same machine using ssh?14:41
vbabiy left14:42
Yuffster joined14:43
pdnsmith yep, I tried cloning from a machine on my home network, and from a remote machine accessed over ssh14:43
boaz joined14:43
pdnsmith So I guess the problem is with the machine that holds the repo?14:44
ajpiano joined14:44
pdnsmith ssh is on a non standard port but I included in the url and connected ok14:45
adamm joined14:45
pdnsmith I am a total noob at git so even the obvious may be of some help14:46
grumpytoad you've run out of disk space ? :-P14:47
kokx pdnsmith: did you set the non-standard port in your SSH config ?14:47
pasky wow, first time in very *long* time, the repo.or.cz machine is idle and update cycle is <10 minutes long14:47
jast kold: git rm --cached <path to submodule> in the top-level repository, and clean up .git/config and .gitmodules if you want to get rid of all traces14:47
ewagner Shruggar, Thanks! It seems I must have done a manual install of svn a while back into /usr/local and that is where git is picking up svn. I just removed that version and /binsvn(managed my package manager I presume) seems to be working fine.14:48
*/usr/bin/svn14:48
rayners joined14:48
shruggar thar ya go. Also note that the svn tests are often annoyingly slow, so unless you're actually using them, you can define something like NOSVN=1 before running the tests (I don't remember the exact variable)14:48
ewagner Thank you! but its not a rush at this time. Have a great one and I'll be sure to hang out here more often.14:50
doener left14:51
pdnsmith kokx: yes, and I specified it in the url - git clone ssh://me@myhost.co.uk:10418/var/www/html/webroot/14:53
khine_ joined14:53
khine_ hello14:53
kokx pdnsmith: you can't specify it in the URL afaik14:53
at least, not with git14:53
khine_ when i do a git pull, i get this error: error: Untracked working tree file ...14:53
chrislerum joined14:54
khine_ how do i clean this so that i can fetch the code14:54
coderdad left14:54
shruggar khine_, do you want to get rid of your local file, losing data?14:54
khine_ yes14:55
Zephyrus joined14:55
pdnsmith just tried it without the port in the url and still the same 47% :X14:55
shruggar then just remove the file it mentions14:55
beatak joined14:55
khine_ but when i do a git status, it does not show that this file exists14:56
anathematic joined14:56
pdnsmith something to note is that the git process just runs on the remote machine consuming a lot of resources until I kill it manually14:57
...after trying to clone14:57
shruggar khine_, it's probably in the ignore file. Just type "rm thefile"14:57
j0shua joined14:57
kold jast: right. what I'd like to do is *keep* the contents of the <path to submodule> but without the context of git recognizing it as a "submodule"14:58
khine_ yes you're right, thanks14:58
jast kold: and that's what my suggestions were for :)14:58
nevyn hrm14:59
kold jast: so, running "git rm" won't delete the files, but will just remove the submodule context?14:59
jast kold: no... but if you use git rm --cached, as suggested, it will never delete actual files :)15:00
posciak left15:00
pdnsmith left15:01
kold jast: yeah, I meant to add the --cached as you suggested...just clarifying though, thanks15:01
jast anyhow, that removes only part of the association; a subsequent "git submodule update" will probably try to bring the submodule back (but it won't work because the directory already exists)15:01
HG` left15:01
jast so you might also want to remove the entries from .gitmodules and .git/config15:01
be careful to avoid actuallyu15:02
adding files from the now-not-submodule-anymore to the top-level project by accident15:02
gurjeet_ joined15:03
pdnsmith joined15:03
coderdad joined15:03
tar- joined15:03
doener joined15:03
offby1`offby115:04
offby1 left15:04
offby1 joined15:04
gurjeet__ joined15:04
gurjeet left15:05
ewagner left15:05
gurjeet__gurjeet15:05
kold jast: gotcha, removed those entries as well15:06
alezandro left15:06
anathematic left15:07
jast great, now the only thing left to do is the formal submodule banishment dance, to prevent it from actually reincarnating15:07
put on your banishment hat and follow the rhythm: 1-2-3-5-7-4, 1-2-3-8-3-6, etc.15:07
gurjeet_ left15:07
jast why do I keep writing "actually" instead of "accidentally"?15:08
offby1 because you want to be English?15:11
Tac joined15:13
raichoo left15:13
oriba joined15:14
masterkorp left15:14
fermion left15:14
xiong left15:18
srcerer_srcerer15:18
tcurdt left15:19
DrNick joined15:19
raichoo joined15:20
jensn left15:20
happypolla left15:20
smorg left15:20
hobodave joined15:22
pdnsmith so, is this url even formed right?15:23
eevar_ left15:23
dimsuz joined15:23
pdnsmith I see in various tuts a reponame.git at the end15:23
simplechat left15:23
pdnsmith I just have a .git dir15:24
?15:24
oriba left15:24
kokx pdnsmith: thats with bare repositories15:24
Buglouse joined15:24
kokx the convention is to name bare repositories <repo>.git15:24
dimsuz hey guys! is there any quick way to ask git to rebase all my local branches to remote ones after git fetch? or should i do a simple script? :)15:24
bcardarella joined15:25
parasti joined15:25
alezandro joined15:25
pdnsmith ok, so its correct to be cloning from a /path/to/repo/.git?15:25
kokx no pdnsmith15:26
pdnsmith gah15:26
sorry15:26
kokx pdnsmith: you're cloning from a non-bare repository ?15:26
pdnsmith by non bare I assume you mean - has a repo with historic commits15:27
masterkorp joined15:27
pdnsmith in which case yes15:27
fermion joined15:28
fermion left15:28
dimsuz is there a way to ask git branch to output *only* branch names without "*" and indentation?15:29
kold left15:30
offby1 git for-each-ref | awk '{something something}' :-)15:31
actually ...15:32
git branch | cut -c 3-15:32
that should do it15:32
alexmchale joined15:33
Cesario joined15:34
wereHamster git show-ref15:36
gbacon joined15:39
giallu left15:39
khmarbaise left15:39
khmarbaise joined15:41
villemvvillev15:42
kar8nga joined15:43
programble joined15:43
SpearBrave joined15:43
SpearBrave left15:44
khmarbaise left15:44
khine_ left15:47
kumbayo left15:49
kar8nga left15:50
rseifert left15:53
nevyn^_ joined15:54
nevyn^_ left15:54
ggh joined15:56
nevyn^ left15:58
khmarbaise joined15:58
pantsman joined15:59
kumbayo joined16:01
mjf joined16:02
bnovc if someone added a line to a file and then another person updated it, how can I use git blame to see the original line without checking out to a revision between first?16:02
alezandro left16:05
mastro left16:07
wereHamster bnovc: git blame <commit in which the other person updated that file>^16:07
hohoho left16:07
shruggar bnovc, git blame <file> to find the revision which you want to ignore, then: git blame <that-commit>^16:08
+<file> again16:08
bnovc is there any way to just see a list of the modifications to that line with the first blame or something similar16:08
it would make tracing back a lot easier i think16:08
shruggar bnovc: wait a month or so and there will be16:08
(though it seems to be moving right along, maybe even "wait a week")16:09
lut4rp I think I remember some people say how you should do a "pull --rebase"16:09
shruggar lut4rp, I prefer pull --rebase, yes16:09
corni left16:09
sukima joined16:09
lut4rp shruggar, why?16:09
lut4rp doesn't understand it :(16:09
psoo left16:09
patrikf_work left16:11
kokx lut4rp: since then you rebase commits instead of merging16:11
shruggar lut4rp, in simple terms, rebase hides the history of multiple integrations, while merging preserves that history16:11
lbt_ left16:12
lut4rp shruggar, ah yes, I understand that.16:13
uhm, anyone have an example by any chance?16:13
sukima I think of rebase vs merge: merge applies the changes to the HEAD ()think after the commit) where rebase applies the fix before "this" commit/branch was made (think roll back apply roll forward)16:13
brett_h joined16:14
shruggar lut4rp, man git-rebase has a few graphs that may help16:14
Gitbot lut4rp: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase16:14
lut4rp sees16:14
carrus85 joined16:15
cbreak_work left16:15
paja joined16:17
harinath left16:17
olivier__ joined16:17
trivol left16:19
kenneth_reitz left16:21
dreiss joined16:23
alezandro joined16:25
enoj left16:26
TeckniX joined16:26
IslandUsurperIslandUsurperAFK16:29
thierryp left16:30
slonopotamus joined16:30
harinath joined16:31
shruggar left16:31
[Po]lentino left16:34
phlowx left16:35
h32Lg joined16:36
h32Lg hi16:36
i've created a local and remote git repository16:36
barismetin left16:36
Adaptee left16:36
dbatbold joined16:37
h32Lg on my remote box there is an user called "git" which has its own ssh key16:37
alester joined16:37
h32Lg i've initialized a bare git remotely but how can i push to origin master with ssh://git@mydomain.com/myrepo.git ?16:37
enoj joined16:37
rkreis as in .ssh/id_rsa?16:37
h32Lg yes16:38
i've tested ssh - its working with current user16:38
rkreis the remote git user doesn't need that, he needs ~/.ssh/authorized_keys16:38
h32Lg ahh sorry - i meant this :)16:38
rkreis you probably need an absolute path in that url16:38
h32Lg to users home directory?16:38
rkreis yes, or wherever the repo is16:38
h32Lg i've tried: git remote add origin ssh://git@domain.com/~/git/myrepo.git16:39
rkreis alternatively, use ~/.ssh/config on the local box so you can just say mygitserver:myrepo.git16:39
i have no idea if that should work16:39
maybe /~git/myrepo.git or /~/myrepo.git16:39
h32Lg ok16:39
i'll give it a try :)16:40
karptonite joined16:40
dj_tjerk| left16:40
h32Lg mh, the same error - the remote end hung up unexpectedly16:41
maybe i've configured my repo incorrect?16:41
dimsuz left16:41
rkreis what else does it say?16:41
coderdad left16:41
coderdad joined16:41
rkreis you can put the full output on http://gist.github.com/16:41
h32Lg fatal: '~git/myrepo.lgit': unable to chdir or not a git archive16:42
rkreis lgit?16:42
h32Lg ahh now its another error :D16:42
no ubuntu terminal16:42
sixteneighty|awa left16:42
thiago joined16:42
carrus85 left16:43
rkreis uh, you can select text and paste it with the middle mouse button almost anywhere - except on windows, of course16:43
avar left16:44
coderdad_ joined16:44
sixteneighty joined16:44
mjf left16:45
rubydiamond joined16:45
berserker left16:45
jzacsh left16:45
avar joined16:46
coderdad_ left16:46
coderdad left16:46
berserker joined16:47
nessundorma left16:47
h32Lg ahh rkreis now it seems that its working :916:48
i've to create a file first, add it to my local repo and make an initial commit16:48
after that i can push to the origin master :)16:48
rkreis i see :)16:48
what could git possibly push if there's not a single commit? :D16:49
h32Lg sure - a general pebkac problem :)16:49
avar left16:49
h32Lg this is my first own git server16:49
disappearedng_ left16:50
avar joined16:50
rkreis i have git repos scattered everywhere :D16:50
h32Lg i've used github a few months before and i like git :)16:50
hehe16:50
rkreis you don't really need a server16:50
h32Lg you're from germany? what projects are you working on with git?16:50
rkreis i am, i use git-svn at work because i wouldn't want to use svn directly and because i got used to git16:50
i also use git to manage stuff for studies like exercises and papers where others work with me16:51
and i use it locally whenever i create a source code file :)16:51
h32Lg ahh i'm going to use it with my new content management system :)16:51
rkreis i see :)16:52
h32Lg sure? where? :P16:52
rkreis behind you :D16:52
h32Lg :P16:52
damn16:52
patmaddox joined16:53
tar- left16:56
tar- joined16:56
patmaddo_ joined16:56
slonopotamus left16:58
AkumaStreak joined16:58
patmaddox left16:59
lacostej joined16:59
lacostej has anyone seen a problem like this one before ? http://pastebin.ca/1893485 (.git/svn/git-svn/index.lock': Input/output error)17:00
eaven joined17:00
thana joined17:00
rkreis df -h? :D17:01
thana thanks git-svn to forget my complete work of today17:01
rkreis oh, that's not it17:01
eaven dontcha love that thana ;)17:01
avar left17:01
avar joined17:01
rkreis lacostej, does dmesg or so say anything? doesn't sound like a git issue17:01
thana can you explain me why it forgot everythink because it got interrupted badly during a dcomit?17:02
disappearedng joined17:02
lacostej I got some ext3-fs issues, related to a crash this morning I guess (no more battery). Did I lose my git repository ?17:03
rkreis i, uh, no idea17:04
i guess the index isn't that important17:04
Joeconyers joined17:04
rkreis you should probably fsck asap17:04
lacostej yep...17:05
rebooting :)17:05
thanks17:05
lacostej left17:05
malumalu left17:05
malumalu joined17:06
zimbres joined17:06
kenichi joined17:08
hot1boy18 joined17:08
hasrb joined17:10
hot1boy18 left17:10
IslandUsurperAFKIslandUsurper17:11
DeaD_SouL left17:12
fmardini left17:12
khmarbaise left17:12
adymitruk joined17:12
karptonite left17:12
herdingcat left17:13
adymitruk What are the pros and cons over managing project/repo dependencies via submodule vs subtree?17:13
khmarbaise joined17:13
elmob joined17:13
sixteneighty left17:18
hasrb left17:18
aresnick joined17:19
christophsturm left17:20
christophsturm joined17:20
hasrb joined17:21
diegovio1a left17:22
thrope left17:22
gurjeet left17:23
ringo999 left17:24
stringoO left17:25
krawek joined17:25
christophsturm left17:25
_Vi left17:26
niklasfi joined17:26
_Vi joined17:27
niklasfi hi ... i am trying to configure .gitignore but it does not do what i want it to do i want to ignore all fies in the www directory exept those with certain extensions:17:27
www17:27
!*.html17:27
!*.js17:27
why does git not add an html file in the www dir?17:27
disappearedng left17:28
zenazn joined17:29
spearce joined17:29
sh1mmer joined17:29
hyperair left17:30
doener niklasfi: use "www/*" instead of "www"17:31
tizbac joined17:31
niklasfi well it does ignore the files in the www dir17:31
jasonn1234 joined17:31
doener niklasfi: you ignore the whole directory, so git never enters it, and thus won't find any *.html files that could match the "unignore" rule17:32
adymitruk I didn't know about !17:32
how does it work?17:32
hasrb left17:32
niklasfi ok so if i have the unignored files in subdirs of the ignored dir then it wont find them too?17:32
jasonn1234 left17:33
h32Lg mh, how can i create a link like: git://domain.com/project.git so that i can use it to clone "project.git"? currently i'm only able to use my ssh link17:33
doener niklasfi: sure. And even www/* won't help with that (because that still matches the subdirectories, which get ignored as a whole)17:33
niklasfi :( is there any way to avoid this behavior?17:34
hyperair joined17:34
doener niklasfi: the easiest setup for you should be a .gitignore file inside the www directory with 4 entries: * !*/ !*.html !*.js17:34
niklasfi: that is: ignore everything, except for directories, *.html and *.js files17:35
niklasfi ok that makes sense17:35
p3rg2z joined17:35
phantomcircuit joined17:36
frakturfreak joined17:37
sh1mmer left17:37
hakunin joined17:38
Unode_Unode17:39
ChUrP joined17:39
kar8nga joined17:40
plediii joined17:40
karptonite joined17:40
adymitruk wow.. I didn't know you could have multiple .gitignore file in your repository17:41
lispy joined17:41
aresnick left17:41
tvw left17:42
sh1mmer joined17:42
Avamons joined17:42
Avamons `Another `aspie moment` brought `to you by LoRez: girl, you must be in the kkk because i think we'll have a lot of fun once we get under the sheets17:42
curtana left17:43
Avamons left17:43
bluenovember left17:44
patmaddo_ left17:44
higcmonkect joined17:44
higcmonkect `Another `aspie moment` brought `to you by LoRez: HEY BABE WHO WOULD WIN PIRATES.... OR NINJA??? ALSO NOTE I DID NOT USE AN S BECAUSE NINJA IS JAPANESE AND THEY DONT HAVE PLURALS DO YOU LIKE JAPAN17:44
mangouterQuinn joined17:44
ereslibre left17:45
mangouterQuinn `Another `aspie moment` brought `to you by LoRez: Fuck all authority figures of any type. Now instead of hearing the song and letting it pass by you I think we should all rise against and do somin about authority..... and they can feel the rage of OUR generation!!!!!!!!!!!!!17:45
mangouterQuinn left17:46
higcmonkect left17:46
vegeste left17:46
juanjoc joined17:48
karptonite left17:48
Zephyrus left17:48
adymitruk how do you enable the prompt to include the branch name? Msysgit on windows does this out of the box. On linux it has to be enabled somehow. Is it in the contrib folder. Not sure I want to pull down source just to do that17:48
stringoO joined17:49
karptonite joined17:50
rtl left17:50
RORgasm left17:51
fr0sty adymitruk: the whole tarball is <3MB. what's the big deal?17:52
kumbayo left17:54
tildeequals left17:54
patmaddox joined17:55
fr0sty unzip, steal contrib/completions/git-completion.bash and move it somewhere, modify .bashrc and you are ready to go.17:55
niklasfi left17:55
sylr left17:56
candybar left17:56
wereHamster h32Lg: you have to start git-daemon17:57
h32Lg ahh ok17:57
and the deamon will detect such requests automatically?17:57
wereHamster the daemon listens on the git:// port and serves the requests17:58
hasrb joined17:58
h32Lg ahh ok - thank you :)17:58
wereHamster be sure to start it with the crrect options (mainly, --base-path)17:58
h32Lg: and make sure to export the repos you want to serve. It should be explained in man git-daemon or on google.com17:59
Gitbot h32Lg: the git-daemon manpage can be found at http://git.or.cz/man/git-daemon17:59
candybar joined17:59
jensn joined18:00
jensn left18:01
jensn joined18:01
harinath left18:08
enherit joined18:09
magicbronson joined18:10
stringoO left18:12
j0shua left18:13
enherit left18:13
rox` left18:13
enherit joined18:13
drizzd joined18:14
ereslibre joined18:14
ereslibre left18:14
ereslibre joined18:14
stringoO joined18:16
nyxtom joined18:17
berserker left18:19
aresnick joined18:19
apsysoev left18:20
berserker joined18:21
rox` joined18:21
Rh0nda joined18:22
Rh0nda left18:22
IslandUsurper is amused by the spammer who tells everyone to hate people who tell others what to do.18:22
harinath joined18:23
Titosemi_ joined18:25
benbinary joined18:27
Titosemi left18:27
Titosemi_Titosemi18:27
coppro joined18:28
sukima left18:28
thana left18:28
disappearedng joined18:30
RORgasm joined18:30
h32Lg it initialize an empty git repository but break while trying to clone with following message: errno=Connectoin refused - fatal: unable to connect a socket (Connection refused)18:31
i've tried to start the daemon with: git-daemon --inetd --verbose --base-path=/home/git/projects --strict-paths18:31
Cminion joined18:32
hasrb left18:34
adripop left18:35
drizzd h32Lg: are you using inetd?18:35
Cminion left18:36
frakturfreak_ joined18:36
h32Lg uhm, no :D18:36
but this seems not the only problem because "ps x" says sth about /var/cache as base path18:36
frakturfreak left18:37
h32Lg ha18:37
removing inted works :)18:37
Cminion joined18:39
chrislerum left18:40
_Vi left18:40
kokx h32Lg: you know that the git protocol doesn't have authentication, right ?18:40
h32Lg why are you asking kokx?18:41
_Vi joined18:41
kokx h32Lg: because i'm not sure if you want to publish all your git repositories18:41
if you use the git protocol, everybody can read your repos18:42
h32Lg no - only these where i set the specific file18:42
what would you suggest to make it possible for others to clone a repo?18:42
kokx the git protocol if its public18:43
Bass10 joined18:43
kokx ssh if its not public18:43
also h32Lg, are you using gitosis or gitolite or are you setting it up all manually ?18:43
elmob left18:43
h32Lg manually :)18:43
have a look at the notice i've send to you18:44
ChUrP1 joined18:44
kokx h32Lg: i recommend using gitosis or gitolite, they are very nice tools which can help you to manage your repositories18:44
eighty4 joined18:45
gebi and git protocol possible over http otherwise some people will have problems with their firewall admins18:45
chrisler_ joined18:45
Bass10 left18:45
kokx true gebi18:45
sylr joined18:45
gbacon left18:46
Bass10 joined18:46
ChUrP left18:46
samrose joined18:47
samrose trying to clone a repo remotely and keep getting "warning: You appear to have cloned an empty repository." my clone command looks like sudo git clone ssh://myuser@exmple.com/var/www/myrepo18:48
h32Lg i guess there are no files in your repo you are trying to clone from?18:48
samrose there is definitely a repo at ssh://myuser@exmple.com/var/www/myrepo18:48
h32Lg but no files in it?18:49
kokx samrose: does your user have access to the repo?18:49
samrose there are 4000+ files18:49
yes user has access18:49
drizzd kokx: I'm told gitosis is deprecated in favor of gitolite18:49
kokx drizzd: well, gitosis still works, though yes gitolite is a lot better18:49
samrose do I need sudo git clone ssh://myuser@exmple.com/var/www/myrepo.git ?18:50
kokx and afaik, gitosis isn't under (active) development18:50
no samrose18:50
samrose tried it and not working18:50
kokx i18:50
* i mean access on the *server*18:50
samrose: ssh to the server, and execute a clone as 'myuser'18:50
samrose kokx which user? the git user?18:50
kokx it works ssh into server and cloning18:51
tildeequals joined18:51
samrose I see what you mean now about user kokx18:51
kokx ok samrose18:51
samrose: you're not using gitosis or gitolite i guess ?18:51
samrose kokx no I am using command line git18:51
kokx on the server i mean samrose18:52
samrose no kokx not using those18:52
kokx btw, why is your repo in /var/www ?18:52
gebi left18:52
h32Lg mh18:52
i'm to lazy to read about gitosis, for now ..18:53
samrose kokx this is just a test run of some files18:53
kokx ah ok18:53
tro left18:53
pgebhard joined18:54
gurjeet joined18:54
drizzd samrose: what does git ls-remote <url> tell you about the repo?18:55
benbinary_ joined18:56
samrose drizzd fatal: 'myrepo' does not appear to be a git repository fatal: The remote end hung up unexpectedly18:56
hohoho joined18:56
drizzd I thought it was myrepo.git?18:56
kokx samrose: is the repository on your server a bare repository ?18:57
samrose I was asking if I should use myrepo.git18:57
drizzd samrose: you should use the correct path18:57
samrose it is not a bare repository18:57
benbinary left18:57
benbinary_benbinary18:57
swift-prime joined18:57
samrose I am trying to figure out what the correct path is18:57
kokx samrose: that shouldn't be too hard18:57
magicbronson left18:58
kokx if its indeed in /var/www18:58
samrose does git *need* "myrepo.git" or can it use "myrepo"?18:58
kokx then you ssh to the server, go to /var/www, theck ls18:58
drizzd samrose: for all git cares you can call it myrepo.exe18:58
swift-prime so I have two files which are closely related, and I'd like to combine them into one file. how can i do this in a way that preserves both of their histories?18:58
kokx and then you see if the folder is called myrepo.git or myrepo18:58
use it how its called18:58
samrose so, I could use /var/www/myrepo and it will work right?18:58
kokx yes18:58
samrose that is what I am doing, and it is not working18:59
kokx samrose: then i still suspect that your user doesn't have the right access18:59
avar unsucks git submodule some more : http://paste.scsys.co.uk/4626518:59
drizzd but, is a url like that relative to root, or relative to the home dir?18:59
gbacon joined18:59
samrose (actual folder name not "myrepo.git" just "myrepo") drizzd it is an url that is relative to root18:59
I can ssh in as root19:00
still doesn't work19:00
drizzd if ls-remote doesn't work, I wonder why git clone doesn't give the same error19:00
samrose: the question is whether ssh interprets it as such19:00
samrose drizzd I see19:00
I think kokx you are right, it is probably access19:01
drizzd samrose: ah, it probably does19:01
samrose thanks drizzd and kokx19:02
kokx samrose: is git installed on your server ?19:02
samrose I will see if I can figure that out19:02
kokx and in your PATH ?19:02
Ilari Especially puzzling as ls-remote and clone use the same service (git-upload-pack).19:02
pgebhard left19:03
Ilari The first difference should be ls-remote sending disconnect request when clone sents WANT lines.19:03
*sends19:03
pgebhard joined19:03
drizzd Ilari: exactly19:03
Ilari: right, so ls-remote actually does a subset of what clone does19:04
khmarbaise left19:04
khmarbaise joined19:05
kokx yes drizzd19:06
samrose: ?19:06
Ilari Maybe some things useful for debugging: 1) Option to dump layer 7 communications. 2) Option to make dump of some segment of stream after bad packet header.19:06
samrose kokx si?19:06
drizzd samrose: are you sure you got the url right when you did that ls-remote?19:07
samrose drizzd yes I am certain19:07
drizzd because that error message is also what you get if the url is wrong19:07
ok19:07
rubydiamond left19:07
SplinterOfChaos joined19:07
samrose git cannot see any repo19:07
kokx samrose: did you install git on your server, and is it in the PATH of that user ?19:07
samrose I see what you are saying19:07
jcromartie joined19:07
samrose yes it is in PATH of both19:08
kokx ok19:08
jcromartie I added a repo as a submodule to another. both live on github and both are up to date19:08
benbinary left19:08
h32Lg mh19:08
drizzd the message "you appear to have cloned an empty repo" comes only after the fetch_refs commands already succeeded19:08
jcromartie but when I check out the superproject and to "git submodule init" and "git submodule update", there is nothing in the submodule directory19:08
drizzd so git just doesn't seem to find any refs19:08
h32Lg i've installed git daemon and its working but there is no init.d file to start, stop and restart the daemon19:08
portal joined19:09
drizzd maybe packed-refs or refs/ is not accessible? but then git would probably complain too...19:09
portal how would I undo a "git mv foo bar", where foo is a folder?19:09
samrose drizzd understood still checking it all out19:09
ChUrP1 left19:09
Ilari drizzd: refs/ not being accessable => repo detaction fails.19:09
tro joined19:09
jcromartie everything is up to date everywhere19:09
but the submodule just refuses to check out19:10
Ilari drizzd: Or maybe it doesn't...19:10
dpino left19:10
t0rc left19:10
SplinterOfChaos left19:10
Cminion left19:10
jcromartie there's a ".git" directory in the submodule's folder, but none of the actual files19:11
drizzd ah, if I do chmod -r .git/*; chmod +r .git/HEAD, clone succeeds and I get "You appear to have cloned an empty repository."19:11
lamalex joined19:11
lamalex Is there a way to fork a new repository from a directory, and keep the file history for the files within that directory?19:11
ChUrP joined19:11
drizzd jcromartie: can you "git show submodule" (which should get you the sha1) and then cd into the submodule and git checkout that sha1?19:12
Cminion joined19:12
lamalex specifically, a project bundles a library that I want to get into its own git repo. none exists yet as this project developed the lib. Can I preserve file history on the files involved?19:12
or do I just need to cp the dir and start fresh19:13
Ilari lamalex: filter-branch?19:13
drizzd samrose: I'm guessing your refs/ directory is not readable for myuser19:14
jcromartie yeah there they are19:14
drizzd: thanks19:14
samrose drizzd ok, thanks19:14
jcromartie why do I have to do this?19:14
lamalex Ilari: looks like that might be it! thanks19:14
samrose left19:14
ericdc joined19:14
Cminion left19:14
macek joined19:15
macek is it possible to stash a couple of files before doing a git commit? or is it "all or none"?19:15
drizzd jcromartie: that's what git submodule update should do19:15
jcromartie: is it a recursive submodule?19:15
portal seriously, if "foo" is a dir, how do I undo a "git mv foo bar"19:15
drizzd i.e., a submodule in a submodule?19:15
portal it's called "bar" now, and that's really bad19:15
I need i to be called "foo" again19:15
oh, wait, maybe a "git mv bar foo"19:15
ericdc left19:15
macek portal `git mv bar foo`19:15
lol19:15
ericdc joined19:15
jcromartie drizzd: no19:16
portal yeah, worked :-p19:16
jcromartie drizzd: as far as I know it's not recursive19:16
drizzd portal: well, if bar is still there, that will move it to foo/bar19:16
jcromartie: what if you do git submodule update again?19:16
jcromartie the files are still there19:16
it doesn't appear to do anything19:17
zimbres left19:17
Cminion joined19:17
portal drizzd: the reverse-mv worked19:17
drizzd jcromartie: even if you change the checkout?19:17
zimbres joined19:17
xenoterracide left19:17
lamalex left19:17
drizzd portal: ok, would only have been a problem if untracked files were left in foo/19:17
I think git doesn't move untracked files19:17
although I think that's a little strange19:17
Cisconode joined19:19
jcromartie drizzd: I deleted the submodule's directory and did init/update again, and it worked... looking back, there was a problem when I entered the wrong passphrase for my private key for some second operation (the checkout)19:19
drizzd jcromartie: ah I see19:19
blueyed joined19:19
outerWeb_mons joined19:20
blueyed How do I use different defaults for "push" and "pull"? (it appears to use branch.X.remote for both.19:21
outerWeb_mons `Another `aspie moment` brought `to you by LoRez: I know Africa has its own internet connection.. buncha niggers with mailbags run around for email.. Tech Support is like shakalakuzulu kuntakente cheifs that speek jigabooese19:21
outerWeb_mons left19:21
Cisconode left19:21
sunsRubb joined19:21
portal drizzd: yeah, I know what you mean about the left-over-untrakced-files thing, fortunately that wasn't the case :)19:21
sunsRubb left19:21
Cminion left19:22
rseifert joined19:23
KilledVerNoodle joined19:23
Iqjqla_huun joined19:24
str1ngs joined19:25
Sigma left19:26
rseifert left19:26
amgNixmang joined19:26
KilledVerNoodle `Another `aspie moment` brought `to you by LoRez: Punctuation marks that look like smiley faces express happiness on a new communication tool known as "Internet." The computer network is already being used by 15 million people worldwide to chat or do important research.19:27
KilledVerNoodle left19:27
abnetouter joined19:28
mangCoo joined19:28
abnetouter `Another `aspie moment` brought `to you by LoRez: Nigerians make me so mad I wish someone would round them all up and send them to a country where people starve and get gunned down in the street19:28
abnetouter left19:28
mangCoo left19:28
Iqjqla_huun left19:28
ChanServ set mode: +o19:29
Lazmwanesty joined19:29
Lazmwanesty left19:29
ChanServ set mode: -o19:29
amgNixmang left19:30
chrisler_ left19:31
chrislerum joined19:31
str1ngs I have a svn server that I mirror with with git svn into a svn branch. I then rebase my changes. however everytime I goto push my rebase branch to another git repo I get non-fast-forward. even though the remote branch has not been changed.19:32
eighty4 left19:33
frakturfreak_frakturfreak19:34
blueyed remote.X.pushurl is what I was looking for.19:35
disappearedng left19:36
djb_ joined19:36
corni joined19:37
SplinterOfChaos joined19:42
stringoO left19:43
blueyed left19:43
masterkorp left19:44
djb_ left19:51
pavlix left19:54
pavlix joined19:55
disappearedng joined19:56
eighty4 joined19:57
mabrand left19:58
grumpytoad joined19:58
kenneth_ left19:59
leavittx_ left19:59
leavittx left19:59
Crell joined20:00
dr_win joined20:01
leavittx joined20:01
pgebhard left20:01
h32Lg left20:04
_Vi left20:04
RORgasm left20:05
RORgasm joined20:05
keystr0k left20:05
apsysoev joined20:07
scarabx joined20:07
andrewl joined20:10
Bass2 joined20:11
Fullmoon joined20:14
Bass10 left20:14
Bass10 joined20:15
Joeconyers left20:15
Bass2 left20:15
shruggar joined20:16
pflanze joined20:17
leavittx_ joined20:18
pflanze How do I check whether the working directory is clean, for scripts (meaning, a quiet tool that reports via exit status is preferred)?20:18
Oxf13 joined20:18
Oxf13 sitaram: around by any chance? Hoping to pick your brain a bit.20:18
shruggar pflanze: I don't think there's an all-in-one way, but: git diff-files --quiet && git diff-index --quiet && git diff-index --quiet --cached20:19
stringo0 joined20:20
pflanze git diff-index --quiet complains for me, doesn't seem to know the option20:20
shruggar hm, might have been -q?20:20
pflanze nope, neither; git version 1.7.0.320:21
ah it's not the --quiet,20:21
dkulchenko joined20:21
pflanze but it doesn't like being called without any other argument.20:21
Oxf13 Does anybody here know what the SSH_ORIGINAL_COMMAND would be when doing a push action?20:22
alezandro left20:22
pflanze so should I give it HEAD ?20:22
dkulchenko Hi all! There's this service online that I use regularly. You can deploy scripts to it with git push, and it'll run commands on the remote server and send back the output as part of the 'git push' output. How do they do that?20:23
villev left20:23
comawhite joined20:23
shruggar pflanze, yeah, it needs HEAD, sorry20:24
pflanze Ok, works, thanks!20:24
shruggar dkulchenko, with a hook. I don't remember which one, but I think it's post-receive20:25
dkulchenko shruggar: can that hook send back output?20:25
shruggar dkulchenko, I know a hook exists which can, but I'm not sure that it was post-receive20:25
dkulchenko shruggar: ah okay, i'll read the docs. would I be using git-daemon?20:26
bc0906524 left20:26
RickRaven joined20:26
shruggar dkulchenko, hooks don't require git-daemon one way or the oher20:26
dkulchenko shruggar: right, but for this specific case, would I use git-daemon? (if I want git over SSH)20:27
shruggar dkulchenko, I wouldn20:27
t20:27
dkulchenko what's the alternative?20:27
shruggar also, I can't type today20:27
dkulchenko, ssh by itself20:27
dkulchenko hmm okay20:28
shruggar dkulchenko, if you have shell access and git is installed, you can just tell git the hostname:path-to-repos20:28
dkulchenko shruggar: wait, what handles git:// urls?20:28
blueyed joined20:29
shruggar dkulchenko, I think that's git-daemon20:29
dkulchenko shruggar: ah okay20:29
pflanze left20:29
blueyed Git does not ignore files being tracked, when they are in .gitignore - is there a way to do so? (makes sense with e.g. build.properties: it should be in the repo, but local changes should get ignored)20:29
cilly left20:30
shruggar blueyed: the accepted solution is to track either a template of the file, or a file containing defaults, and add the "real" one to .gitignore20:31
blueyed I see, thanks shruggar.20:31
ClimDan joined20:32
Fullmoon left20:33
ClimDan left20:33
Mage joined20:36
Crell Random silly idea I thought I'd bounce off people.20:38
When svn first came out, some more experimental folks tried to use svn for their entire home dir.20:38
I don't know how well it worked.20:38
Has anyone tried doing that with git?20:39
shruggar Crell, it had good parts and bad parts20:39
aep uses git for dotfiles20:39
DrNick Crell: git doesn't store permissions20:39
or xattrs20:39
or fs timestamps20:40
bcoca joined20:40
Crell Ah, that could be a problem.20:40
But svn does?20:40
shruggar Crell, with git, it's harder to take a subset of what you're tracking than it is with svn. This makes it less-useful for something as dynamic as a home-dir, where you might want to track "everything" and then clone just your "docs" directory20:41
jaql left20:42
Crell So it could make sense to make ~/Documents a git repo, for instance.20:42
shruggar Crell, currently, I track only specific dotfiles, each in a separate repository, and those only where it makes sense to divide things up into multiple files (for example, I use a .bashrc which includes .bashrc.d)20:42
scarabx left20:42
shruggar Crell, it could, yes, but it may make more sense to use a versioning filesystem20:43
Crell probably won't do this; it was just a crazy idea.20:43
aspotashev|eeepc joined20:44
Crell A versioning filesystem wouldn't allow remote cloning, would it?20:44
reaVer left20:44
shruggar Crell, I would definitely recommend using git to track absolutely every config file you ever edit, but I'd recommend doing it with thought and patience, rather than the sledgehammer of "I put a bunch of unrelated config files here, so I'll track all of this"20:44
reaVer joined20:45
Crell nods.20:45
IslandUsurper left20:45
shruggar for example, whenever I edit something in /etc/, I turn the file into a symlink and point it to a git repos, which I often wind up branching and using on multiple systems20:45
(though these "multiple systems" are often "the production server and several dev machines meant to mimic it"20:47
Crell So you have a git repo off somewhere that has, say, profile, bashrc, and apache/apache.conf in it? (Or whatever) And then /etc/bashrc is a symlink off to that?20:50
sequethin left20:50
shruggar Crell, no, I mean I have one with /etc/bashrc, one with /etc/postfix, and one with /etc/apache. and each of those only track the files which I have modified.20:51
coderdad joined20:51
Crell Oh, so you have lots of 1-file repos?20:52
frakturfreak_ joined20:52
rtl joined20:52
blueyed left20:53
shruggar Crell, I have a couple of 1-file repos, but most of the time the files involved have methods for splitting things into multiple files (eg: bashrc and httpd.conf), so there are actually several related files even for things which seem like "single file" repos20:55
frakturfreak left20:56
shruggar Crell: think of it as, "whenever you'd want the file for something else, but without the other files, that's where the repo division is"20:56
I haven20:56
carrus85 joined20:56
shruggar I haven't experimented with --new-workdir, or whatever that option is. This may have allowed me to use a single repos with several unrelated branches20:56
Crell hm.20:58
Crell is still a relative git novice.20:58
alexmchale left20:58
dkulchenko left20:59
shruggar Crell, as far as I know, the option I am referring to is still experimental21:00
Crell Ah21:01
bcardarella left21:03
kar8nga left21:03
unreal left21:03
bulters left21:03
unreal joined21:04
macek left21:04
wilhelmtell joined21:04
lucsky left21:06
ghost_olli joined21:07
pantsman left21:08
carrus85 left21:09
XDS2010 joined21:09
XDS2010 is there a way to watch code being pushed in real time ?21:09
shruggar XDS2010, in what sense?21:10
XDS2010, what do you actually want to do?21:10
XDS2010 i want to watch commits in real time of a project21:11
drizzd ciabot?21:12
XDS2010 ah!21:12
i forgot about cia21:12
but is there anything else ? , like a graphics based system ?21:12
lhz left21:13
tango_ XDS2010: gitweb + rss feed21:13
EricInBNE joined21:13
XDS2010 tango_: !21:13
shruggar isn't cia just a protocol which can hook into anything? I'd think there would be a graphical client for it21:13
XDS2010 is the rss realtime tho ?21:13
johnw joined21:13
ajpiano left21:14
XDS2010 that doesn't really display code removal21:14
tango_ XDS2010: so you want a 'server push' news update, not a 'client pull' (polling)21:14
XDS2010 only code commit21:14
tango_ code removal is done via commits21:14
jhelwig XDS2010: It's as realtime as you read from it.21:14
jast polling an RSS feed in real time is not very fun21:14
tango_ right21:14
XDS2010 server push right21:14
like the hummingbird project does for traffic stats21:15
tango_ XDS2010: for rbot we have a bot on the same machine as the "upstream" repository that gets notified via a post-receive hook and forcibly polls the rss21:15
zenazn_ joined21:15
tango_ XDS2010: I would say that you need something like that: a post-receive hook if you have a 'central repository' structure, or a post-commit hook if you are fully decentralized21:15
zenazn left21:15
tango_ XDS2010: the hook would notify all registered clients about the update, or something like that21:16
XDS2010 well i can do shareflow updates21:16
ghost_olli left21:16
XDS2010 but i want to see code movement in realtime21:16
both delete and insert21:16
tango_ XDS2010: what do you mean by code movement?21:16
XDS2010: you want to see changes while people are editing?21:17
XDS2010 character movement21:17
yea21:17
tango_ XDS2010: this has nothing to do with git then21:17
XDS2010: you need to use something like screen or some other termcast application21:17
XDS2010 why couldn't git do this ?21:17
MattDiPasquale shouldn't this apache rewrite rule work?21:17
RewriteRule cool(.*) http://dev.example.org/cool$1 [R=301,L]21:17
XDS2010 push instead of pull21:18
tango_ XDS2010: that, of course, assuming people use command-line editors21:18
XDS2010: git is about revision control21:18
XDS2010: not about concurrent editing21:18
XDS2010 thats maddening21:19
ChUrP left21:19
tango_ XDS2010: do you have the concept of "revision control" clear?21:19
XDS2010 ok maybe not maddening21:20
I just want to be able to see the actual commits AS they come in21:20
let me checkout gitweb21:20
tango_ XDS2010: commits are not realtime editing21:21
Crell XDS2010: What does "see commits as they come in" mean? You want a flash of a patch?21:21
tango_ XDS2010: if you want commits, you just need a post-commit or a post-receive hook that does the notification21:21
Crell Commits come in as a blob, not as a character stream.21:21
XDS2010 Crell: yes21:21
to your last21:21
Crell Shown where? Email, twitter, web page?21:22
XDS2010 patch flash21:22
RORgasm left21:22
shruggar might I point out that commits aren't really relevant in git?21:22
XDS2010 well if i can have the output parsed i could use raindrop21:22
shruggar XDS2010, is this to be used as a fancy desktop background?21:22
mastro joined21:22
Crell does not know what raindrop is.21:22
XDS2010 shruggar: no but thats a good idea21:22
Crell: another shareflow project, this one is open source21:23
shruggar XDS2010, my point is: you're asking for something meaningless and pointless, so I assume you just want it to look cool, but have real data behind it. If that's what we're talking about, we can keep going with this, so long as it's the stated goal21:23
Crell shruggar: Looking cool is never meaningless and pointless. :-)21:24
Extraneous, perhaps, but not pointless.21:24
XDS2010 ok i lost you21:24
all i want is realtime21:24
push not pull21:24
Crell XDS2010: What is your goal? Why are you trying to view something in "realtime"?21:24
Is this for monitoring a dev team? Showing off to friends?21:25
bcardarella joined21:25
XDS2010 Because the changes to some projects are collaborative and 100's of commits are done a hour21:25
shruggar is reminded that he needs to look into some sort of sound API so that he can make a geiger-counter click every time someone accesses his website21:25
Crell shruggar: Ooo...21:25
shruggar Crell, ever used nullsoft "beep"? :)21:26
XDS2010 please read my last statement21:26
shruggar I want a networked version of that21:26
Crell XDS2010: Is this a project you manage, or one you are just monitoring?21:26
shruggar XDS2010, what do you hope to gain from seeing patches flash up on your screen and then go away without your input?21:26
Crell shruggar: No, but a friend of mine once logged into his roommate's computer and piped the kernel file to the sound device.21:26
Scared the crap out of him.21:26
XDS2010 shruggar: direction21:27
RickRaven left21:27
XDS2010 its collaborative21:27
Crell XDS2010: You must read very very very fast...21:27
shruggar XDS2010, you're not making any sense. What would this solve that an RSS feed wouldn't?21:27
XDS2010 I am very very very fast..21:27
:P21:27
XDS2010 shrugs21:27
tango_ XDS2010: the proper way to do this is, everybody commits to their local repositories and then submit the patchset for review before merging upstream21:28
XDS2010: that's how distributed revision control works21:28
XDS2010 what about projects with 0 administration ?21:28
^.^21:28
or 1 administrator FTM21:29
tango_ XDS2010: if you want to review the patches as they fly by, you're not really administering21:29
ignatp joined21:29
Titosemi left21:29
mabrand joined21:29
XDS2010 ok21:29
tango_ XDS2010: they send the patches to the administrator for review, and if the admin likes them, he merges them upstream, otherwise he asks for a rework of the patches21:29
XDS2010 ok this is becoming a argument21:30
its what i want, its my opinion, im entitled to it, im sorry if you dont approve21:30
tango_ XDS2010: if you want to review them as they are being done, ask the devs to create a post-commit hook that sends you the patch. I already mentioned it two times21:31
vdboor_ joined21:31
vdboor_vdboor21:31
tango_ XDS2010: but from what you said I think you want a screencast on your devs rather21:32
XDS2010 ok i suppose i could setup a server to do this21:32
Crell XDS2010: ... entitled?21:33
ziro` left21:33
XDS2010 entitled ?21:33
nighthwk1 left21:33
ziro` joined21:33
XDS2010 ok i suppose i could setup a server to do this , via python21:33
tango_ Crell: entitled to some opinion, it's correct english21:33
Crell Ah.21:33
tango_ XDS2010: a server to do what?21:33
XDS2010 parse the post commit hooks21:34
GMAIL is push21:34
thrope joined21:34
XDS2010 i'll just pull21:34
shruggar you're entitled to whatever broken workflow you want, git is flexible. But we'll tell you that git is flexible, so there's probably a better way :)21:34
XDS2010 with -021:34
tango_ XDS2010: just let the post-commit hooks push the data to you21:34
XDS2010 shruggar: im open to all plausibilities21:35
tango_ XDS2010: and remember that wil git commits are local to the dev machine, so each dev should install the post-commit hook21:35
s/wil/with21:35
XDS2010 wil ?21:35
oh21:35
nvm21:35
tango_ XDS2010: and no you're not open because we have told you about better ways to manage the workflow and you stubbornly persist in wanting yours21:35
XDS2010 i cant have my own opinion ?21:36
what is this aticka ?21:36
tango_ of course you can but don't claim openness 8-D21:36
XDS2010 wtf are you talking about ?21:36
tango_ nevermind21:37
chrislerum left21:37
shruggar XDS2010, just as soon as I understand whatever it is you're trying to do. I tend to browse git-log in the morning to see whatever random commits people have sent in to our central repos, and we have scripts which summarize who has changed what which we run prior to release, just to make sure we all know who to ask about individual changes which may or may not have been properly reviewed21:37
flazz left21:37
XDS2010 shruggar: if i could have an implant put in my brain of the commits i would21:38
shruggar XDS2010, that's pretty much what git-log is ;)21:38
kristian42 How can I find out which files have been deleted between here and another commit ?21:39
XDS2010 shruggar: what could be so bad about seeing patches in real time ?21:39
pavlix left21:39
XDS2010 twitter git21:40
redondos left21:40
XDS2010 :)21:40
shruggar kristian42, git log --name-only --diff-filter=D <other-commit>..21:40
kevinfish left21:40
redondos joined21:40
pavlix joined21:40
doener shruggar: wouldn't diff make more sense than log there?21:40
shruggar doener, yes it would21:40
moops joined21:41
shruggar XDS2010, the problem is the "real time" part. It implies that you want the display to update whenever a new commit comes in, which implies that you don't actually want to read the commit's information, which implies that you don't actually want to do it at all21:42
zenazn_ left21:42
XDS2010 shruggar: for a separate project, i want to be able to see the direction its taking , so that is exactly what i want if i am merging branches.21:43
get it ?21:43
mabrand left21:44
XDS2010 If i administrate 2 completely separate trains and one is moving in one direction and the other in another , you are going to bet your hairy but i would want to view commits as they come in. shruggar21:45
zenazn joined21:45
shruggar XDS2010, if it were anything other than "the patches" maybe. If it were "the summaries", "the log messages", even "the diff-stats", that might make sense. But in any reasonably-active project, the patches coming in would be an unreadable blur.21:45
kenichi left21:45
XDS2010 why would they be unreadable blur ?21:46
drizzd what does it matter? nobody is keeping you from doing what you want to do21:46
XDS2010 if the project is open source and in plain text21:46
shruggar XDS2010, because you want it to move "in real time", without your input21:47
XDS2010 but i wouldn't be directly overseeing the other part of the project21:47
think of it as having 2 admins on the same train21:48
with equal power21:48
you have different cars and different speeds21:48
one at one end and one at the other21:49
shruggar: what i am getting at is , realtime stats are just THAT important21:49
doener XDS2010: pushing 20 commits at a time isn't uncommon, often that's even a low number. The log (with patches) for the last 20 commits in git.git is ~700 lines, for linux-2.6.git it's ~900 lines21:49
Crell stats != patches.21:49
tsundsted joined21:49
XDS2010 doener: thank you21:50
doener XDS2010: having that just thrown at you in realtime seems pretty much useless to me, it takes way too long to digest21:50
homiziado joined21:50
XDS2010 see shruggar , i think we have evolved at some point21:50
tvw joined21:50
enoj left21:50
Crell XDS2010: It sounds almost like you're looking for a realtime version of this: http://code.google.com/p/gource/21:50
XDS2010 where we can actually use patch data21:50
shruggar XDS2010, we all agree that stats are important. If you want realtime stats, ask for those. Patches are just.. stupid to view like that21:50
chrislerum joined21:51
frakturfreak_frakturfreak21:51
XDS2010 ok so i must be stupid then ?21:51
i'll shut up now.21:51
shruggar XDS2010, so I think you should be having a computer run some statistics for you, instead of looking at a blur of meaningless lines21:51
XDS2010 evolution21:52
shruggar XDS2010, this is what we in 2010 do. It's why we use things like git, which have automatic rename detection21:52
XDS2010 shruggar: for one i have single vision21:52
i can visualize and understand 2 things at once21:53
most people cant21:53
phlowx joined21:53
Ilari XDS2010: If you want realtime logging, you presumably need to do so from hook or signal client doing it from the hook.21:53
Crell XDS2010: You're saying that you can read, and comprehend, a diff file of 300 lines thrown at you for about 4 seconds before being replaced by another?21:53
That's the part we don't get.21:53
XDS2010 correct21:53
i am single sited21:53
< sigh >21:54
Ilari 4 seconds? When multiple commits are pushed at once, its much less than that...21:54
Crell You'll forgive us if we find that a bit hard to believe, as it would suggest that you are not a homo sapien.21:54
XDS2010 Ilari: well it would depend on how many commits where being pushed, but i can keep up21:54
shruggar XDS2010, git log HEAD~20..|cat it doesn't matter how fast you can process information. You are not going to be able to read that, and that's without -p21:54
XDS2010 shruggar: Crell http://wiki.answers.com/Q/What_is_single_vision21:55
yes i can to answer your question.21:55
twitter is my friend :)21:55
johnw left21:55
oriba joined21:55
shruggar XDS2010, I don't care what "single vision" is, the refresh-rate of your monitor isn't high enough to do what you're asking21:55
oriba left21:55
drizzd XDS2010: have you tried "watch git log -p"?21:56
XDS2010 no21:56
drizzd it only updates once per second though21:56
hasrb joined21:56
drizzd not sure if that's fast enough for you21:56
XDS2010 shruggar: so i'll use 2 monitors or 321:56
shruggar XDS2010, so my assumption is that what you're conveying that you want isn't what you want21:56
wilhelmtell left21:56
aless left21:56
XDS2010 omfg21:56
/ignore shruggar21:57
Ilari XDS2010: If its single line per commit, then probably you could keep up. But definitely not with full diffs...21:57
XDS2010 what a nut21:57
its single line Ilari21:57
_Vi joined21:58
Ilari XDS2010: Then have hook signal pushes to client, which then fetches the newly-pushed commits and displays them on screen?21:58
XDS2010 if i can parse that yes21:59
ntoll left21:59
Ilari XDS2010: Even opening TCP connection and then immediately closing it is enough for signaling that client should update the display...22:00
magicbronson joined22:00
shruggar left22:00
XDS2010 thats the idea22:00
Tuller joined22:01
XDS2010 im going to check out gsource22:01
Ilari Or have client keep open TCP connection with server. The server then writes something to all connections that it has open when push happens.22:01
bentob0x left22:02
LiamH left22:02
phlowx left22:02
_Vi left22:02
Thumper_ left22:03
Thumper_ joined22:03
peper left22:03
Thumper_ left22:04
Thumper_ joined22:04
eletuchy_ joined22:04
makeworkeasy joined22:05
makeworkeasy left22:05
tychoish joined22:05
eletuchy left22:05
juanjoc left22:06
chrislerum left22:07
tizbac left22:07
Q| joined22:07
eletuchy joined22:08
krawek left22:09
krawek_ joined22:09
homiziado left22:09
Q| Since git "doesn't care about files", is it still possible to issue something like "copy all folders / files from snapshot X to snapshot Y to folder Z"?22:10
eletuchy_ left22:11
MattDiPasquale left22:12
drizzd Q|: git read-tree --prefix=Z/22:12
gbacon left22:13
enoj joined22:13
Crell left22:13
drizzd you probably want to pass -u too, in a non-bare repo22:13
XDS2010 Q| probably22:13
MattDiPasquale joined22:14
swift-prime left22:15
mbroeker left22:15
alester left22:16
boaz left22:16
harinath left22:16
_Vi joined22:17
homiziado joined22:17
name joined22:18
moops left22:18
peper joined22:19
BearPerson is there a way to hook git fetch / git remote update the way you can hook "git push" ?22:20
thiago do you mean you want to run a hook on the server when someone fetches?22:21
shruggar joined22:21
Sjors joined22:21
Sjors Hi!22:21
ignatp left22:21
Sjors I'm wondering: I have a git repository in a/ and a git mirror of a in b/22:21
BearPerson no, the other way around - on the local repository whenever I fetch22:22
ignatp joined22:22
Sjors in the situation that I sometimes commit something in a/, and then run git fetch in b and it fetches the commits for all branches22:22
TeckniX left22:22
Sjors now I want a git hook to be executed, preferably one for each commit, but if there's no way, one if anything's actually changed22:22
anything I can put in hooks/ to do that? I've tried post-commit, update and post-receive, none seemed to be executed seeing that their STDOUT stuff didn't end up on my terminal22:23
rtl left22:23
BearPerson try post-merge22:23
Sjors I don't see a post-merge.example in my hooks/ directory, but allright, let's see22:23
_Vi Sjors, May be try STDERR?22:23
Sjors allright, that too22:24
nope - still nothing, _Vi, BearPerson, tried both22:25
didlix left22:25
RobertLaptop left22:25
LongBeach left22:26
DavidKlein left22:27
wilhelmtell joined22:27
eighty4 left22:27
drizzd left22:27
_Vi Sjors, Are your hooks has executable flag? (chmod +x .git/hooks/...)22:28
portal left22:29
iatrux joined22:29
iatrux left22:30
harinath joined22:31
Sjors _Vi: yes :)22:31
iatrou joined22:31
_Vi Sjors, Then check with "strace -fe execve" does the git really executes your scripts.22:31
iruediger joined22:32
thrope how can I revert a single commit?22:32
_Vi thrope, 1. "git revert <commit-id>"22:32
thrope ah thats easy22:32
_Vi thrope, It will create new commit that negates <commit-id>.22:32
thrope i did googlee but found only more complicated stuff22:32
BearPerson _Vi, probably not, since according to man githooks none of those hooks is strictly supposed to get called by fetch22:33
Gitbot _Vi: the githooks manpage can be found at http://git.or.cz/man/githooks22:33
thrope thanks22:33
BearPerson most of the update stuff is specifically only run when a "git push" happened22:33
thrope can I checkout the file to a state before the commit first to check22:33
that I really want to rever it22:33
_Vi thrope, "git checkout <commit-id> -- path/to/file"?22:34
airborn joined22:34
thrope thanks22:34
nevyn^ joined22:34
_Vi thrope, Is this "bad commit" already published?22:34
thrope yes22:34
airborn hi22:34
thrope first I just want to rever it for testing22:34
galderz left22:34
anjen joined22:35
thrope I think I made a mistake - it says my branch is ahead of origin/win64 by 1 commit22:35
I did git checkout anotherbranch -- file_i_wanted_to_revert22:36
_Vi thrope, "git revert" produces additional "reverting" commit.22:36
Sjors _Vi: It doesn't - I even made them create a file in /tmp, but no new file appears there22:36
beatak left22:36
BearPerson thrope, the git checkout id -- file does not change your current commit or branch, it just changes a file in your checkout22:37
zenazn left22:37
thrope oh its ok I think there was another commit i fogot I hadnt pushed yet...22:37
raichoo left22:38
_Vi Sjors, What command do you expect to execute hooks?22:38
tychoish left22:38
pavlix left22:38
unreal left22:38
coderdad left22:38
stringo0 left22:38
Oxf13 left22:38
spearce left22:38
malumalu left22:38
dbatbold left22:38
parasti left22:38
yaotti_aw left22:38
luke-jr left22:38
tango_ left22:38
GodEater left22:38
niki left22:38
nekoget left22:38
Mage_Dude_ left22:38
fractal_heart left22:38
dahankzter left22:38
iksik left22:38
bmalee left22:38
pdnsmith left22:38
nekoget joined22:39
rgr joined22:39
Circuitsoft joined22:39
zenazn joined22:40
parasti joined22:40
parasti left22:40
nekoget left22:40
name left22:40
eletuchy left22:40
aspotashev|eeepc left22:40
andrewl left22:40
zimbres left22:40
sh1mmer left22:40
Cesario left22:40
ehabkost left22:40
kenyon left22:40
timj_ left22:40
meuh left22:40
Grum left22:40
koki left22:40
avtobiff left22:40
kokx left22:40
Lgb left22:40
cworth left22:40
naquad left22:40
slakmagik left22:40
kingfishr left22:40
kristian42 left22:40
Vadtec left22:40
broonie left22:40
TBH left22:40
cehteh left22:40
Slush- left22:40
FauxFaux left22:40
karihre left22:40
Hadaka left22:40
TheUni joined22:40
Circuitsoft Hello.22:41
Is it possible to ask git-svn to only fetch up to a particular revision?22:41
halfline joined22:41
up_the_irons joined22:41
raim0 joined22:41
jlogsdon joined22:41
cota joined22:41
cxreg joined22:41
cYmen joined22:41
Aikawa joined22:41
Caius joined22:41
rudi_s joined22:41
ahf joined22:41
dmlloyd joined22:41
redbrain joined22:41
mebus joined22:41
wimt joined22:41
Husio joined22:41
David-T joined22:41
mattw joined22:41
bburhans joined22:41
bartman joined22:41
Hunner joined22:41
Bombe joined22:41
Stravy joined22:41
jjcm joined22:41
Rockj joined22:41
MarcWeber joined22:41
TML joined22:41
Nilbus joined22:41
s4msung joined22:41
mapreduce joined22:41
Woody2143 joined22:41
ribasushi joined22:41
tahorg joined22:41
xou joined22:41
thomas_b joined22:41
Tuomas_ joined22:41
nick_h_ joined22:41
Ilari joined22:41
rapha joined22:41
arkx_ joined22:41
jspiros joined22:41
Tass_ joined22:41
NAA1ATN joined22:41
Gitbot joined22:41
py1hon joined22:41
iksik joined22:41
dahankzter joined22:41
fractal_heart joined22:41
Mage_Dude_ joined22:41
NAA2AXS joined22:41
niki joined22:41
GodEater joined22:41
tango_ joined22:41
luke-jr joined22:41
bmalee joined22:41
yaotti_aw joined22:41
dbatbold joined22:41
malumalu joined22:41
spearce joined22:41
Oxf13 joined22:41
coderdad joined22:41
unreal joined22:41
pavlix joined22:41
tychoish joined22:41
nekoget joined22:41
name joined22:41
eletuchy joined22:41
aspotashev|eeepc joined22:41
andrewl joined22:41
zimbres joined22:41
sh1mmer joined22:41
Cesario joined22:41
ehabkost joined22:41
kenyon joined22:41
timj_ joined22:41
meuh joined22:41
Grum joined22:41
koki joined22:41
avtobiff joined22:41
kokx joined22:41
TBH joined22:41
Lgb joined22:41
cworth joined22:41
naquad joined22:41
slakmagik joined22:41
Vadtec joined22:41
kingfishr joined22:41
kristian42 joined22:41
broonie joined22:41
cehteh joined22:41
Slush- joined22:41
FauxFaux joined22:41
karihre joined22:41
Hadaka joined22:41
ruskie joined22:41
tar- left22:41
neutrino joined22:41
brett_h left22:42
parasti joined22:42
ghost_olli joined22:42
ghost_olli left22:42
_Vi Circuitsoft, Start "git svn fetch" and Ctrl+C it when it fetch this revision.22:42
*fetches22:42
bburhans_ joined22:43
neutrinotar-22:43
luke-jr left22:43
unreal left22:43
bburhans left22:43
Tass_ left22:43
Aikawa left22:43
Ilari Heh... Enough users joining to cause lag... :-)22:43
iksik left22:43
iksik joined22:44
Circuitsoft Oh. The reason I'm doing this is to get the git repository to as consistent as state as possible before finishing the job on another computer.22:44
unreal joined22:44
luke-jr joined22:44
iksik left22:44
ziro` left22:44
chrislerum joined22:44
Aikawa joined22:44
_Vi Circuitsoft, Other hack is to filter it's output through a script that will exit when meet "r33445". But this is also not clean way of interruption.22:44
stringo0 joined22:45
_Vi Circuitsoft, I don't know if there is a clean way, but dirty way may work, e.g. you can repair such repository later.22:45
iksik joined22:45
iksik left22:45
Tass_ joined22:45
berserker left22:46
chrislerum left22:46
iksik joined22:46
iksik left22:46
AkumaStreak left22:46
Circuitsoft Ok.22:46
iksik joined22:46
Circuitsoft I guess I'll just move the repo back to the big server as-is and finish the fetch.22:47
Basically, I'm just trying to make a backup of our whole svn repository in git so that if/when it dies all is not lost.22:47
ajpiano joined22:47
p3rg2z left22:47
doener left22:47
berserker joined22:47
Circuitsoft At one time, someone committed a .git folder into svn, and the version of git on the server still has the bug where it doesn't properly ignore them.22:47
_Vi Circuitsoft, It is not so easy to kill git repository using it's commands (even with interruptions).22:48
coderdad left22:48
jjuran left22:48
jjuran joined22:48
_Vi Circuitsoft, "git-svn" should ignore all ".git" directories.22:48
Circuitsoft I was just hoping to have only /objects/pack/* files so I wouldn't have so many files to move over.22:48
Q| left22:49
thiago left22:49
Circuitsoft It does in 1.6.4.4. It doesn't in 1.5.5.622:49
Sjors _Vi: git fetch22:49
_Vi Circuitsoft, If you have only pack file you usually can recover most of repository.22:49
Sjors _Vi: I'm writing a script myself for it now - it gets the status from refs/head, does a git fetch, then gets the status again22:49
Circuitsoft I mean I want to have only pack files.22:50
_Vi Sjors, Hooks are generally for "git push".22:50
Sjors it's supposed to then calculate the difference, and execute a script for every one22:50
_Vi: you can't run git push in a bare repository22:50
Circuitsoft Otherwise there are hundreds of objects/??/* files.22:50
chrisler_ joined22:50
dreiss left22:50
Ilari Sjors: Eh? Git push doesn't need nor use working copy...22:50
Sjors ehhh22:50
I thought it said git pull. sorry22:50
anyway: we don't do git push22:51
we only do git fetch, we push nowhere22:51
BearPerson hmm22:51
_Vi Circuitsoft, Usually after "git gc" important things get packed to packs, and cruft gets away to plain files in objects directory.22:51
brett_h joined22:51
Circuitsoft I've done gc. Can you define cruft?22:51
BearPerson you could push to ., but that'd be a strange hack and I'm not sure if you could get it to work at all22:51
chrisler_ left22:52
_Vi Sjors, "git push" does not refuse in a bare repository.22:52
rayners left22:52
_Vi Sjors, And I don't see reasons why it does need a working copy.22:52
JStoker joined22:52
coderdad joined22:52
BearPerson he confused it with "git pull", as mentioned.22:52
_Vi Sjors, "git fetch" can definitely run in a bare repository (but not "git pull").22:52
Sjors, "git svn fetch" runs in a bare "git-svn" repository, but glitches.22:53
BearPerson Circuitsoft, maybe you want git-repack22:53
or git gc --agressive22:53
ExtraSpice left22:54
_Vi Circuitsoft, After "git gc --aggressive" there is usually one big pack file that contains all database (except of things references only be reflogs etc.).22:54
*referenced only by22:55
Circuitsoft gc --aggressive gave me an "out of memory" error.22:55
I don't think I actually have enough hard drive space to finish a gc --aggressive on this repo on this machine.22:56
fractal_heart left22:56
_Vi Circuitsoft, If you have only that pack file, you can 1. index it "git index-pack", 2. Create a repository, 3. Put the pack and index to it's place, 4. Run "git fsck". It will show the refs (as "dangling commits"), 5. Create branches for each ref.22:56
Circuitsoft, You need to setup limit somewhere to make "git gc --aggressive" not so memory-aggressive.22:57
Circuitsoft Which is why I'm moving the repo back to the server to finish there, and I'm hoping there aren't any more .git updates.22:57
_Vi Circuitsoft, It occupies virtual memory, not hard drive space, AFAIK.22:57
zenazn left22:58
_Vi Circuitsoft, Why so big repository? Big binary blobs in it?22:58
Circuitsoft It occupies HD space while making a new pack before deleting hte old one.22:58
Some. I work at a consulting firm. There's a single SVN repo with all the work we've ever done.22:58
malumalu left22:58
_Vi Circuitsoft, Big binary blobs should not be in the repository. At least they should not be in the same repository as the usual code.22:59
Circuitsoft I've been here over two years, and this same SVN repo has been used since long before i got here.22:59
rgr left23:00
Circuitsoft The git backup is 3.5GB so far, and we're still over 10000 revs back on svn in my backup.23:01
_Vi Circuitsoft, You may "git svn clone" it multiple times, each time different part (if there are no/few moves between such parts).23:01
adymitruk I'm trying to make a submodule out of a repository that's at the same level on my disk as the main repo. Git submodule add ../otherProject otherProject does not work.. What's the porper syntax for for that?23:01
_Vi Circuitsoft, 3.5GB is a git too much for normal git work.23:01
Circuitsoft, (Especially "git gc")23:01
Q| joined23:01
doener joined23:01
_Vi adymitruk, Submodule checkout points should be inside.23:02
Circuitsoft I don't intend to ever have this checked out. It'll be bare only. What I may do is use http://github.com/apenwarr/git-subtree to split out chunks if people want them.23:02
_Vi adymitruk, May be you should create "top-level" repository?23:02
PerlJam left23:03
adymitruk _Vi, I'm not sure I understand23:03
At this point I do not need a containing submodule23:03
I would like project B to be a submodule of project B23:04
_Vi adymitruk, "project B to be a submodule of project B" - queer scheme.23:04
Sjors _Vi: here, git push refuses in a bare repository23:04
_Vi: because it needs a working dir23:04
_Vi: here, git fetch works fine, which is what we use, but it doesn't do hooks23:04
adymitruk they both sit on my machine, so I do not want to install a daemon just to support a git: protocol23:04
_Vi Sjors, Why does it need a working directory?23:04
leavittx left23:04
Sjors _Vi: because it says so23:05
_Vi _Vi, Push does not merge any things.23:05
Sjors wait23:05
wait23:05
I meant git pull :(23:05
again23:05
sylr left23:05
leavittx_ left23:05
Sjors _Vi: git *pull* doesn't work. Git *push* does work, but we have nowhere to push to23:05
_Vi Sjors, git pull == git fetch + git merge (or "git rebase").23:05
warthog9 joined23:05
Sjors and we *don't want* to push anywhere, we want this repository to be the endpoint23:05
_Vi Sjors, Merge can conflict. Conflict resolution is user's work. So merging requires working directory. So merging can't be in bare.23:06
zenazn joined23:06
Sjors _Vi: I understand23:07
corni left23:07
adymitruk It would work if I had an absolute path /tmp/repo/projectA23:07
but I need it to be a relative path23:07
RickRaven joined23:08
_Vi adymitruk, Again, which command do work for absolute path, but not for relative?23:08
adymitruk git submodule add23:08
NetHawk left23:09
adymitruk like in this blog post: http://speirs.org/blog/2009/5/11/understanding-git-submodules.html23:09
_Vi adymitruk, OK, understood. Does something like "file://../submodule" work?23:09
Yuuhi left23:09
hobodave left23:09
RickRaven hi i am new to git and version control systems. i dont know much about these. i want to learn basics. i am reading about these and now i have some questions. first : can i use git completely local? or do i need a git hosting?23:09
_Vi adymitruk, Usually URIs of submodules point to some server.23:10
RickRaven, Yes, you can use git locally.23:10
RickRaven, You can also create two local repositories and use one as "server" and the other as "client".23:10
RickRaven _Vi: why whould i want to do that?23:11
adymitruk so why do absolute paths work but relative ones don't? ... I'm thinking that I just don't have the syntax right23:11
shruggar left23:11
pavlix left23:11
_Vi RickRaven, To learn commands for dealing with servers.23:11
RickRaven oh i see23:11
_Vi RickRaven, (push, fetch)23:11
coppro left23:12
_Vi adymitruk, Usually paths for submodules are URL where everybody can fetch them.23:12
NetHawk joined23:12
RickRaven _Vi: so if i set one as server, can a friend of mine connect the server?23:12
jensn left23:13
_Vi RickRaven, If he can login to you through SSH, yes. If you start "git daemon" then also yes.23:13
RickRaven, (Technically there are not much difference between "server-style" repository and usual with working copy).23:14
hugoxrosa left23:15
RickRaven _Vi: pretty stupid question i guess but i have to ask : i have ubuntu and i am also new to linux. if i create an account friend, can my friend connect through ssh?23:16
_Vi RickRaven, (thinking). Probably, yes.23:16
RickRaven, 1. "useradd qqq". 2. "passwd qqq", enter and confirm password,23:16
brizly joined23:17
_Vi RickRaven, 3. "ssh qqq@localhost", enter the password, verify it works and you can login.23:17
xiong joined23:17
Ilari RickRaven: If this is for Git repo hosting, better to use gitolite...23:17
brizly1 left23:17
_Vi RickRaven, 4. (logged in as qqq) "cd; mkdir repo; cd repo; git init --bare";23:18
RickRaven, 5. Check it out yourself: "git clone [email@hidden.address]23:18
dkulchenko joined23:19
_Vi RickRaven, 6. Tell your friend to check out it "git clone qqq@your_ip:/home/qqq/repoi".23:19
RickRaven, This is manual setup for git repository over SSH. There are tools to simplify it (gitolite, gitosis).23:19
adymitruk for some reason, local submodules can be added if the URI is an absolute path. A relative path will want the submodule repository to have a remote defined23:20
_Vi RickRaven, But anyways you should first just to add and commit something locally.23:20
adymitruk very strange23:20
dkulchenko Hi all! I've added a post-receive hook which is outputting to the console. My hook runs a forked script. If I run the hook by hand (from the shell, not via git) it exits when it should. If I let git run the hook, it hangs, waiting for the forked process to finish. Why? and how can I fix this?23:20
nevyn^ left23:21
priidu__ left23:21
nevyn^ joined23:21
_Vi dkulchenko, How do you fork a process?23:21
PerlJam joined23:21
RickRaven _Vi: great guide thank you, i will check other tools as well. but i have some more questions : why would i want to use a hosting service instead of owning my own server? just another question : what happens when i commit? Does it save and send my files to server?23:22
patrikf dkulchenko: you probably want to use setsid23:22
dkulchenko _Vi: my commit hook is a Perl script, i use Perl's fork()23:22
_Vi RickRaven, Yes, you can use, for example, github. If is easier than setting up networked repo yourself.23:22
dkulchenko patrikf: how?23:23
patrikf RickRaven: commit is local to the repo. there's a separate command for updating the server's state ("push")23:23
_Vi RickRaven, In git, there is following workflow:23:23
vdboor left23:23
RickRaven patrikf: thank you for pointing it out23:24
_Vi RickRaven, 1. You change or create some files. "git status" shows "Changed, but not updated" or "Untracked".23:24
RickRaven, 2. You add (stage) files: "git add ." Now "git status" shows your files are "Modified" or "New". Then are prepared for committing.23:24
zenazn left23:25
dkulchenko I'm not sure why git is waiting for the fork. The shell doesn't.23:25
_Vi RickRaven, 3. You commit "git commit". Now files you have prepared saved as commit (with date, commit message, authorship etc). After committing there are not "prepared" files again.23:25
dkulchenko, Use bash as wrapper.23:25
nevyn^ left23:26
dkulchenko _Vi: hmm good idea23:26
patrikf dkulchenko: POSIX::setsid or setpgrp should do the trick23:26
_Vi RickRaven, 4. You push (publish) commit[s] to the server. "git push origin master:master".23:26
RickRaven, Now already made commits are uploaded to server. You are better not to edit such commits after "push".23:26
dkulchenko patrikf: what does setsid do, anyway?23:26
patrikf dkulchenko: i'm sure you'll find lots of documentation on this topic23:27
dkulchenko patrikf: okay, thanks23:28
patrikf dkulchenko: i'm not the knowledge base, just the guy pointing in the right direction :-)23:28
_Vi RickRaven, You can use "git gui" to stage, commit (may be to push). Also you can use "gitk" to view the commit history in beautiful GUI form.23:28
Tuller_ joined23:28
RickRaven _Vi: thank you. i heard that there is a tool called tig for easy of use. should i use this or the original git tool? what would you suggest? should i... before i ask you almost answered my question. so, git gui, gitk or git or tig. which should i learn?23:29
_Vi RickRaven, After "git commit" the data is permanently stored into your repository and should not be lost (if the repository itself not broken). After "git push" the data is stored on server.23:29
adymitruk RickRaven, try progit.org/book23:29
dkulchenko left23:30
_Vi RickRaven, I haven't used neither "tig" nor "cogito". I would recommend learning to use git entirely from command line + learn to use "git gui" and "gitk" to simplify things.23:30
ShooterM_ left23:30
_Vi RickRaven, When you will understand git and be able to solve things when something goes wrong, you can use any tool, including some IDE plugins for git.23:31
leavittx_ joined23:31
leavittx joined23:31
fractal_heart joined23:32
RickRaven _Vi: thank you my friend i have no more questions for now. great help, thank you again.23:32
thrope left23:34
dkulchenko joined23:34
plediii left23:34
airborn left23:34
dkulchenko patrikf: setsid didn't do anything :/23:35
patrikf dkulchenko: you might also want to close any open fds, esp. stdin/out/err23:36
dkulchenko patrikf: ah okay, i'll try23:36
but still, why does it terminate from shell, but not from git?23:36
enherit left23:37
patrikf dkulchenko: i'm quite sure your hook does terminate, but something (git, but more likely ssh) is waiting for all child processes... or some fd23:37
dkulchenko patrikf: ah, that makes sense23:38
_Vi dkulchenko, May be try more "strace" to see what is it waiting for?23:38
RickRaven left23:38
dkulchenko patrikf: wow, you're a genius :P closing stdin/out/err solved the problem23:40
wilhelmtell left23:42
patrikf dkulchenko: isn't forking fun. my last stroke of genius was having a pipe() *after* fork()...23:42
dkulchenko patrikf: that's pretty great ;)23:43
lispy left23:43
Heimidal joined23:44
Tuller left23:47
Tuller_Tuller23:47
petercoulton joined23:50
rox` left23:52
frakturfreak left23:54
doener left23:54
enherit joined23:55
karptonite left23:58

Logs Search ←Prev date Next date→ Channels Documentation