IRCloggy #git 2012-11-29

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.

2012-11-29

steveoh cbreak: you got a minute for some git branch -m00:00
cbreak that's branch renaming, not what you want00:00
steveoh it is what i want00:01
cbreak then do it00:01
eijk joined00:02
steveoh sigh00:02
Mag-en00b joined00:02
samuel02 left00:02
cbreak what's your problem?00:03
shruggar left00:03
cbreak is it not knowing how to use git branch -m?00:03
sirdancealot8 left00:04
kevwil left00:04
Mag-en00b http-backend sets GIT_COMMITTER_NAME, yet when i push or commit, everything in the repository is made with the original committers name..?00:04
Parhs joined00:04
wereHamster Mag-en00b: pushing doesn't change the committer identity00:05
in fact, pushing does not modify the transmitted data at all00:05
rednaks left00:05
hyperair left00:05
cbreak Mag-en00b: committer-name only affects committing00:06
http has nothing to do with committing00:06
infynyxx left00:06
slamice_ joined00:07
fly9 left00:07
rgr left00:07
bubbles10101 left00:07
nitrix left00:07
slamice left00:07
slamice_slamice00:07
kerrick joined00:08
bubbles10101 joined00:08
bubbles10101 left00:08
bubbles10101 joined00:09
btree left00:09
Mag-en00b cgi git http-backend in question, so what is this line supposed to do? https://github.com/git/git/blob/master/http-backend.c#L33500:09
Back2Basics joined00:09
cbreak|evil joined00:10
wereHamster Mag-en00b: https://github.com/git/git/commit/e32a4581bcbf1cf43cd5069a0d19df07542d612a00:10
chaiz joined00:11
eijk left00:11
kerrick left00:11
BD- left00:11
kerrick joined00:12
eijk joined00:12
Mag-en00b that i know, i posted report to the mailing list about the documentation bug relating to that commit message00:12
TeamColtra joined00:12
v0n left00:12
Mag-en00b but as i just tried to set the variable GIT_COMMITTER_NAME for the cgi-program and push some data, nothing changed. committer's names were same as before. how is that variable supposed to help anything when all that cgi http-backend does is receive packs?00:13
cbreak left00:13
cbreak|evilcbreak00:13
wereHamster Mag-en00b: ask peff .. ?00:13
cbreak Mag-en00b: as I said00:13
it's not supposed to do anything unless you commit00:13
http has nothing to do with committing00:13
pushing has nothing to do with committing00:13
kermit left00:14
steveoh phew00:14
i made it work!00:14
wow00:14
Mag-en00b yeah. thus it seems seems that functionality is there for nothing00:14
cbreak easy, wasn't it?00:14
steveoh i'm a git phanboi now00:14
no i hated it00:14
cbreak Mag-en00b: no, for committing00:14
steveoh it scared me00:14
FauxFaux Mag-en00b: The tests talk about the reflog.00:14
steveoh :)00:14
wereHamster cbreak: can http-backend commit?00:14
steveoh thanks00:14
cbreak no00:14
FauxFaux It updates the reflog, though.00:14
cbreak as I said00:14
it's for committing00:14
not for pushing00:14
wereHamster cbreak: so.. if http-backend can not commit, why does it export GIT_COMMITTER_NAME00:15
?00:15
FauxFaux Including committing updated reflog entries.00:15
For the reflog.00:15
cbreak wereHamster: don't ask me. Maybe so hooks can check it or something?00:15
FauxFaux wereHamster's link is very explicit.00:15
emankcin joined00:16
Mag-en00b i'm quite confused. though might have something to do with the fact that i'm not so familiar with git.. reflog committing.. doesnt open up a bit to me :x00:16
ninegrid joined00:16
wereHamster Mag-en00b: reflog committing is the wrong word. It's simply a file which contains how refs changed. And it includes who updated the refs. See the test of that commit.00:17
Mag-en00b: https://github.com/git/git/commit/e32a4581bcbf1cf43cd5069a0d19df07542d612a#L2R23600:17
eijk left00:17
Mag-en00b yeah, thanks. i'm reading it00:17
eijk joined00:18
hotovson left00:19
jdunck left00:20
juvenal joined00:20
dlam` joined00:20
Spaceghostc2c left00:21
infogulch left00:21
BadProphet joined00:22
alnr After a push, git-diff is confusing me. Eg, I do: 1) local:(master)$ git merge myfeature. 2) local:(master)$ git checkout myfeature 3) local:(myfeature)$ git push prod myfeature. 4) prod:(master)$ git merge myfeature. 5) local:(master)$ git diff prod/master. Here, prod/master looks pre-merge, but on prod, the working tree correctly reflects step 4). What am I missing, shouldnt the diff match?00:22
picoguy left00:22
infogulch joined00:22
infynyxx joined00:22
Anders_J left00:22
Guest11213 joined00:23
MrNibbles left00:23
wereHamster alnr: before 5: git fetch prod;00:23
hellopat joined00:24
alnr wereHamster: ok, i think i fundamentally dont understand why thats needed00:24
is the diff just looking at the local copy of prod/master? i thought it was going across the wire00:25
wereHamster alnr: because local has no clue at all that you have done something on prod.00:25
adymitruk joined00:25
Mag-en00b thanks. had problems because bare repo didn't record reflog by default, but now i can see the point of those env-vars00:25
wereHamster alnr: the only commands that go across the wire are fetch and push. Everything else is local.00:26
adymitruk anyone ever get the "fatal: You are on a branch yet to be born"? however, I am on a branch... this is not allowing me to reference a submodule..00:26
alnr wereHamster: thanks, i had a faulty understanding there which was really causing problems00:26
thiago left00:27
eijk left00:28
infogulch left00:29
eijk joined00:29
steveoh left00:30
gerard0 joined00:31
cakehero left00:31
infogulch joined00:31
eijk__ joined00:31
rideh joined00:33
simesy joined00:33
simesy left00:33
alnr followup, this workflow cant be right. what would be the more efficient way to deploy myfeature, developed on local, to prod?00:33
gtrak left00:34
simesy joined00:34
yakko joined00:34
eijk left00:35
slamice_ joined00:35
eijk joined00:35
eijk__ left00:36
nkuttler left00:36
benbergman left00:37
slamice left00:37
slamice_slamice00:37
wereHamster alnr: a deployment tool.00:38
MrNibbles joined00:39
nkuttler joined00:39
nkuttler left00:39
nkuttler joined00:39
gusnan left00:39
eijk left00:40
btree joined00:40
slamice left00:41
bronson left00:41
aruiz left00:42
slamice joined00:42
jcao219 joined00:43
aynik_ joined00:44
benbergman joined00:44
TomWij left00:45
aynik left00:45
kvothe joined00:46
kvothe left00:46
kvothe joined00:46
sirdancealot8 joined00:46
TomWij joined00:46
yshh left00:46
aynik_ left00:47
juril left00:48
dragon3_ joined00:51
marhaban joined00:55
kermit joined00:55
lresende left00:56
Imaginativeone joined00:56
dermoth|work joined00:57
Aikar joined00:57
tinybluepixel left00:57
sirdancealot2 left00:59
yshh joined00:59
glennpratt left00:59
ejd left01:00
rideh left01:00
Guest7061 left01:00
yakko left01:00
Febul joined01:00
psoo left01:00
jasonmog left01:01
FebulGuest9522101:01
rchavik left01:01
yakko joined01:02
xiangfu joined01:02
quazimodo left01:02
cbreak|evil joined01:02
alunduil joined01:03
nurey joined01:03
adamben left01:04
cbreak left01:04
cbreak|evilcbreak01:04
SBoudrias joined01:05
Imaginativeone left01:05
tewecske left01:05
angelsl joined01:08
dragon3__ joined01:09
eft left01:11
petteyg joined01:12
hyperair joined01:12
dragon3_ left01:12
JoeAngel_ joined01:13
apok left01:13
apok joined01:13
darkclown left01:14
beavel joined01:15
etcetera left01:16
imrobert left01:16
DarkClown joined01:17
lenswipee joined01:17
Mag-en00b left01:17
lenswipee hi, can someone tell me an editor that window users use for git?01:17
i don't like the default vi editor01:17
wereHamster notepad!01:18
lenswipee something more advanced than notepad.01:18
JStoker left01:18
Chani lenswipee: I hear notepad++ is popular. never used it myself01:18
wereHamster visual studio 2013?01:18
Chani haha01:18
yeah probably01:18
but wait.. for git? like, for commit messages?01:19
what about tortoiseGit?01:19
OOPMan left01:19
lenswipee tortoiseGit has built in editor?01:19
quazimodo joined01:19
fisted joined01:20
Chani well, tortoiseSvn does. it's not exactly hard to make a text input box01:20
lenswipee just need a editor that does two things: show line numbers and highlight code01:21
martinjlowm-lapt left01:21
GeertB joined01:21
lenswipee like gedit, but that doesn't work on git01:21
wereHamster lenswipee: have you tried asking in #windows?01:21
Chani code?01:21
lenswipee: what has code got to do with git?01:21
LuxuryMode joined01:21
lenswipee Chani: thats silly01:22
Chani the internet is silly.01:22
etcetera joined01:22
lenswipee for some01:22
Chani lenswipee: I'm really not clear on what you want this text editor *for*.01:22
lenswipee Chani: to edit text. what else do you think?01:23
imrobert joined01:23
Chani lenswipee: what kind of text?01:23
lenswipee what do you noobs use?01:23
wereHamster vim01:23
lenswipee lol01:23
Chani too01:23
lenswipee too slow01:23
Chani actually no, I don't give a fuck :) I have video games to play01:24
wereHamster Chani: WoW?01:24
TeamColtra left01:24
Chani wereHamster: ocarina of time01:24
OOPMan joined01:24
wereHamster Chani: is that like tetris?01:24
Chani lol01:24
wereHamster pacman?01:24
infynyxx left01:24
ninegrid left01:25
Chani just found out that most of the old zelda games are available for wii01:25
lenswipee wereHamster: by video games he means porn01:25
abhatnag joined01:25
tewecske joined01:25
devth left01:26
Mode-M left01:26
abhatnag quick question about git stash: when I go git stash show, the files listed include changes in ALL my stashes, ie from stash@{0} to stash@{10}. The same happens when I go git stash show stash@{0} or any other reference. Is that how it is expected to work?01:26
TeamColtra joined01:26
unreal joined01:26
lenswipee notepadd++ is the one for me :), thanks01:27
ninegrid joined01:27
jacobt joined01:27
oojacobo_ joined01:28
zivester left01:29
juvenal left01:29
skorgon abhatnag, sounds wrong. and behaves differently for me01:29
abhatnag skorgon: hmm, how do you create your stashes? I usually go, stash save "comment"01:30
oojacoboo left01:30
sideone left01:30
oojacobo_oojacoboo01:30
skorgon i usually just use 'git stash'01:30
abhatnag interesting. As far as my knowledge goes, they both should be the same.01:30
jacobt left01:31
jfs joined01:31
EugeneKay git stash is a hackjob command. I wouldn't be surprised if that was a bug.01:32
I recommend creating a temp branch and making a quick commit to that instead01:32
This leaves you with something you can push to a central repo and then fetch to any other boxen you have a copy of the repo on01:32
fisted left01:33
tinybluepixel joined01:34
fisted joined01:35
lenswipee left01:35
zivester joined01:35
mikepack joined01:35
fistedGuest4329401:35
Guest95221 left01:36
mneorr_ joined01:36
benbergman left01:37
m0ltar left01:37
zivester left01:37
paolooo joined01:37
BadProphet left01:38
tinybluepixel left01:39
juvenal joined01:40
kenperkins left01:41
paolooo left01:42
BadProphet joined01:42
Guest43294 left01:42
dankest left01:44
slamice left01:44
angelsl left01:45
JStoker joined01:45
LuxuryMode left01:46
benbergman joined01:49
fisted_ joined01:50
nurey left01:50
abhatnag left01:50
slamice joined01:51
ninegrid left01:52
carbohydrate joined01:53
rideh joined01:53
offby1 *gasp*01:53
git stash is the way and the life!01:54
lresende joined01:54
psilo_ offby1: yep01:54
ninegrid joined01:55
kerrick left01:56
AaronMT left01:57
carbohydrate hello everyone. does anyone here have experience using git from the command line using eclipse? if so, how well does it work? i'm not really interested in egit, but i'd like to start tracking my development better01:57
EugeneKay I HATE SUBMODULES DIE DIE DIE01:58
Vinnie_win agreed01:58
hwrd|work left01:58
vpetro left01:58
jackh joined02:00
russt left02:01
luc_ joined02:01
jdyin joined02:02
alexim left02:02
dlam` left02:04
jfs left02:07
cyphase left02:08
sluther left02:09
delirium joined02:09
dankest joined02:09
Back2Basics quick terminology question: Pull is upload? push is what?02:10
EugeneKay Other way around02:10
push copies from your local repo to a remote one02:11
fetch grabs from a remote repo to your local one02:11
Back2Basics a pull request is ?02:11
imMute and pull = fetch + merge02:11
EugeneKay pull does a fetch, then merges the current branch with its "upstream" equivalent02:11
v0n joined02:11
imMute Back2Basics: a github thing02:11
EugeneKay A Pull Request is a request that somebody else Pulls from you02:11
Back2Basics imMute: it's a bad design thing.02:13
imMute huh?02:14
ehsan_ left02:14
Back2Basics I don't have "fetch" (using the github app) would "sync branch" not issue a pull request?02:16
the_cybersphinx left02:16
imMute Back2Basics: github... app??02:16
Back2Basics http://mac.github.com/02:17
imMute yuck.02:17
offby1 carbohydrate: I use git with eclips.02:17
carbohydrate: I don't use egit; I use the command line.02:17
carbohydrate: the only tricky bit (apart from Eclipse being a worthless piece of shite) is that the projects that I use Eclipse with tend to be made by people who don't know anything about revision control, and therefore they check in stuff that shouldn't be checked in ...02:18
aspotashev joined02:18
Internet13 left02:18
oojacoboo left02:19
tvw left02:19
fisted_ left02:19
Gentlecat left02:20
m0ltar joined02:20
nurey joined02:21
Gentlecat joined02:22
mneorr_ left02:22
ninegrid left02:22
mneorr joined02:22
hwrd|work joined02:24
ninegrid joined02:25
cyphase joined02:26
dankest left02:26
spiderweb joined02:26
someprimetime so i just downloaded an entire website from my server so i can work on it locally and then push to github. so now i have a bunch of folders that i want to add and push to my repo on github… well I can add some of the folders but there is one folder that keeps giving me this on `git status` modified: app (modified content, untracked content)02:27
benbergman left02:29
kpreid left02:29
kpreid joined02:30
Squarism left02:30
bronson joined02:30
fisted joined02:33
fistedGuest2172302:33
kerrick joined02:34
mneorr left02:34
Guest21723 left02:34
undecim_ left02:35
benbergman joined02:35
undecim_ joined02:35
todd_dsm left02:35
dankest joined02:36
kerrick left02:40
Internet13 joined02:41
nurey left02:41
benbergman left02:43
simesy_ joined02:43
fisted_ joined02:43
benbergman joined02:43
EugeneKay !repro02:43
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.02:43
kerrick joined02:44
kerrick left02:45
kerrick joined02:46
simesy left02:47
rchavik joined02:47
todd_dsm joined02:47
hafeez3000 joined02:48
yakko left02:49
Vampire0_ joined02:51
kerrick left02:54
Vampire0 left02:54
silves joined02:56
boichev left02:56
JSharpe_ left02:58
Internet13 left02:58
nurey joined02:58
tinybluepixel joined02:58
gurps left02:59
marhaban left03:00
pantsman joined03:00
pantsman left03:00
pantsman joined03:00
dankest left03:01
simesy_ left03:01
oojacoboo joined03:01
Gentlecat left03:01
Internet13 joined03:02
simesy joined03:02
Guest11213Spaceghostc2c03:02
silves left03:03
jacobt joined03:03
dragon3_ joined03:04
lresende left03:05
oojacoboo left03:06
jacobtoojacoboo03:06
echo-area joined03:07
silves joined03:07
dragon3__ left03:08
pantsman left03:10
russt joined03:10
ehsan joined03:11
gtrak joined03:13
boichev joined03:13
silves left03:14
cgar joined03:14
infynyxx joined03:15
tmcmahon joined03:17
Chibby_ left03:18
cgar left03:19
jetole joined03:19
jetole Hey guys. I'm diving into learning git. I've used it here and there over the years but never on my own project or one I contributed on. Anyways, how do I list all of the branches that exist in a repo?03:20
ah never mind. `git branch` does the trick03:21
gurps joined03:22
jetole would I use git branches for project revision numbers?03:22
sjhuang left03:22
svetlyak40wt joined03:24
sjhuang joined03:24
cgar joined03:25
fletch` left03:25
imMute jetole: there are plenty of branching "strategys", but tags should probably be used to designate release versions. although, if you have to support / develop more than one version simultaneously, then having a branch-per version would be a good way to go03:25
LekeFly left03:26
imMute I kinda like the model described by http://nvie.com/posts/a-successful-git-branching-model/ (except for a few things)03:26
someprimetime yo03:26
i'm trying to add a folder that had an instance of .git inside of03:26
Chibby_ joined03:26
jetole imMute: I understand about the different means a project can be "versioned" but I mean with my own versioning system, how would I use this with git say if I want to save revision 1 and then sometime later while working on 3.5 I want to go back to revision 1 for review?03:26
jetole checks the link03:27
psilo_ jetole: you checkout the old version, that's all03:27
imMute jetole: oh, you mean checking out previous revisions of the project? yeah, you just checkout the old version03:27
someprimetime i deleted that .git instance and tried to add it again and i'm getting this: fatal: Path 'app/Config' is in submodule 'app'03:28
svetlyak40wt left03:28
jetole psilo_: ok. I am very new to understanding git and I'm not a programmer by profession. from what I understand git saves revisions as hex keys? if I have my revision 1 ready to commit now, how would I commit it so that I could reference it later via the revision I'm using03:28
imMute someprimetime: sounds like the first add was adding a submodule. not sure how you'd get git to undo that though. maybe 'git rm --cached app' ??03:29
OOPMan left03:29
JPeterson how do i list all unindexed commits?03:29
imMute jetole: you can use tags to attach your own "version numbers" to commits.03:29
JPeterson: unindexed?03:29
someprimetime imMute: you fuckin genius03:29
+1!!!03:29
JPeterson imMute: commit not in log03:30
jetole imMute: and I just pulled up the git books tag page which I'm about to read but I could reference commits later via the tags I assign?03:30
imMute JPeterson: probably via the reflog03:30
mikepack left03:30
psilo_ jetole: what imMute said. alternatively if you don't want to do that yet, just commit it, then `git log` to find the commit hash. you can then checkout that hash03:30
someprimetime can i tell git to ignore image files?03:30
like when adding files03:30
psilo_ someprimetime: .gitignore -- this is definitely getting into "read a tutorial" territory03:31
imMute jetole: yes, whenever a command wants a commit hash (I forget the wording git uses... commitish?) you can provide a hash, a partial hash, a tag name or a branch name03:31
echo-area left03:31
jetole psilo_: I don't know if I want to do that yet. about to read about it and I'm more on the path of learning git instead of how it applies to an actual project at the moment. playing with it now on some demo directories and trying it out03:31
psilo_ someprimetime: sounds like you are using `git add *` or something, not really a good practice03:31
jetole imMute: thanks. I'm going to read this page (http://git-scm.com/book/en/Git-Basics-Tagging)03:32
myx left03:32
someprimetime psilo_: i'm adding an entire folder which is my entire website03:32
jetole psilo_: thank you too03:32
someprimetime problem?03:32
psilo_ someprimetime: .gitignore03:32
echo-area joined03:32
someprimetime ah so you suggest going in and adding that to each folder i want ignored?03:32
imMute someprimetime: no, we suggest you go read the docs on how to use .gitignore03:33
psilo_ jetole: http://cbx33.github.com/gitt/intro.html This book may be interesting to you, it's rather slow-paced if you already know some versioning concepts but it's good03:33
hafeez3000 left03:33
jetole oh that reminds me, if I put a .gitignore in my project and I commit the .gitignore then that means all other developers who clone/checkout the project would be using the same .gitignore on that project?03:33
psilo_ imMute++03:33
imMute jetole: correct.03:33
jetole imMute: ah cool. thanks again03:33
JaredMiller joined03:33
jetole psilo_: I'll book mark it but I'm diving in already and I used to use svn a few years ago so I don't want to take it too slow03:34
psilo_ jetole: yeah probably some other book is better in that case03:34
imMute git for svn users?03:34
JPeterson why is it so convoluted http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository/1591174#1591174 to clear unlogged commits?03:34
imMute http://git.or.cz/course/svn.html # that. good for diving right in, but you'll have to "forget" svn to use git properly03:34
OOPMan joined03:35
robbyoconnor joined03:35
imMute JPeterson: that message is rewriting history - not clearing "unlogged commits"03:35
JPeterson my convern is that an unindexed commit might have sensitive data that should be removed03:35
benbergman left03:35
someprimetime imMute and psilo_ thanks gitignore looks like what i need to be using03:36
do you recommend doing a global gitignore file?03:36
imMute JPeterson: if a commit is really not part of any history (not reachable through any branch) then the commit will eventually be deleted via git-gc03:36
someprimetime: I use them all the time.03:36
someprimetime word! thx03:36
jetole imMute: well it has been a few years so I don't think I have too much to forget03:36
:-)03:36
imMute jetole: righto. also, you may or may not be interested, but reading some about how the git object store works (even if you don't understand it fully) would help you understand how to use git as well.03:37
Back2Basics left03:37
JPeterson imMute: so "git commit --amend; git gc" removes the sensitive data that was overwritten with amend?03:37
jdunck joined03:38
imMute JPeterson: not immediately03:38
OOPMan left03:38
jetole I'm a systems engineer and lately, mostly, I have been using bzr but I haven't been using for code maintenance as much as on the spot repos for system files I am editing or other aspects where I need to be able to immediately restore but point being I don't use bzr in depth enough there to have to worry about fogetting too much either03:38
JPeterson what does?03:38
tmcmahon left03:38
imMute JPeterson: the old commit will be held on to until it expires. there are ways to make it expire immediately, but you'd have to read teh git-gc manpages to figure out how03:38
JPeterson imMute: what about "git reflog expire --all --expire=now"?03:38
jetole imMute: two steps ahead of you. I read a good article about git in Linux Journal a month or two ago which described the details plus the book I referenced above which I think is the stock reference also had some good details about how it worked03:39
imMute that'd probably be part of it, sure.03:39
orafu left03:40
jetole oh. I hope this isn't off topic but, I read that any copy of the most recent git checkout can be used to rebuild the master server from that same revision as the checkout and I guess this applies to why it's considered distributed development but what I'm wondering is if anyone is familiar with MS Team Foundations VCS (I'm not but my co-workers are) and if it has this same distributed nature where a recent checkout/clone can be ...03:41
... used to rebuild a failed/lost/gone master03:41
imMute TFS? that's about as far into centralization as you can get..03:42
berserkr1 left03:42
benbergman joined03:42
lenswipee joined03:42
imMute also, s/checkout/clone/ of your last statement.03:42
jetole imMute: meaning a client checkout/clone can't be used to rebuild the master server?03:43
imMute with TFS? nope. with git? yes03:43
jetole good to know03:43
imMute in git (as with every distributed VCS), every repository (or clone) contains the *entire* history of the project03:44
jetole glad you used s/checkout/clone/ and not s/checkout/clone/g since I also used "checkout/clone" later on the same line. lol03:44
orafu joined03:44
nsadmin left03:44
jetole imMute: yeah that's what I read but I was wondering if TFS had that capability. I haven't used TFS and seldom use windows but uh, yeah, really good to know that it doesn't have that feature / capability03:45
imMute jetole: if you want my honest opinion about TFS - I'd rather use .zip files than that pile of shit. >.>03:45
lenswipee what is the command to show all git commands?03:45
imMute lenswipee: *all* of them? probably isn't one.03:45
Spaceghostc2c man git03:45
gitinfo the git manpage is available at http://jk.gs/git.html03:45
imMute listing all of them wouldn't be of much help anyway03:46
Spaceghostc2c Or for me, git<tab><tab>03:46
ryez joined03:46
jetole imMute: also good to know. trying to keep my personal opinion quiet since you never when and where IRC could be logged03:46
qmanjr5 joined03:46
jetole imMute: but I'm not arguing with you at all03:46
Spaceghostc2c I do the opposite03:46
qmanjr5 Would this be the channel to ask a question regarding the Git Bash prompt?03:46
imMute qmanjr5: possibly. we wont know until you ask :)03:47
Spaceghostc2c IRC is my distributed and federated blog platform. Your hard disks are my mirrors!03:47
jetole qmanjr5: you never know until you ask03:47
lenswipee imMute: say i'm looking for a command to do *something*, but i don't know how to use git to show that command.03:47
imMute lenswipee: then google "how do I do X"03:47
jetole Spaceghostc2c: nicely put03:47
Spaceghostc2c jetole: Thanks. :)03:47
imMute lenswipee: since the names of the git commands are hardly indicitive of what they do03:47
Spaceghostc2c indicative* (Sorry)03:48
lenswipee imMute: are you being sarcastic?03:48
sangi joined03:48
jetole qmanjr5: do you know what the action of the command you want is? Try describing it and see if anyone can tell you what the command is03:48
qmanjr5 Well I'm trying to output the current Git branch and status to my Bash prompt. I have http://pastebin.com/H7ujr1cJ as my .bashrc right now03:48
imMute lenswipee: not at all. "reset" does a bunch of different things, depending on waht you feed it.03:48
glennpratt joined03:48
jcao219 left03:48
qmanjr5 It's plastered all over the internet as how to do it, but it doesn't work.03:48
imMute lenswipee: and in some cases, you might actually want "checkout" to do something that you'd think "reset" would cover.03:48
qmanjr5 Or at least for me. :P03:49
jetole I think I'm going to git clone git for my demo dir of learning git :-D03:50
after reading "The Git source repo, for instance, contains more than 240 tags"03:50
lenswipee imMute: i think it would be useful to learn how to use git in CLI to do what you want, and not have to rely on the internet for the manual or google.03:50
h0bbit joined03:50
jcao219 joined03:51
imMute jetole: looking at the git or linux repos would probably be a really good indication of how git is used :)03:51
lenswipee imMute: to get git to list the commands so that you can then select one of them for further inspection.03:51
imMute qmanjr5: what doesn't work on it?03:51
mikepack joined03:51
jetole I agree but I'm trying to find the git git repo. lol. I'm looking at http://git-scm.com/download/linux now03:51
imMute lenswipee: the manual is on your hard drive. `man git`03:51
gitinfo lenswipee: the git manpage is available at http://jk.gs/git.html03:51
R_Macy joined03:51
cakehero joined03:52
imMute jetole: https://github.com/git/git03:52
jackh_ joined03:52
qmanjr5 imMute: When I go into a repo, nothing is displayed in my prompt.03:52
jetole I was just about to say found it @ https://github.com/git/git.git03:52
thanks imMute03:52
qmanjr5 imMute: Or rather, nothing relating to Git.03:52
jackh left03:52
jetole wait why does mine have a .git at the end and your doesn't03:52
?03:52
nevermind03:53
jetole slaps forehead03:53
psilo_ I like how more tokens in that url are git than not03:53
lenswipee imMute: how to launch the manual from git CLI?03:53
jnewt joined03:53
psilo_ git git git://git.com/git/git.git03:53
infynyxx left03:53
kukks left03:53
jetole lol03:53
imMute qmanjr5: it's probably because $PS1 isn't reevaluated every time it needs to print the prompt. so it ran __git_ps1 when you sourced the .bashrc but never runs it again03:53
qmanjr5 Ohhh03:54
imMute qmanjr5: you need to use bash's prompt_command to re-create your PS1 every time it does a new prompt03:54
jetole imMute and qmanjr5: There is a way to do that with PS1. I don't remember how but it was a ticky var to write03:54
qmanjr5 jetole: It's already written.03:54
imMute: I see. Thank you.03:54
jetole I'm trying to remember the bash wiki I read it on. woo something but #bash would be a good place to ask03:54
imMute jetole: really? every dynamic prompt I've seen has always used prompt_command03:55
jetole qmanjr5: I'm refering to having PS1 run a command on each instance it's displayed and not just when .bashrc is run03:55
chuckharmston joined03:55
jnewt repo is up to about 2gb, and git checkout . is not working anymore (well maybe it is, but for the past 10 mins it's just been hanging there). have i reached a limit of some sort? seemes to me i remember someone doing 250g or even 500g somewhere.03:55
qmanjr5 jetole: This is the PS1 variable.03:55
jetole imMute: I don't know what you just meant but I ran into this issue before with a PS1 I wanted and I solved it and it used an out of the usual method for specifying the command within the variable03:55
imMute jnewt: uh, what are you trying to do with 'git checkout .' ?03:56
JEEB left03:57
jetole hmmm. according to something I just read it's as simple as using $(command) in the variable but I thought I recalled that what you said was true where the typical way you specify it only executed it once03:57
echo-are` joined03:57
jetole oh I remember I was trying to have bash history pushed to the file on every command run03:57
this is off topic so I'm going to shut up03:58
imMute jetole: ah, well thats likely controlled by a different variable..03:58
echo-area left03:58
kerrick joined03:59
jnewt imMute: I'm trying to take over the world...thanks for asking.03:59
jetole no it was PS1 as it was said (I don't know if it's true) but it's the only means to have a command run with every other command that's run on the system i.e. after you hit enter after each command03:59
psilo_ jnewt: what is the transport protocol?03:59
imMute jetole: that sentence kinda makes sense... are you *sure* you aren't talking about prompt_command?04:00
echo-are` left04:00
jetole imMute: I don't believe so but it was quite a while ago I did it and I don't recall04:00
jnewt psilo_: ssh04:00
echo-area joined04:00
jetole just pulled up PROMPT_COMMAND in `man bash`.04:01
m0ltar left04:01
psilo_ jnewt: 10 mins isn't too long really04:01
jetole imMute: I don't think it was but that looks interesting and I didn't realize it was there04:01
psilo_ jnewt: maybe confirm that something is still happening, and be patient04:01
lenswipee does the '--' indicate it is an argument passed in?04:01
jnewt psilo_: lock file is still there, so i think something is happening...04:02
ergZay joined04:02
michaelmartinez joined04:02
imMute lenswipee: the what on what?04:03
jnewt 2gb just doesn't seem that big. i can transfer 2gb on our internal network in no time, def not 10 min04:03
lenswipee imMute: I think it is a switch to indicate what options are turned on.04:03
imMute lenswipee: example?04:04
lenswipee imMute: 'git config --help'04:04
jnewt ignore my poor use of units04:04
psilo_ jnewt: oh I didn't see that it was internal.04:04
juvenal left04:04
imMute lenswipee: '--foo' is a fairly common way of passing "switches" to CLI programs...04:04
lenswipee imMute: applies to UNIX commands?04:05
jnewt psilo_: server is across the room from me, so, not internal to my pc, but internal to my lan04:05
imMute lenswipee: yes.04:05
tinyblue1ixel joined04:05
tinybluepixel left04:07
hwrd|work left04:08
jnewt ok, it finished and i started a push, i'm getting 1.51MiB/s04:09
second thought, checkout is on the index, so it was local to the pc04:09
JaredMiller left04:09
xiangfu left04:10
nurey left04:10
lenswipee how to output the contents of global config in git bash?04:11
imMute man git-config04:11
gitinfo the git-config manpage is available at http://jk.gs/git-config.html04:11
undecim_ left04:11
undecim joined04:12
edgar-rft joined04:12
jnewt i'm down under 300 KiB/s any way to see which file it's working on? wonder if i have a binary in there somewhere that's killing it04:12
apok_ joined04:13
apok_ left04:13
lenswipee 'git config --edit global' <-- failed04:13
hwrd|work joined04:14
imMute lenswipee: did you even read the manpage?04:14
or did you even open it?04:15
jetole does anyone know where I can read what the git version tags mean on the git source? i.e. is it major.minor.bugfix.build (probably not) ?04:15
eto left04:15
lenswipee 'git config --edit --global'04:15
imMute lenswipee: you said you wanted a list04:15
apok left04:15
eto joined04:16
mikepack left04:16
lenswipee lenswipee: i wanted to echo contents of global config into gitbash04:16
that's the closest command that i can see04:16
revyd joined04:16
imMute lenswipee: look one line up from --edit and you'll see --list04:17
kvothe left04:17
lenswipee C:\Program Files\Git\doc\git\html\git-config.html04:17
i see no list04:17
nevermind, i'll try it04:18
simesy left04:18
imMute I sincerely doubt that "--list" doesn't appear in that file at all. It might not be exactly one line up from --edit, but it's definitely there.04:19
lenswipee actually, it says -l04:20
thats works04:20
cheers04:20
imMute facepalms04:20
tavist0_ left04:21
cakehero left04:21
irqq joined04:21
rurufufuss joined04:22
FabTG left04:22
tjbiddle left04:22
eto left04:22
eto joined04:24
Cassiel left04:25
Back2Basics joined04:25
lenswipee how to use git to get a specific file in the last commit in text editor?04:26
imMute pretty sure git doesn't care about the text editor part..04:26
lenswipee hmm04:27
aruiz joined04:27
etcetera left04:27
lenswipee text editor is usually where I look at code.04:27
benbergman left04:27
lenswipee any ideas imMute?04:28
R_Macy left04:28
FabTG joined04:29
Quix0te joined04:31
benbergman joined04:32
yarco joined04:32
milki cat-file?04:33
imMute lenswipee: git show HEAD~:<filename>04:33
to see what <filename> looked like in the previous commit04:33
yarco how to list only annotated tag in a good format? like04:34
OOPMan joined04:34
yarco v0.0.3 \n messages \n04:34
v0.0.2 \n messages \n04:34
?04:34
offby1 well, you can _identify_ annotated tags with "git for-each-ref"04:35
the second column will be "tag" instead of "commit"04:35
lenswipee imMute: what does '~:' denote?04:35
Back2Basics_ joined04:35
offby1 then you can grab the sha1 from the first column, and do whatever you want with it -- presumably send it to "git log" or "git show" with a suitable --format option04:35
infynyxx joined04:36
yarco so that's the way they creating release notes and change log?04:36
imMute lenswipee: "HEAD~" means "one commit before HEAD04:36
offby1 yarco: I Doubt it :-) There's probably a simpler way04:36
imMute yarco: my CHANGELOG is "see 'git log'"04:36
lenswipee imMute: I should have said what 'HEAD' denote?04:36
yarco but i think release notes is necessary to tell user what new features included.04:37
imMute lenswipee: simply? whatever the current branch is04:37
Back2Basics__ joined04:37
imMute yarco: and you think useful release notes can be automatically generated?04:38
yarco yes04:38
i think it can be written into annotated tag04:38
lenswipee imMute: I want the current commit not "one commit before HEAD".04:38
imMute lenswipee: then do just HEAD:<filename> duh04:38
yarco if git can show only annotated tag with message04:38
undecim left04:39
Back2Basics left04:39
Back2Basics__Back2Basics04:39
lenswipee imMute: to confirm thats the latest commit in the repos?04:39
yarco git tag -a v0.0.1 -m '…release…notes...'04:39
undecim joined04:39
imMute lenswipee: "latest"? no.04:39
yarco git <some command> > RELEASE04:40
nurey joined04:40
spiderweb left04:40
infynyxx left04:41
private joined04:41
Back2Basics_ left04:41
privateGuest4277804:41
spiderweb joined04:42
jnewt left04:42
someprimetime left04:43
tavist0 joined04:43
someprimetime joined04:43
Back2Basics left04:45
jso-` left04:46
lenswipee imMute: from what i read HEAD means current branch.04:46
imMute: so HEAD~ can't mean current.04:47
rchavik left04:47
andrew__ joined04:48
andrew__andrewhl04:48
Back2Basics joined04:48
simesy joined04:48
imMute jesus04:49
I spent 10 minutes trying to use for-each-ref and git show to only get the annotated messages04:49
turns out ' git tag -l -n' is enough04:49
yarco: so there you go :)04:49
Guest42778 left04:49
imMute lenswipee: yes, HEAD is current.04:50
lenswipee imMute: which means it's the lastest commit04:50
imMute not necessarily04:50
vsayer left04:50
imMute someone could have committed after you did, but in a different branch04:50
joeytwiddle left04:51
lenswipee imMute: then HEAD would point to that.04:51
imMute no it wouldn't04:51
codertux left04:51
lenswipee imMute: it should update04:52
imMute no it shouldn't. HEAD points to the *currently checked out branch*. if someone commits to a *different* branch, then HEAD wouldn't change04:52
lenswipee imMute: how is that 'cuurent'?04:52
rchavik joined04:52
rchavik left04:52
rchavik joined04:52
simesy left04:53
lresende joined04:53
simesy joined04:53
lenswipee each time you commit you create a new branch correct?04:54
imMute no04:54
lenswipee oh gawd04:55
imMute do you do any C programming? a branch is merely a pointer to a commit. when you make a new commit, you just update that pointer to point at a new commit object04:55
glennpratt left04:55
lenswipee you update pointer or create a new one?04:56
Praise- joined04:56
imMute update.04:56
creating a new would be creating a new branch04:56
nurey left04:56
lenswipee if you update pointer then you lose old data04:56
imMute no you don't04:56
lenswipee the pointer points to a new object04:57
imMute because the new commit object has a pointer to the parent commit04:57
benbergman left04:57
Praise left04:57
codertux joined04:57
lenswipee parent commit?04:58
aetcore left04:58
lenswipee previous commit?04:58
imMute yes (in the case of merge commits - there will be 2 or more parent commits)04:58
lenswipee and i assume the parent commit has pointers to its parents as well?04:59
and so on and so forth05:00
imMute obviously.05:00
zheng joined05:00
lenswipee each user has their own branch?05:01
imMute yes, since it's just a pointer05:01
lenswipee so HEAD~ <-- gets the most extended branch?05:02
imMute no. HEAD~ is the commit before HEAD05:02
longbeach joined05:02
zheng left05:03
aspotashev left05:03
r0bby joined05:04
lenswipee the word 'before' doesn't make it sound like the most recent commit.05:05
imMute here we go again.05:05
benbergman joined05:05
lenswipee this is very confusing05:05
imMute maybe it's just you...05:06
robbyoconnor left05:06
lenswipee when you commit you create a blob correct?05:06
imMute no.05:06
simesy left05:07
irqq left05:07
lenswipee when is it created?05:08
imMute blob objects store files. commit objects store commits05:08
http://git-scm.com/book/en/Git-Internals-Git-Objects05:08
hyperair when you add a file to the index, a blob is created for the file, and its hash is referenced in the index.05:09
lenswipee hyperair: what's in the blob?05:09
imMute the file05:09
hyperair lenswipee: the contents of the file.05:10
lenswipee that's it?05:10
imMute thats it05:10
nurey joined05:10
imMute read that link I just posted and you'd know that05:10
oh wait, you like "learning" by listening to other people, not reading.05:10
ergZay left05:11
lenswipee not exactly by listening.05:11
hyperair simple solution: copypaste the contents of the article, and prefix every line with imMute:05:11
redrocket left05:11
hyperair or <imMute> to be exact05:11
\o/05:11
imMute hyperair: you mean lenswipee ?05:12
hyperair: and actually, that's not a bad idea :/05:12
hyperair imMute: nah (s)he likes listening to you.05:12
heheheh05:12
lenswipee i think imMute likes to confuse me by giving the most simplistic vague responses to my questions.05:13
imMute where's that face-stabbing-over-ip RFC when you need it05:13
pretty_function joined05:13
zheng joined05:13
hyperair imMute: there's an RFC like that?05:13
imMute hyperair: I wish.05:13
redrocket joined05:14
hyperair http://www.urbandictionary.com/define.php?term=RFC the first definition has a mention of it.05:14
lenswipee hyperair was actually being serious *sheesh*05:14
hyperair "Someone needs to draft an RFC for a stab-idiot-IRC-users-in-the-face protocol.05:14
"05:14
ergZay joined05:14
imMute lenswipee: seriously. go read some articles. you'll learn much more, and faster, than going back and forth with people on IRC05:15
hyperair read the articles and come back with questions.05:15
JoeAngel_ left05:15
lenswipee imMute: particularly with you. You like to drag people through mud first.05:16
JoeAngel_ joined05:16
pdtpatrick lenswipee: https://peepcode.com/products/git05:16
benbergman left05:16
imMute lenswipee: no, I (as with many other people) don't like teaching the basics that are easily self taught05:16
lenswipee imMute: I think you should just speak for yourself ;)05:17
going to read05:17
brb05:17
imMute lenswipee: for some anecdotal evidence, notice how, 45 minutes ago, offby1 helped yarco with his question, but has been ignoring you all night. that should tell you something.05:18
unnamedwill left05:19
joshsmith joined05:19
SBoudrias left05:20
hwrd|work left05:20
lenswipee imMute: why? because offby1 represents everyone here.05:20
imMute nope. never said he did.05:20
v0n left05:21
simesy joined05:21
macmartine joined05:21
lenswipee imMute: I think you should have taken what I said eariler and ignore me if you can't be bothered to help a beginner at git.05:21
imMute ignoring you for me, is as hard as it is for you to RTFM.05:22
h0bbit left05:22
koltroll joined05:22
lenswipee bloody germans05:23
laterz05:23
drewery joined05:23
v0n joined05:24
benbergman joined05:24
simesy left05:26
jcao219 left05:27
simesy joined05:27
someprimetime left05:28
someprimetime joined05:28
a_L_p joined05:32
lenswipee not many spoon feeders around these days ... what a shame.05:33
pdtpatrick you'll be alright05:34
iamjarvo left05:34
infynyxx joined05:35
mikepack joined05:35
lenswipee is sinking in quicksand, and suddenly hears a whisper of a sound from above that sounded like "you'll be alright".05:37
infynyxx left05:37
andrewhl left05:38
hwrd|work joined05:39
hwrd|work left05:40
pdtpatrick lenswipee: there's plenty of videos out there on Git or documents. For instance, a quick search on youtube would give you plenty of things to get started on: http://www.youtube.com/watch?v=74yphulj3uo&list=PL5B3829DDD57E9C23&feature=plcp05:41
fly9 joined05:41
v0n left05:42
Davey left05:42
pdtpatrick there's also stackoverflow which answers a lot of random questions people have asked that you'll have now05:42
so if ur drowning, then it's probably because you want to be there not because you don't have the ability to get out.05:42
BadProphet left05:43
lenswipee pdtpatrick: when i commit a file does the stage ref gets replaced with a commit ref, and the whole index gets backed up?05:44
koltroll left05:44
fly9 left05:46
pdtpatrick lenswipee: read this before u ask any other questions .. http://git-scm.com/documentation05:46
yarco left05:47
benbergman left05:47
simesy left05:48
lenswipee pdtpatrick: read it all yesterday. still confused.05:48
pdtpatrick my guess is as u read, u didn't try it out huh? ur gonna need to try out what is being said so you can see it work and you'll understand what's happening05:49
so if ur expecting to just readi t all and then become an expert, then you're up for disappointment and frustration05:50
madewokherd left05:50
pdtpatrick so take ur time, go through each chapter, test it out -- create projects along the way. Force yourself to incorporate it into your workflow, eventually you'll see and understand why some things happen the way they do.05:51
then you can start asking better questions and get better answers05:51
just my $.0205:51
maroach left05:52
lenswipee why can't you answer my complex question?05:53
pwhen i commit a file does the stage ref gets replaced with a commit ref, and the whole index gets backed up?05:53
pdtpatrick okay let's flip this around05:53
what does staging area mean to you ? what exists there ?05:53
lenswipee files added to the index05:54
next question05:54
benbergman joined05:54
the_cybersphinx joined05:54
pdtpatrick so what happens to the staging area when u commit ?05:54
axl_ left05:55
lenswipee a new commit ref points to same object05:55
kpreid commits and refs are two different things05:56
a new commit is _created_ and an existing ref is changed to point to the new commit05:56
lenswipee thats what i said05:56
macmartine left05:57
linguini left05:57
laurav joined05:57
x82_nicole joined05:58
pdtpatrick maybe that's what u wanted to say but didn't sound like what he said. Albeit, play nice - he's trying to help you :)05:58
read this and see if it makes sense: http://gitready.com/beginner/2009/01/18/the-staging-area.html05:59
And here's the doc on references that is pretty clear06:00
http://git-scm.com/book/en/Git-Internals-Git-References06:00
lenswipee "a new commit" as in a another blob06:00
pucks joined06:00
v0n joined06:00
pdtpatrick What is a "blob" to you ?06:00
lenswipee contents of file06:00
gerard0 left06:01
lenswipee doesn't make sense to create another blob06:01
laurav left06:01
hyperair lenswipee: contents of files go into blob objects. directories are represented by tree objects, which reference blobs and other trees (directories contain files and subdirectories, see). and a commit references the top-level tree.06:02
lenswipee start again06:02
kpreid any given commit refers to many blobs, not just one06:02
hyperair lenswipee: and a ref (e.g. a branch name -- refs/heads/foo) is just a pointer to a commit.06:03
o] joined06:03
o] how can I stash a single file?06:03
"Please, commit your changes or stash them before you can merge."06:03
pdtpatrick o]: http://stackoverflow.com/questions/3040833/how-to-stash-only-one-file-out-of-multiple-files-that-have-changed06:04
o] I am doing a pull and there is a file that was changed locally, so I want to stash it before pulling to not lose that local changes06:04
hyperair o]: git stash --patch06:04
i'm not sure if you can stash a single file06:04
jcao219 joined06:05
lenswipee does the existing ref to deleted?06:05
pdtpatrick well i think if u add everything u want, then u can stash whatever is left06:05
lenswipee does the existing ref gets deleted?06:05
hyperair o]: add the files you don't want to stash into the index, then git stash --keep-index.06:05
pdtpatrick lenswipee: how does git log work ?06:06
michaelmartinez left06:06
lenswipee kpreid> a new commit is _created_ and an existing ref is changed to point to the new commit <-- sounds wrong06:07
o] nice! keep-index worked06:07
thanks06:07
pdtpatrick lenswipee: why is it wrong?06:07
hyperair lenswipee: a ref is like a pointer or symbolic link.06:07
and commits are like linked lists (dag, really)06:08
lenswipee for one file in the staging area does " a new commit is _created" mean a new blob is created/06:08
hyperair the blob is created when you add the file into the staging area.06:09
when the commit is created, the hash of the tree object in the staging area goes into the commit.06:09
xiangfu joined06:09
xiangfu left06:09
xiangfu joined06:10
lenswipee hyperair: as i thought the existing ref simply gets renamed.06:10
mikepack left06:11
pdtpatrick becareful with ur wording "renamed"06:11
hyperair lenswipee: no, a ref is like a symlink.06:11
lenswipee hyperair: why create another pointer to the same object?06:11
hyperair lenswipee: a ref isn't an object.06:12
it's a *reference* to an object06:12
lenswipee: are you familiar with symbolic links?06:12
tinyblue1ixel left06:12
lenswipee i get that it's a reference06:12
hyperair it's just a pretty name, e.g. "master"06:12
isn't "master" easier to remember than a hash, e.g. "1238719789afefaefeaf"?06:12
sluther joined06:13
Gentlecat joined06:13
lenswipee ah06:13
hyperair "master" is the name of the default branch you get when you create a git repository.06:13
it's a ref.06:13
branches are refs.06:13
the name "master" points to the latest commit in the branch.06:13
that's all there is to it.06:13
lenswipee hyperair: so the existing ref stays as in06:13
benbergman left06:14
hyperair when you make a new commit, say "deadbeef000000000000" (i didn't count the number of characters)06:14
lenswipee hyperair: so a commit just takes a "snapshot" of the index, and a ref to that snapshot is created.06:14
hyperair in the "master" branch, then "deadbeef000000000000" has a parent "1238719789afefaefeaf"06:14
and "master" now points to "deadbeef000000000000"06:14
in fact, .git/refs/heads/master is just a normal text file06:15
open it and check what's inside06:15
lenswipee hyperair: read my last comment.06:15
hyperair a commit is a snapshot of the index, with other metadata like dates, author information, parent(s) (previous commit(s))06:15
and the ref is *already* there06:16
it's just changed to point at the new commit.06:16
for example, when you create a new repository...06:16
$ git init06:16
gerard0 joined06:16
skul joined06:17
hyperair then your repository HEAD (which is also a ref) points to the "master" ref06:17
lenswipee hyperair: my warped understanding was that the existing ref to a stage object was changed when you commit also.06:17
hyperair $ cat .git/HEAD --> ref: refs/heads/master06:17
$ cat .git/refs/heads/master --> no such file or directory06:17
lenswipee: there's no ref to a stage object06:18
i think you're being very confused.06:18
TeamColtra left06:18
hyperair did you read any of the articles linked earlier?06:18
lenswipee hyperair: when you add a new file it's added to the index.06:18
hyperair: i'm refering to that ref06:19
hyperair okay, don't call that a "ref"06:19
"ref" refers to something else.06:19
lenswipee hyperair: what do i call it06:19
hyperair erm06:19
lenswipee hyperair: staging pointer06:19
hyperair there isn't a specific term for it06:19
specifically, the stage object contains the hash of the blob object.06:19
that's all there is to it06:20
ampz joined06:20
ag4ve left06:20
cenuij left06:20
jiunec joined06:20
_dzonder joined06:20
lenswipee hyperair: alright. Now HEAD refers to current users current branch correct?06:21
benbergman joined06:21
hyperair yes.06:21
gmarseliss joined06:21
lenswipee hyperair: and current branch is what I have most recently committed?06:21
hyperair no, the current branch is what you have most recently checked out.06:22
"git checkout $branch"06:22
gerard0 left06:22
ag4ve joined06:22
geonetix` joined06:22
lenswipee hyperair: depends on the type of check out. what check out you mean?06:22
hyperair 14:22:22 <hyperair> "git checkout $branch"06:22
adhawkinz joined06:23
lenswipee hyperair: right, and that means?06:23
Villadelfia_ joined06:23
lenswipee hyperair: stuff in the staging area06:23
hyperair ...do you know how to use git?06:23
lenswipee hyperair: not fully06:23
hyperair do you know what git checkout does?06:24
laurav joined06:24
no_maam_ joined06:24
daniel-s left06:24
daniel-s joined06:24
heinrich5991 left06:24
adhawkins-away left06:24
lenswipee hyperair: i would be teaching git and not asking help questions if i knew it properly06:24
Villadelfia left06:24
dzonder left06:24
project2501b left06:24
Villadelfia_Villadelfia06:24
geonetix`geonetix06:24
hyperair okay, stop.06:24
this information that you're asking is advanced information06:24
learn how to use git.06:24
and THEN learn this stuff.06:24
lenswipee hyperair: here is my understand.06:25
hyperair git checkout is one of the most basic things.06:25
if you don't know how to use git checkout, you don't know how to use git.06:25
chuckharmston left06:25
lenswipee hyperair: it puts the files you last committed in your working tree06:25
pdtpatrick lenswipee: question - what do u do? I'm trying to gauge ur experience level.06:25
chuckharmston joined06:25
lenswipee pdtpatrick: i deliver pizza.06:26
pdtpatrick then my suggestion is start small06:26
seems like ur trying to learn everything overnight06:26
quazimodo left06:26
daniel-s_ joined06:26
lenswipee hyperair: it puts the files you last committed in your working tree. correct?06:26
hyperair lenswipee: no, it switches branches06:26
lenswipee pdtpatrick: im a sponge. i can take it.06:27
pucks left06:27
pdtpatrick read the docs, watch the videos. Work on a few projects with git and when u run into something u want to do but don't know the command. Then ask how to do it and why (after you've searched the internet that is)06:27
r0bby_ joined06:27
hyperair rather, git checkout does multiple things. it takes the tree from the commit or branch specified on the command line and puts it in the index. then it expands all of that out onto your working tree.06:27
lenswipee hyperair: does a commit create a new branch?06:28
r0bby_robbyoconnor06:28
pdtpatrick lenswipee: if u haven't noticed by now ur not getting it then i dunno what to tell u. Notice how everyone is repeating the same thing to you. It's not going to make sense right now. Just pace yourself and learn the basics06:28
hyperair lenswipee: no.06:28
lenswipee: there's an order to the things you have to learn to understand git.06:28
lenswipee hyperair: when is a new branch created?06:28
hyperair lenswipee: before one understands how a car works, one needs to understand what a car does.06:28
lenswipee: you're trying to undersatnd how a car works without understanding what it does.06:29
daniel-s left06:29
hyperair my suggestion is to read the git tutorial06:29
chuckharmston left06:29
hyperair git help tutorial06:29
lenswipee hyperair: i deliver pizza. i think i know how a car works.06:29
hyperair hmm wasn't there a bot that spat out links when you did that?06:29
xiangfu left06:29
hyperair lenswipee: i'm sure you do. but you don't fully understand what git does yet.06:30
lenswipee hyperair: the branch concept is the hardest part.06:30
hyperair lenswipee: and yet you're trying to understand how git works.06:30
heinrich5991 joined06:30
pdtpatrick lenswipee: question - in your understanding - what's a symbolic link ?06:30
r0bby left06:31
lenswipee pdtpatrick: a pointer06:32
hyperair: it puts the files you last committed in your working tree, and updates to index to that branch. correct?06:32
pdtpatrick let's say i have file A. I create a sym link to A called file B. If i delete file B - what happens to file A ?06:33
TeamColtra joined06:33
lenswipee nothing06:33
qmanjr5 left06:33
pdtpatrick what happens if move file A.. what happens to B ?06:33
boichev left06:33
lenswipee nothing06:34
pdtpatrick see that's what hyperair was talking about - u need to learn the basics06:34
lenswipee pdtpatrick: maybe u need to learn pointers, not me.06:35
pdtpatrick maybe i do :) - if u care to educate me, i'm all ears.06:36
lenswipee lol06:36
actually fileB points to new location of fileA06:36
pdtpatrick keep trying06:37
aruiz_ joined06:37
lenswipee you tell me then.06:37
pdtpatrick how about u try it on ur unix box if u have one06:37
Arokh left06:37
infynyxx joined06:37
lenswipee typical06:38
give me back hyperair06:39
infynyxx left06:39
pdtpatrick touch fileA && echo "blah" > fileA; ln -s fileA fileB ; rm fileA ; cat fileB06:39
what happens?06:39
hyperair lenswipee: unfortunately i'm supposed to be working.06:39
lenswipee what is touch?06:39
hyperair: it puts the files you last committed in your working tree, and updates to index to that branch. correct?06:40
maleknet joined06:40
hyperair errrr no.06:40
ebouchut_ joined06:41
pdtpatrick u've got a lot of practice/reading to do. I'm gonna get back to my scripting - goodluck soaking everything into your porous sponge :)06:41
lenswipee hyperair: for a single user on a project, there is usually only one branch in the tree?06:41
hotovson_ joined06:41
rideh left06:41
lenswipee pdtpatrick: why ask questions when you're not prepared to give answers?06:42
fly9 joined06:42
hyperair lenswipee: nope, a typical use case is to have topic branches -- one branch for every pending feature.06:42
Plouj- joined06:43
lenswipee pdtpatrick: ok, how is a new branch usually created?06:43
pdtpatrick lenswipee: its a simple question and if u cannot answer that. How do u expect to understand references and symbolink in git?06:43
benbergman left06:43
pdtpatrick the simple answer is if u delete A and try to cat the contents .. u'll get an error that the file does not exist06:44
lenswipee pdtpatrick: references/pointers/symbolinks are the same thing.06:44
pdtpatrick as B is a sym link to A which no longer exists06:44
lenswipee the answer to your second question.06:44
BadProphet joined06:44
ebouchut_ left06:44
lenswipee pdtpatrick: you will sleep better tonight if you help me than to work on your script.06:45
JohnBat26 joined06:45
soee joined06:45
shruggar joined06:46
Plouj left06:46
hyperair mumbles i'd probably not get any sleep tonight if i don't work now.06:46
fly9 left06:46
ebouchut_ joined06:47
boichev joined06:47
lenswipee lol06:47
liori_ joined06:48
lenswipee pdtpatrick: still waiting on the answer to your second question.06:48
axiom joined06:48
pdtpatrick so the fact that u didn't understand that shows u've not spent time learning the basics and u'd rather everyone spend their time in here catering to your needs when u've not spent the time yourself.06:48
remember - a closed mouth can't be fed.06:48
so learn the basics and then u can ask better questions that would enable u to ask even better questions. Progression06:48
majoh left06:48
chee left06:48
dc5ala joined06:48
simesy joined06:48
daniel-s_ left06:48
chee joined06:49
lenswipee <pdtpatrick> what happens if move file A.. what happens to B ?06:49
pdtpatrick maybe you should stick to delivering pizza (And I mean that in the nicest way possible).06:49
lenswipee no you don't06:49
nurey left06:50
benbergman joined06:50
lenswipee you just like to answer questions with questions.06:50
and not give any answers06:50
daniel-s_ joined06:50
lenswipee then end the conversation with "...stick to delivering pizza..."06:51
Goplat left06:51
lenswipee thats not good teaching.06:51
thats wasting my time.06:52
and yours.06:52
pdtpatrick or maybe it is difficult to teach someone something for which he has already made up his mind?06:52
lenswipee again i'm still waiting for your answers.06:52
BadProphet left06:52
lenswipee i'm sure i won't get them06:52
o] whine whine whine06:53
I agree with the pizza delivery thing06:53
pdtpatrick if u scroll up - and read what I wrote u'll see that i said if u delete A then trying to read contents out of B, u'll get an error because B is a pointer to A06:53
simesy left06:53
lenswipee <lenswipee> <pdtpatrick> what happens if move file A.. what happens to B ?06:53
answer to that question06:53
for the one billionth time06:54
pdtpatrick maybe you should stick to delivering pizza (And I mean that in the nicest way possible).06:54
zivester joined06:54
pdtpatrick u clearly don't plan on putting forth the effort to further your growth so stick with what u already know.06:54
o] I want anchovies06:55
cirwim joined06:57
ampz left06:57
lenswipee you just like to answer questions with questions.06:57
m0viefreak left06:57
lenswipee and waste peoples time06:57
bye06:57
pdtpatrick take care06:57
shruggar left06:58
ThomasLocke joined06:58
jdunck left06:58
lenswipee thats enough soaking for today.06:58
ag4ve left06:59
AdrienBrault joined06:59
drewery are you still soaking?06:59
:)06:59
samuel02 joined07:00
pdtpatrick print this and put it in ur delivery car. paraphrase (Give a man a fish, he's good for a day. Teach a man to fish, he's set for life). When that makes sense to you - come back and try to soak up your sponge(maybe this time it'll retain some of the liquid).07:00
v0n left07:00
kennethreitz joined07:00
longbeach left07:00
lenswipee pdtpatrick: thats enough BS07:01
ag4ve joined07:01
mishok13 joined07:02
xpen joined07:02
someprimetime i want to delete a file from github but not actually remove it from my clone repo… i added the file to my gitignore global settings, but when i do `git rm filename` it removes it also from my local cloned repo07:03
simesy joined07:04
jcao219 left07:05
milki someprimetime: man git rm --cached07:05
gitinfo someprimetime: the git-rm manpage is available at http://jk.gs/git-rm.html07:05
milki someprimetime: and ignore doesnt work for tracked files07:05
boichev left07:05
someprimetime milki: i did that and got it back, but i still want to remove it from github07:05
ah07:05
yeah i do know that07:05
jcao219 joined07:06
someprimetime i reverted everything, but i still don't know how to remove that file from github (it has some stuff in it i don't want to be public)07:06
e.g. passwords07:06
adamben joined07:06
drewery lenswipee: I think you need to hire a guy to give you a private tutorial and you should pay for it since 3 days on a row and many questions is a good amount of time out of peoples lives 3 days on a row07:06
milki someprimetime: !sensitive and !untrack might help07:06
gitinfo someprimetime: [!filter_sensitive] You can use filter-branch to remove sensitive data from a repository's history. http://help.github.com/remove-sensitive-data/07:06
someprimetime: To remove a file from git's tracking, without deleting it from your working tree, `git rm --cached <file>`. Note that any repo which pulls this change will delete their local copy of that file. You can "bring it back" using `git checkout HEAD^ file`07:06
AdrienBrault left07:06
someprimetime awesome thanks07:06
adamben left07:06
simesy left07:07
a-l-e joined07:07
lenswipee drewery: I'll be okay. Thanks.07:07
drewery: How many days is it still taking you to learn git?07:08
drewery half a day and a bit practice to remember07:08
infynyxx joined07:09
lenswipee drewery: rubbish. Takes alot longer than that to read the online documentation.07:09
dankest joined07:09
drewery rubbish to you then :)07:09
cirwim no-one ever read all of gits documentation before they were pretty expert at git07:10
marthinal joined07:10
cirwim it's not exactly light reading :)07:10
lenswipee exactly07:10
drewery I don't know anyone and I could care less07:11
rking Chiming in for my periodic reminder, "Forward-port local commits to the updated upstream head"07:11
drewery but I like reading and07:11
milki lol online documentation?07:11
drewery if you read the first two chapters07:11
cirwim rking: forward-port?07:11
milki i didnt spend time reading documentationm07:11
drewery the rest is just adds up to the show07:11
in the first chapter git is explained in full portrait07:11
did you read the first chapter?07:11
lenswipee drewery: that comment made me throw up on my pc.07:12
rking cirwim: Don't ask me! That's Junio C. Hamano's doing: whatis git-rebase07:12
milki whatis?07:12
rking Marginal improvement: https://github.com/git/git/commit/c3f0baacadbd7b5710052213a2ec3cdd5b77bb6e07:12
cirwim man git-rebase07:12
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html07:12
cirwim starts with that07:12
drewery lenswipee: you sound like a young kid killing peoples time for attention07:13
milki oo i heard of those07:13
vampires right?07:13
xpen_ joined07:13
benbergman left07:13
lenswipee drewery: of course i read the first chapter.07:13
mneorr joined07:13
lenswipee drewery: that why i know git doesn't record changes but record all files like you think it does.07:14
eXpired joined07:14
aruiz_ left07:14
drewery is that your argument, I didn't make any comments regarding recording files? what are you playing son?07:14
xpen left07:15
lenswipee go back to your logs.07:15
brb07:15
drewery you do that07:15
I don't care really07:15
what a douche07:15
cirwim you guys are rubbish at irc drama; my popcorn's not even ready yet07:16
pdtpatrick haha07:16
drewery pop me some too cirwim07:16
pdtpatrick this is lenswipee: http://www.youtube.com/watch?v=fqs9DYisSsg07:16
cirwim will do :)07:16
milki popcorn doesnt take that long to make07:16
rking swaps cirwim's rubbish and popcorn bins.07:17
milki corn kernels are pretty amazing07:17
swiety joined07:17
ebouchut_ left07:17
Back2Basics left07:17
milki o, what? regular corn cant be popcorn?07:17
jdyin1 joined07:17
infynyxx left07:18
huoxito left07:18
lenswipee pdtpatrick: ha ha. but thats not me.07:18
imrobert left07:18
drewery oh thats so you!07:18
lol07:18
quazimodo joined07:18
giallu joined07:18
gitinfo set mode: +v07:19
Alvo joined07:19
jcao219 left07:19
papegaaij joined07:19
benbergman joined07:20
jdyin left07:20
nafg_ joined07:20
boichev joined07:20
eXpired What's your problem drewery? I joined too late.07:21
drewery I don't have a problem, what is the problem?07:21
zeks left07:21
JoeAngel_ left07:22
eXpired <drewery> is that your argument, I didn't make any comments regarding recording files? what are you playing son?07:22
zeks joined07:22
drewery what are you quoting about? can you state what you are trying to say?07:22
Tegi joined07:22
poolshark joined07:23
eXpired Did you fuck a git commit up or something?07:23
cbreak-work joined07:23
drewery ?07:23
xiangfu joined07:23
milki there is no problem07:23
milki waves hands07:23
drewery what is the problem?07:23
eXpired: what is the problem? what are you talking about?07:24
eXpired Like I said, that was the first thing I saw. I thought you fucked something up and was going to offer help.07:24
drewery oh :)07:24
jceb joined07:24
swiety left07:24
drewery no no no, I was on the other site, I was trying to help07:24
pdtpatrick grabs a glass of wine. It's getting fiesty in here :)07:24
eXpired Gotcha.07:24
drewery lol07:24
thanks though07:25
eXpired The top thing I've learned about git since starting to use it: it will start a fucking argument.07:26
milki gives eXpired an A for effort and a dead horse07:26
catsup left07:26
tjadc joined07:26
hoschi joined07:27
pdtpatrick well u can always go into #vim and say something along the lines like -- emacs > vim :)07:28
TeamColtra left07:29
eXpired Sure. But that would be a filthy damned lie.07:29
xpen_ left07:29
drewery depends on the type of the argument, oh well there is always one anyways07:29
PaulCapestany left07:30
rath_ joined07:30
eXpired Convincing my team to move from CVS to Git resulted in more arguments than should be humanly possible.07:30
xpen joined07:30
PaulCapestany joined07:30
pdtpatrick yeah that's usually a good way to make friends at work07:30
eXpired Seriously.07:31
Hounddog joined07:31
dvide joined07:31
flijten joined07:32
herdingcat joined07:32
martinjlowm-lapt joined07:32
pdtpatrick at an old - i just ended putting together Gitlab on a VM and demonstrated in a team meeting. Long story short, I had many converts.07:33
eXpired I have no idea what Gitlab is.07:33
jceb left07:34
h0bbit joined07:34
drewery I think git is good enough07:34
pdtpatrick http://gitlabhq.com/07:34
drewery but I see many people having problems because they are trying to adapt git to what they traditionally think of a revision control than07:34
adapting their project to the system07:34
pdtpatrick it's Github-like.07:34
eXpired Is this another Bitbucket/Github, or does this have a server?07:34
Ah. Neat.07:35
drewery: Exactly. DVCS != RCS.07:35
Explaining how Distributed works and why they should make lots of commits and squash before a push, and how branching is cheap, is basically impossible at times.07:35
drewery yes07:35
eXpired "What do you mean you didn't see my changes? I did a commit!"07:36
tjbiddle joined07:36
eXpired That alone takes several e-mails of explaining.07:36
VeggieMeat gitlab is great :)07:36
Alvo left07:37
eXpired Is gitlab something that's confined to Rails or something?07:37
hafeez3000 joined07:37
pdtpatrick it rails07:37
eXpired "Fast, secure and stable solution based on Rails & Gitolite."07:37
Ah07:37
I was never sold on RoR07:37
pdtpatrick every thing has their place right?07:38
eXpired Oh, for sure.07:38
Seemed really cool in the beginning times of MVC07:38
fRAiLtY- joined07:39
eXpired I've read some things that kind of crap on its scalability. But I have no idea.07:39
I'm a filthy Java server dev.07:39
pdtpatrick i'm no rails expert but it's come a long way07:39
cirwim has scaled rails to hundreds of servers07:39
eXpired Seriously?07:39
cirwim yes07:39
benbergman left07:39
eXpired That's impressive.07:39
pdtpatrick and if u want JVM .. there's JRUBY :)07:40
drewery cirwim also burned all the popcorn in the microwave :P07:40
pdtpatrick ha07:40
eXpired Which could be neat, but are there any reasons to use something like that if you're familiar with Java already?07:40
I mean, you get the Ruby syntax which I'll admit does some neat things.07:40
pdtpatrick dude metaprogramming in ruby is the cat's PJ!07:41
rhl left07:41
cbreak-work left07:41
eXpired But, it'll all compile to JRE code at some point.07:41
I thought Scala was the new big thing.07:41
pdtpatrick if java does what u already need then use it.07:41
cirwim eXpired: jruby has much of the dynamicness of ruby07:41
it's really nice not to have to edit xml to get things done07:41
cbreak-work joined07:41
eXpired Yeah. Not a huge fam of the XML crap.07:41
samir left07:41
pdtpatrick cirwim: however some ruby libs don't play nice with threads - so i think some still have issues with jruby no?07:42
eXpired Java's going more towards annotations over XML files at this point, or Spring.07:42
pdtpatrick if i recall correctly07:42
fly9 joined07:42
cirwim pdtpatrick: perhaps... I've not had any problems with that myself07:42
Serghar left07:42
samir joined07:42
cirwim but it's true that ruby programmers don't think so hard about concurrency as java programmers07:42
eXpired Which would be nice07:42
Same thing applies to Erland07:42
*Erlang07:42
txomon|home left07:43
pdtpatrick concurrency in ruby? splain yourself.07:43
AFAIK its still the same thread. GIL locks that shit down07:43
eXpired But, once you understand "synchronized" code blocks and such, and use concurrent compatible Apache collections, you're good.07:43
Wait, JRUBY can't multi-thread? It has to be able to. Or else nobody would use it. No?07:44
pdtpatrick Jruby sure but not ruby itself07:44
cirwim jruby can multithread07:44
mri is somewhat limited07:44
though most of the IO is non-blocking07:44
so your main sticking points are going to be external C libraries that have a lot of CPU intensive stuff07:44
eXpired But ruby is like PHP, like a cgi-bin process... no? Spawned on request, anatomically?07:44
cirwim no07:44
ruby processes are long-lived07:44
eXpired Oh, OK.07:44
rhl joined07:44
pdtpatrick i've tried to get myself to learn more Java since almost everything within my team at work is written in Java07:44
eXpired I'm not going to say Java is Jesus or anything. But once you learn it, you can do some incredible things with servers.07:45
vsayer joined07:45
ninegrid left07:45
eXpired So, ruby typically has daemon threads?07:45
Does it run independently as a web server?07:45
cirwim depends what you're doing07:46
eXpired Or, require something like "mod_ruby"?07:46
cirwim yeah, passenger is like mod_ruby07:46
it manages a process pool07:46
rchavik left07:46
tjadc left07:46
pdtpatrick are u talking about running it via apache or nginx?07:46
there's passenger07:46
rking eXpired: Usually there's a backend process serving the actual requests, then a frontend web server sending images, css, and shuffling requests to the backend Ruby07:46
cirwim otherwise you just boot up as many processes as you need and put a load-balancer in front07:46
eXpired Huh. That's interesting.07:46
fly9 left07:46
Hounddog left07:47
eXpired rking: Which does make since, then, since the frontend could handle caching and all.07:47
tjadc joined07:47
cirwim yeah07:47
eXpired I should play more with Ruby :|07:47
cirwim for sure :)07:47
someprimetime left07:47
pantsman joined07:47
abec5 joined07:47
pantsman left07:47
pantsman joined07:47
eXpired People are trying to convince me that I should spend time on Node.js instead.07:47
Not sure how I feel about that.07:47
cirwim it's fun07:47
a bit extreme though07:47
wereHamster eXpired: spend time with both and decide for yourself.07:47
drewery JavaScript is great !07:47
eXpired I love Javascript. For sure. But a server written in JS?07:48
That frightens me.07:48
drewery I think it will be a lot more dominant than what it is today07:48
pdtpatrick Github has an interesting setup with rails07:48
i cannot find the page but they combine tons of things07:48
drewery especially if you are working front end development07:48
pdtpatrick https://github.com/blog/517-unicorn07:48
cirwim I'm waiting until the yeild statement comes out07:48
but node is still fun without that07:48
eXpired That Unicorn thing looks neat.07:49
pdtpatrick coffeeScript is fun07:49
eXpired Coffeescript and Angular are next on my "crap to learn" list, after Node.js.07:49
pdtpatrick this is neat: http://socket.io/07:49
drewery learning is easy but mastering is the most fun07:49
mishok13 left07:50
pdtpatrick yet to play around with it07:50
eXpired Mostly just like to play with that stuff. For some reason I got stuck on YUI2 for client side, and still have gripes with YUI3. Only spent a few hours with jquery, though I know it wins. I love JS.07:50
jargon joined07:50
tjadc_ joined07:50
lenswipee should i learn gitlab or git?07:51
rking cirwim: What's your basic Node.js sales pitch?07:51
eXpired Wait, so that socket.io... what kind of comm does it support?07:51
simesy joined07:51
cirwim rking: event loops are awesome07:51
tjadc left07:51
cirwim do one thing and do it well => node does event loops07:51
simesy left07:52
undecim_ joined07:52
eXpired Basic AJAX, I'm sure... but XDR/Cross domain? WebSockets? Looks neat.07:52
samir left07:52
pdtpatrick eXpired: yeah so many possibilities07:52
i get a headache just thinking of the things out there07:52
azgard joined07:52
The-Compiler left07:53
Nevik lenswipee: i dont have any experience with gitlab, but from glancing at it, i'd say you need to know git to use gitlab07:53
samir joined07:53
rking cirwim: What's an exemplary Node.js app that demonstrates this?07:53
lenswipee Nevik: fair call.07:53
The-Compiler joined07:53
eXpired Wait, so node.js runs on Jetty, right?07:53
cirwim rking: socket.io is pretty neat07:54
eXpired: uh, probably not07:54
it's javascript, not java07:54
martinjlowm-lapt left07:54
lenswipee serverside js07:54
zivester left07:55
Slush-_ left07:55
AdrienBrault joined07:55
pdtpatrick node is also pretty cool to use via console to test ur js. Sorta like u'd use python's console or ruby's IRB07:55
eXpired I know, but it still sits on a basic server. For some reason I was thinking it was Jetty.07:55
cirwim eXpired: nah, it's all hand-written C code07:55
lenswipee left07:55
cirwim or C++07:55
undecim left07:55
cirwim one of those old-fashioned "actually use the real machine" languages07:55
pdtpatrick sublime text 2 and vim -- have good builds for this. https://github.com/tanepiper/SublimeText-Nodejs07:55
Slush- joined07:55
eXpired Yeah, Google tells me I'm wrong too.07:56
abec5 left07:56
eXpired I think I'm thinking of "Play", which is some Java MVC/REST thing I was playing with recently.07:56
abec5 joined07:56
eXpired Is anybody else here a Java persion?07:57
I thought that was the lionshare of devs, actually.07:57
drewery I want to learn actually, I looked at it before07:57
I do JavaScript which has nothing to do but a common Java name07:58
eXpired Right, but JavaScript is rad.07:58
drewery I am a big fan and still learning07:58
eXpired I love writing JS, actually.07:58
drewery deep ocean07:58
pdtpatrick i'm slowly learning Java but i'm too comfortable with some of the things I can do with Ruby and Python that sometimes having to write all those lines in Java when when i can do it in 2 lines in ruby turns me away.07:59
eXpired You're totally right07:59
cirwim pdtpatrick: jump to scala07:59
drewery ruby as in framework or07:59
ruby as in language?07:59
eXpired I know Python better than Ruby, and the way it deals with collections would take some Java code a shitload of lines to match.07:59
cirwim ruby is a language07:59
CrazyHorse18 joined08:00
wereHamster eXpired: if you want to try Play, use the scala version, not java ;)08:00
cirwim though I guess scripting languages are really just very complete frameworks08:00
drewery yes but I just wanted to make sure not referring to rails08:00
CrazyHorse18 does git pull always pull the entire remote repository including all branches?08:00
wereHamster CrazyHorse18: pull = fetch + merge.08:00
eXpired wereHamster: Thought about it. I attended an OpenWorld session on Scala, and that's about all I know about it. As far as Java goes, it and Gradle are on my list of things to check out.08:00
CrazyHorse18 yeah08:00
pdtpatrick cirwim: why scala? a friend told me about it earlier as well. Might take a look at it. Though i don't think the community is as large as that of Ruby and Python. I like being able to find resources easily sometimes.08:01
afuentes joined08:01
eXpired Scala has some need syntax and can be used interactively08:01
Which is huge for learning08:01
*neat08:01
CrazyHorse18 but lets say the remote repo has had a new branch added to it, will it automatically appear.. if i do a pull08:01
or do i have to do something manually08:01
basically i want someway of getting a one to one copy of the remote repo08:02
eXpired @CrazyHorse18: It should. If you want to check it out, do a "git -t branch <name>"08:02
canton7 CrazyHorse18, it'll be fetched, and will appear as origin/whateverbranch. It won't create a new local branch though08:02
CrazyHorse18 hmm ok08:02
canton7 !local_branch_from_remote08:02
gitinfo The following commands are all equivalent, assuming <branch> doesn't yet exist: 'git checkout -b <branch> <remote>/<branch>', 'git checkout -t <remote>/<branch>', 'git checkout <branch>'. The latter invokes some magic.08:02
eXpired Er, maybe that's checkout08:02
timj1 joined08:02
drewery just out of curiosity... when you are planning to learn a new language, what really attracts you to learn that language?08:02
eXpired Career usefulness.08:03
Which is lame.08:03
drewery as in pay or gets the job done for a specific task?08:03
eXpired At this point, I can learn a new language in a few days. It's just syntax, if it's a functional Turing language.08:03
CrazyHorse18 maybe there's some more advanced command.. is there any command that will copy the entire repository.. i don't even need a working version. This git repo will only be used for deploying.. (i.e. doing an export from)08:03
eXpired Get a specific task done, since I have the power to do that in my job.08:03
CrazyHorse18 eXpired: usefulness...08:03
wereHamster eXpired: yeah.. you go learn haskell 'in a few days' and then come back and tell me if you were successful!08:04
eXpired But I need to fight do battle with licenses and whether it's allowed on occasion08:04
drewery since you know a language, learning any new language wouldn't be much time for you to tackle08:04
cirwim left08:04
wereHamster CrazyHorse18: git clone08:04
eXpired wereHamster: Hah... that's one I avoided. Though I spent 2 semesters in LISP hell at school.08:04
CrazyHorse18 wereHamster: right.. and all the remote branches will exist after i clone right?08:05
wereHamster CrazyHorse18: yes08:05
canton7 eXpired, a few days yes.. Then you have the learn the standard library, which is as important but quite a bit slower :P08:05
CrazyHorse18 ok.. and if i do a git pull later.. will new branches also be copied across?08:05
timj left08:05
wereHamster CrazyHorse18: yes.08:05
CrazyHorse18 awesome :D08:05
eXpired Is there any practical reason to know Haskell at this point?08:05
I consider it to be like FORTRAN or COBOL.08:05
wereHamster eXpired: it's a much better language than anything else :)08:06
CrazyHorse18 COBOL's very very useful08:06
there's soooo much stuff writtain in cobol08:06
canton7 CrazyHorse18, you might also like the --mirror option to git clone08:06
eXpired COBOL is useful if the application you're working on uses it, which pretty much always means legacy at this point.08:06
pdtpatrick :) i'm sold08:06
adamben joined08:06
adamben left08:06
adamben joined08:06
eXpired wereHamster: But what platforms actually use it in production, and for what?08:06
MaximLacrima joined08:06
eXpired I'm ignorant about Haskell :(08:07
pdtpatrick s/legacy/enterprise08:07
CrazyHorse18 canton7: what does —mirror do?08:07
canton7 man git-clone08:07
gitinfo the git-clone manpage is available at http://jk.gs/git-clone.html08:07
eXpired pdtpatrick: Maybe with financial institutions?08:07
wereHamster eXpired: lots of companies. They are just not so public about it.08:07
pdtpatrick even more scary08:07
canton7 CrazyHorse18, basically a fetch will overwrite your local branches, rather than updating your remote-tracking ones08:07
wereHamster eXpired: you know.. finanacial companies don't usually go around and brag about their code.08:08
CrazyHorse18 actually.. hmm —bare might be a better option08:08
eXpired wereHamster: Yeah, obviously. And a LOT of it is legacy. If it works, it works.08:08
wereHamster but there are also startups who us it.08:08
CrazyHorse18 canton7: because their should no reason to modify anything on the server.. it's just a deployment cache08:08
eXpired wereHamster: Cool. Every startup I hear about is about the newest craze, seems like.08:09
bauruine left08:09
spiderweb left08:09
jstemmer left08:09
dpino joined08:09
jstemmer joined08:09
Element9 joined08:10
joshsmith left08:11
suy joined08:11
eXpired Any of you guys ever toy with that checkio.org site?08:11
It's kinda fun.08:11
Basically thinly veiled college labs that you solve in Python08:11
rob_w joined08:12
pantsman left08:12
pantsman joined08:13
pantsman left08:13
pantsman joined08:13
resmo__ joined08:13
Bootstrapper left08:14
tjbiddle left08:14
resmo left08:14
resmo__ left08:14
pdtpatrick eXpired: i've used codeacademy08:14
that's a fun site as well and free :)08:14
jlg13 joined08:15
pdtpatrick http://www.codecademy.com/#!/exercises/008:15
eXpired Agreed. Codeacademy is quite a bit more basic (handholding).08:15
pdtpatrick yup08:15
eXpired I've actually sent a lot of friends to CodeAcademy.08:15
psoo joined08:15
maleknet left08:15
eXpired I get the "Am I too old to learn programming" question a lot08:15
pdtpatrick likewise .. although some just bookmark it and that's the end of it :)08:15
eXpired I send them there, and tell them to figure that out :)08:16
drewery there are also couple nice links on08:16
developer.mozilla.org08:16
eXpired For what?08:16
drewery for nice sites like codeacademy08:16
eXpired You guys tell me. I was asked last week of it's too old to have a realistic career in programming if they started at age 32.08:17
pdtpatrick i think it dependso n their expectation08:17
eXpired Architect asked this. Clearly had legitimate interest, but can you really land a career if you start then?08:17
drewery yes08:18
you can08:18
jast well, you will have to learn, of course08:18
eXpired I mean, you have to have at least 4 years of REAL experience before you land a job, right?08:18
jast and most courses are worthless because they teach the programming languages rather than the mindset08:18
drewery there is nothing really can stop you but yourself08:18
it all depends08:18
eXpired jast: That's the difference between a Univ CS degree and a vocational, I think.08:18
jast or something along the lines of, hey, here's what object orientation is08:18
drewery if you are comfortable and naturally capable08:18
it would be easy to produce some nice work demonstrates how good you are08:19
eXpired drewery: If you only plan to contract, for sure. But would your company hire an older programmer who's a beginner? I don't think mine would, to be honest.08:19
jast eXpired: I dunno. I've yet to see any formal training that turns people without the mindset into people with the mindset08:19
drewery it depends on the credentials08:19
not persons age08:19
but functionality and then the company policy (like expectations)08:19
CrazyHorse18 uni developers are mostly useless08:20
first year out08:20
eXpired jast: I can see that. My freshman year was at WSU in 2,000. Everybody there thought "Computers! Get rich quick!". Then the instructer started talking about pointers.08:20
CrazyHorse18 and it takes a couple of years to get them to be able to do stuff properly08:20
eXpired 35% of the students were booted for cheating08:20
Not exaggerating.08:20
drewery on the other hand08:20
pdtpatrick eXpired: Washington State? are u in seattle ?08:20
eXpired pdtpatrick: I'd planned on it initially, but nope. I love Seattle.08:20
drewery older person would have a more mature manner to work ethic and project handling08:20
_ikke_ joined08:20
CrazyHorse18 drewery: it really depends on the person08:21
eXpired CrazyHorse18: They are. Internships are HUGE!08:21
But some college students just think they're assured a job on graduation.08:21
CrazyHorse18 i've met 16yr old's who are excellent developers.. and 50yr olds who can't even write a document in english to describe how something simplistic works08:21
drewery CrazyHorse18: it always does, but a person CAN do it if he wills it.08:21
pdtpatrick yeah Seattle is pretty cool. I'm still trying to like the weather08:21
CrazyHorse18 drewery: the best developer i ever had was a 21yr old chinese guy08:21
drewery I think people are more successfull at things that they can intrinsicly do versus extrinsicly do08:22
CrazyHorse18 who came from an engineering background08:22
i.e. he went from doing hardware coding to web-development08:22
drewery CrazyHorse18: I think everybody has a different ... like gift... can't find the word08:22
eXpired pdtpatrick: Wanted to mvoe there for the music scene when I was a kid, so did WSU. And Seattle has a great tech community.08:22
psilo_ left08:22
CrazyHorse18 i hired him as an intern.. and he was the best developer in 6 months from 0 knowledge08:23
pdtpatrick eXpired: it still. Amazon, Microsoft :)08:23
sajbar left08:23
catsup joined08:23
sajbar joined08:23
eXpired CrazyHorse18: Exactly. At work, I deal with a lot of dyed in the wool systems devs who are almost 60. They just can't wrap their minds around server development.08:23
CrazyHorse18 eXpired: some college students just think they're assured a job on graduation <<< :O08:23
yeah.. i have this issue as well08:23
eXpired Some of them are damned geniuses. But there might be an age, I guess.08:23
CrazyHorse18 i've been thinking of taking a different approach08:24
jceb joined08:24
eXpired pdtpatrick: True. I have a few friends that work at F5. But MS... I kinda feel like that's a sinking ship. Amazon is amazing, however.08:24
CrazyHorse18 and writing up a detailed training course.. going to all the universities08:24
psilo joined08:24
CrazyHorse18 and saying if you learn this.. we will give you an internship08:24
mishok13 joined08:24
CrazyHorse18 and then teaming up with a few of the other software companies in the area.. so we can start having developers who can actually code on day 108:25
sangi left08:25
eXpired CrazyHorse18: Exactly! But not necessarily "if you learn this"... you need to separate passion from the book geeks who just want the money,.08:25
I always ask about personal projects when there's a potential hire.08:25
CrazyHorse18 oh yeah.. 95% of people that apply08:25
drewery exactly, thats what sets these people apart from the competition08:25
CrazyHorse18 don't have any code they can show08:25
wtf is with that08:25
eXpired Right08:26
CrazyHorse18 it doesn't make sense though.. software developers applying for jobs08:26
zeppo joined08:26
CrazyHorse18 but haven't done any software08:26
aisbaa joined08:26
eXpired Something like, "I wrote an Android add that shows my personal photo album from Flickr" means a lot more than, "I got a 3.7 GPA and surf on the weekends"08:26
*app08:26
drewery it happens, and happened with me since I traveled way a lot :)08:26
ninegrid joined08:26
drewery and lost my older stuff in an external drive...08:27
jeremy_c left08:27
CrazyHorse18 here's some peice of code i wrote to steal the photos from the city to bay half marathon, because i couldn't be bother paying $25 per photo :)08:27
e.g.08:27
eXpired Haha08:27
Honestly, that kind of crap too.08:27
CrazyHorse18 actually08:27
svetlyak40wt joined08:27
CrazyHorse18 i got 3 jobs08:27
because of a web app08:27
eXpired I grew up doing stupid "script kiddy" things.08:27
CrazyHorse18 i wrote that was for recording music videos08:28
eXpired That's rad!08:28
What did it do?08:28
alfadir joined08:28
sangi joined08:29
CrazyHorse18 ok.. connected to the abc's website.. downloaded the list of music videos to be played on friday night and saturday morning08:29
eXpired RSS scrape?08:29
chimay joined08:29
maleknet joined08:29
CrazyHorse18 parsed out the hour times.. counted number of music videos per hour.. worked out average length of videos and calculated expected time would be on08:29
eXpired I had no idea that ABC ever played music videos08:30
CrazyHorse18 did an ls of a local hard drive with the existing ones08:30
simesy joined08:30
CrazyHorse18 australian broadcasting comission08:30
parsed the artist name and song name08:30
eXpired So, basically, you timeshifted recordings for music videos and compared it against a cache08:30
CrazyHorse18 and then built an ajax clickable interface08:30
with colours08:30
eXpired That's awesome!08:30
CrazyHorse18 green for already got, white for not, blue for record tonight.. and if the video was recorded twice08:30
it then produced a recording file.. which it would sent to the application08:31
that sets up the recording08:31
eXpired So... I'm guessing you've seen Sickbeard?08:31
CrazyHorse18 and had all this helping shit for copying and pasting file names when we were chopping up the videos08:31
we ended up getting 12000 music videos08:31
eXpired That's effing amazing08:31
thyseus left08:31
CrazyHorse18 then .. on one fateful day08:31
eXpired None of that database is still online, is it?08:32
CrazyHorse18 youtube came up.. and we lost interest08:32
eXpired Damn. Damn damn damn damn. I miss music videos :(08:32
xxc_michael joined08:32
CrazyHorse18 we've still got the entire collection08:32
was never online08:32
wereHamster CrazyHorse18: you should have sold your system as youtube!08:32
CrazyHorse18 it was like 100GB08:32
or more..08:32
eXpired Which, at the time, I'm sure was huge08:32
skyf joined08:32
CrazyHorse18 oh yeah.. double-pass xvid encoding.. ahh the good old days08:32
eXpired: oh we had the biggest collection out of anyone in 2004.. by 100 times08:33
eXpired I used to burn CD-R's full of xvid music videos.08:33
CrazyHorse18 oh yeah then the police raided our server.. that was funny08:33
eXpired Oh, crap... really?08:33
CrazyHorse18 took them 4yrs to give the fucker back08:33
nah for something else though08:33
thyseus joined08:33
CrazyHorse18 the house it was in08:33
eXpired So you have those videos still?08:33
CrazyHorse18 was owned by a laywer08:34
who was reprsenting some other clients.. and for some reason they decided that my friend was involved08:34
so they turned up took all the computers08:34
kept them for 4 years08:34
then gave them back all scratched up08:34
eXpired Bastards!08:34
CrazyHorse18 we knew all the forensics guides08:34
and we asked how they went08:35
because it was a freebsd, using a custom raid5 software driver08:35
eXpired I've helped a felon friend of his decrypt his federally returned hard drives.08:35
CrazyHorse18 which was partially hand-coded08:35
and they said.. after they'd imaged the drives, they had no idea how to stich them together again :)08:35
eXpired Oh, so they didn't mount them correctly for reading?08:35
senny joined08:35
CrazyHorse18 nah they couldn't mount08:35
eXpired That's beautiful08:35
CrazyHorse18 you'd have to use the original hardware08:36
or buy identical hardware08:36
because it was software raid.. and compiled on that machine08:36
ninegrid left08:36
liori_liori08:36
eXpired I urge you to rebuild that array and archive those videos.08:36
CrazyHorse18 only had music videos and tv on it08:36
drewery http://speedtest.net/android/303206319.png08:36
CrazyHorse18 i've got them all08:36
drewery wrong window08:36
JoeAngel_ joined08:36
eXpired That many videos is probably nearly an entire collection08:36
CrazyHorse18 yeah08:37
eXpired I mean, videos have been made since... but not really. It's a lost art form.08:37
CrazyHorse18 means nothing now08:37
you can just download them in hd from youtube08:37
eXpired I suppose.08:37
Still, neat app idea.08:38
CrazyHorse18 lol.. took 35 hours08:38
got me 3 jobs08:38
haha08:38
axiommajoh08:38
sangi left08:38
lenswipee joined08:38
marhaban joined08:38
eXpired When I was a teen I developed a custom FTP server that operated internally by routing FXP commands. In other words, a custom client registered people's FTP servers with mine, and it was a distributed FTP server.08:39
CrazyHorse18 first lot i showed it too were wetting themselves.. and were talking about how they were going to integrate some of the functionality into their webapp. because they'd never seen any javascript stuff before08:39
eXpired That was neat.08:39
drewery night everyone, time to take off08:39
CrazyHorse18 eXpired: what year was this?08:39
eXpired But I was 16, and wrote it in VB and soon discovered women.08:39
199708:39
drewery left08:39
marhaban left08:39
CrazyHorse18 lol.. vb08:39
eXpired Yeah08:39
CrazyHorse18 yeah… i used to code in vb08:39
eXpired I was big in the whole "warez" thing as a teen08:39
lenswipee take care drewery08:40
eXpired It was my counter culture, I guess.08:40
CrazyHorse18 yeah.. we used to download tv shows over dial-up08:40
eXpired Sharing files was something that was neat to me.08:40
CrazyHorse18 2 days for one episode!08:40
:D08:40
eXpired Oh crap08:40
I know.08:40
CrazyHorse18 4.6kbs :D08:40
haha08:40
flyz_ joined08:40
CrazyHorse18 modem set to auto-redial.. scripting ftp servers to reconnect08:40
irc commands :D08:40
Cromulent joined08:40
CrazyHorse18 ah … "the shit old days"08:41
eXpired First modem was a 2400bps. I'll never forget my dedicated phone line downloading Diablo 1, which was 600 Meg, for over two days.08:41
CrazyHorse18 none of this.. click one button magnetic torrent shit08:41
eXpired I mean, by then it was a 33.6k, but crap.08:41
lenswipee is the object store of index located differently from the object store of commits?08:41
Cromulent left08:41
rednaks joined08:41
wereHamster lenswipee: what is an 'object store of index'?08:41
CrazyHorse18 eXpired; you downloaded diablo 1 :O back then it took an hour to download an mp308:42
eXpired It's all within the .git directory in binary blobs, if that's what you mean by objects?08:42
mneorr left08:42
lenswipee wereHamster: the collection of blobs08:42
eXpired CrazyHorse18: Hahaha. Exactly! And MP3's took up a sizable portion of the hard drive. Which is weird.08:42
fly9 joined08:42
Pugnax joined08:42
wereHamster lenswipee: there is only .git/objects.08:42
mneorr joined08:42
Cromulent joined08:43
lenswipee wereHamster: listen. the blobs that are created when you do 'git add [filename]' are stored as objects08:43
adamben left08:43
wereHamster correct.08:43
whitman left08:44
simesy left08:44
lenswipee wereHamster: in a 'object store'.08:44
eXpired Essentially, yes.08:44
wereHamster in .git/08:44
eXpired Git's object store doesn't do entire file copies. It operates on diffs, and stores binary blobs.08:44
lenswipee right now listen to next bit,08:45
sangi joined08:45
lenswipee when you do a commit 'git commit [filename]' you also create an object that represents the index.08:46
whitman joined08:46
alfadir hi, have a git of articles, would like to tag them with a doc revision. they are independent and many. any pointers how to deal with such tagging ? they are to small to make a git for each, and pretty many so before going wild on tagging i thought i'd check if there are any best practices. pointers welcome, thank you.08:46
skyf left08:46
wereHamster lenswipee: yes (I'll play along08:47
eXpired lenswipee: The object you're referring to is a SHA1 hash, but sure.08:47
fly9 left08:47
Pugnax left08:48
eXpired alfadir: Create a root git repo and add the documents to it. No reason for multiple repo's/branches.08:48
lenswipee eXpired: i think of it as a reference (SHA1 hash) to the object (index), but anyway.08:48
eXpired Yup, you're not wrong.08:48
lenswipee oh good. now08:49
alfadir eXpired: i have a root git repo, but want to tag sub trees so to say..08:49
lenswipee are the object database for the 'add objects' stored separately from the object database for the 'commit objects'.08:50
wereHamster lenswipee: no08:50
eXpired alfadir: Are you talking about sub-modules?08:50
That's something that more recent versions of git support.08:50
Pugnax joined08:51
lenswipee wereHamster: how are they stored?08:51
wereHamster lenswipee: http://git-scm.com/book/ch9-2.html08:51
alfadir no, i have a git of documents, they have or will have revision history. As they are many git tag -a v1.4 will not do. then i would have to do git tag -a fullpathtodoc-v1.0 ?08:52
Gentlecat left08:52
alfadir a bit like having one git for many small software projects that are not big enough to put in separate gits.08:53
wereHamster alfadir: why use tags? Just change, and commit, and in the commit message describe your changes and include the version (vx.y)08:53
alfadir: and when you want to list all versions of a document, use git log08:53
alfadir sure.. ok.. well git log . would work for that was looking for git tag . :)08:54
jeremy_c joined08:54
dankest left08:54
lenswipee wereHamster: according to that link its all stored in one big object database.08:54
resmo joined08:54
alfadir it is an unusual usecase i know08:54
eXpired lenswipee: More importantly, what are you trying to do?08:54
wereHamster lenswipee: if that's what it says.. then it must be true.08:54
lenswipee eXpired: learn git.08:55
eXpired alfadir: Definitely an unusual usecase. You can tag sets of file, but you'll need to split the repos up (and you could create them as sub-modules of something)08:55
AdrienBrault left08:55
eXpired lenswipee: Ah. OK :) Using git doesn't need you to learn all of the internals, though. I totally see where you're coming from, however.08:56
lenswipee eXpired: it seems the object database is structured like a tree with branches.08:56
alfadir i know, already using subtree merging to follow vendor branches in some cases.08:56
wereHamster lenswipee: no.08:56
lenswipee wereHamster: no? pls elaborate.08:56
wereHamster lenswipee: it's a tree in the sense that the objects are stored in a filesystem which uses a tree-like structure. But that's about it.08:56
mneorr left08:57
mneorr joined08:57
alfadir but for this it is not worth the work, git log works but is not so elegant as local tags..08:57
lenswipee wereHamster: sounds like what i said but in more detail :)08:58
alfadir svn comparison would be to tag just a subtree with svn cp xx/doc1 tags/doc1/1.1 or so.. well been a while since i did svn08:58
timj joined08:59
narfnarfnarf joined08:59
LimeBlast joined08:59
jlopez joined08:59
wereHamster lenswipee: by that argument, *everything* is stored in a tree. Even mysql databases. Because they store data in a filesystem.08:59
Bombe Yay, I’m stored in a tree! \o/09:00
wereHamster Bombe: shut up, trees can't talk!09:00
:P09:00
dlam joined09:00
maleknet left09:01
zheng left09:01
lenswipee wereHamster: I hear you. How do you explain the concept of tree and branches in git, since the tree concept has nothing to do with the filesystem?09:01
timj1 left09:02
Cromulent left09:02
jn_ joined09:02
wereHamster lenswipee: I'm not sure I understand you.09:03
lenswipee wereHamster: It's the way the objects are stored.09:03
wereHamster lenswipee: doesn't that article from the git book explain it?09:03
lenswipee wereHamster: lol09:03
adamben joined09:04
montrotyr__ joined09:04
mneorr left09:04
_Qman joined09:05
lenswipee yeah it says the index is a branch09:05
wereHamster where?09:05
mneorr joined09:05
Bombe wereHamster, I am not a tree, I’m only stored in a tree!09:05
irqq joined09:05
lenswipee Bombe: weren't you told to "shutup"? :D09:06
Anders_J joined09:06
lenswipee wereHamster: I don't remember the exact line and page number.09:06
montrotyr_ left09:07
wereHamster lenswipee: no book or tutorial would wrie that, because it's simply not true.09:07
alkino joined09:08
xpen left09:08
Desproges joined09:08
lenswipee wereHamster: the index is somehow part of the repos09:08
Vile left09:09
wereHamster yes it is. But how does that make it a branch?09:09
lenswipee wereHamster: talk later.09:10
wereHamster: i'll share notes with you later i mean.09:11
robotmay joined09:11
lenswipee wereHamster: take care.09:11
eXpired lenswipee: It's stored as a tree in essentially what is metadata in binary form.09:11
It requires the git binary to know how to deal with the blobs09:11
lenswipee eXpired: what are you referring to by "It's"09:12
eXpired You're not going to be able to manually dissect the storage of this09:12
Anything. The changesets.09:12
lenswipee eXpired: the intial index is a complete file copy.09:14
eXpired Right.09:14
ping-pong left09:14
eXpired And then changesets are composed of diffs, stored in binary blob form.09:14
lenswipee eXpired: the rest are diffs,09:14
zeppo left09:15
Bombe wat.09:15
Git doesn’t store diffs.09:15
eXpired That was my impression.09:15
It stores deltas between versions, no?09:15
Bombe No.09:16
Because that would be a diff.09:16
And Git doesn’t store diffs.09:16
simesy joined09:16
lenswipee bingo09:16
eXpired I thought that was what made checkouts and branching dirt cheap in git?09:16
Bombe Yes, not storing diffs makes all that dirt-cheap.09:16
eXpired I also assumed the diff storage was what made merging so quick and simple.09:17
lenswipee Bombe: then the blobs are complete file contents?09:17
eXpired How does it internally store and index things?09:17
Bombe lenswipee, yes.09:17
And directories, and commits, and tags.09:17
That’s about it.09:17
JStoker left09:17
Bombe Use the fucking internet.09:17
abec5 left09:17
wereHamster eXpired: maybe you should also have a look at http://git-scm.com/book/ch9-2.html09:18
lenswipee We have.09:18
xpen joined09:18
lenswipee wereHamster: :D09:18
samuel02 left09:18
lenswipee eXpired: at least you learnt something new today.09:18
eXpired Yeah, definitely09:22
samuel02_ joined09:22
a_L_p left09:22
kennethreitz left09:22
eXpired Never claimed to be a git expert, especially on how it works under the covers.09:22
I will now use the fucker internet to figure that out.09:23
lenswipee eXpired: thats OK. you know more than I do.09:23
CrazyHorse18 is there a way to do an "export" of a git repository..09:24
i.e. so it doesn't create the .git directory09:24
TeamColtra joined09:24
hafeez3000 left09:24
wereHamster CrazyHorse18: man git-archive09:25
gitinfo CrazyHorse18: the git-archive manpage is available at http://jk.gs/git-archive.html09:25
CrazyHorse18 cheers09:25
git archive master | tar -x -C /somewhere/else09:26
maleknet joined09:26
wereHamster CrazyHorse18: note that this won't delete files09:27
samuel02_ left09:27
CrazyHorse18 hmm09:27
eXpired left09:27
ping-pong joined09:28
CrazyHorse18 ok.. so basically i've got my repo in /repos/application_name and copies in my app in both /apps/application_name-int and /apps/application_name-uat09:28
thiago joined09:28
CrazyHorse18 int needs to match master and uat will always be a particular tag09:28
lenswipee wereHamster: Thr problem with," http://git-scm.com/book/ch9-2.html " is that is doesn't explain the index and how the commit tree uses it.09:28
CrazyHorse18 what's the easiest way of syncing those changes up?09:28
wereHamster CrazyHorse18: have /repos/application_name a normal repo that you update with fetch+reset --hard, and rsync it over to the two othre directories.09:29
Hounddog joined09:29
CrazyHorse18 right09:29
so checkout the branch / tag09:29
i want?09:29
wereHamster lenswipee: you mean the relation between the index and the commit object?09:29
ampz joined09:29
CrazyHorse18 rsync excluding the .git repo09:30
lenswipee wereHamster: i know that relationship.09:30
CrazyHorse18 git direcotry09:30
ampz left09:30
wereHamster lenswipee: so what exactly is unclear?09:30
CrazyHorse18 wereHamster: hmm. you run into problems then if one developer deploys to uat and another one deploys to int at the same time09:30
the other option would be to clone it.. and then just delete the .git directory i suppose09:31
bux joined09:31
wereHamster CrazyHorse18: then use /repos/application_name-int-deployment-checkout and /repos/application_name-uat-deployment-checkout09:31
lenswipee wereHamster: earlier discussions you made it sound like the index and commit objects are all part of the "tree".09:31
CrazyHorse18 some of these repos are large and the internet connections are shit, so i wanted to avoid having duplicates09:32
wereHamster lenswipee: well, yes, of the filesystem tree: ls .git/index, ls -la .git/objects/*/09:32
zenx joined09:35
thiago left09:35
EugenA joined09:36
lenswipee wereHamster: the index is simply an extraction of the commit tree with changes from the working tree.09:36
mtk left09:37
alireza joined09:37
wereHamster lenswipee: no. index is list of files. Literally. No relation at all with any commit object or a tree object.09:37
EugenA git remote shows me one remote repo: origin. But i don't see remote branches09:38
wereHamster EugenA: git branch -r09:38
Milossh left09:39
lenswipee wereHamster: then the index is stored in a different dir than the tree objects.09:39
maleknet left09:39
wereHamster yes.09:39
EugenA what is the proper way to push my commits to special remote branch?09:40
wereHamster lenswipee: well, the index is a single file: .git/index09:40
jeremy_c left09:40
wereHamster it's stored separately of the git objects, which are stored in .git/objects/*09:40
lenswipee bingo09:41
mtk joined09:41
lresende left09:42
lenswipee how do i list the index in git?09:42
sluther left09:42
berserkr joined09:42
MacroMan EugenA, git push origin mybranchname09:43
MaximLacrima left09:43
marhaban joined09:43
wereHamster lenswipee: git ls-files09:44
slamice left09:44
OOPMan left09:45
EugenA MacroMan: refusing to update checked out branch: refs/heads/master09:45
MacroMan: that is why I want to push to different remote branch09:45
slamice joined09:45
MacroMan EugenA, I can't say I've come across that error, a push to my branch name usually works fine for me.09:46
JStoker joined09:46
EugenA it looks like my workflow is not corrent then09:46
lenswipee wereHamster: the index is all the files i initially added when I first created the repos, which then gets updated after every commit?09:46
MacroMan EugenA, Are you currently in master or your new branch?09:46
AdrienBrault joined09:47
zeppo joined09:47
MacroMan Not sure if it'll make a difference or not, but I push while in the branch I'm pushing09:47
Error404NotFound joined09:47
EugenA on remote server is master checked out. On my local system i've cloned it like this: git clone [email@hidden.address] .09:47
marhaban left09:48
jgomez joined09:49
MacroMan Do you have persmission on the remote server to create a new branch?09:49
hafeez3000 joined09:49
JoeAngel_ left09:49
EugenA yes09:49
BadProphet joined09:49
slamice left09:50
MacroMan EugenA, I'm not really sure I can help any further, I'm no expert. Maybe someone else will know what's wrong.09:50
wereHamster lenswipee: index is the list of all files which you have git-add'ed09:50
jlg13 left09:50
wereHamster lenswipee: minus all files which you have git-rm'ed09:51
arvind_khadri joined09:51
laurav left09:51
chepre joined09:52
lenswipee wereHamster: whats in the index. I just see filenames and alot of unreadable stuff09:53
wereHamster lenswipee: mostly filename + stat info09:53
jackh_ left09:53
lenswipee wereHamster: stat <-- means status?09:54
EugenA so, I cannot push to checked out branch. I need bare repository for that, right?09:54
BadProphet left09:54
wereHamster lenswipee: man 2 stat09:54
Bootstrapper joined09:54
wereHamster lenswipee: everything git needs to be able to : 1) tell you that the fies have changed in your working tree, and 2) to construct a tree object for when you git commit.09:55
e66 left09:55
afuentes left09:57
lenswipee wereHamster: why is it not human readable?09:57
babilen left09:57
Bootstrapper left09:58
x82_nicole left09:58
wereHamster lenswipee: because it does not have to be.09:58
marhaban joined09:58
wereHamster lenswipee: it's slower to parse a human readable format.09:58
MacroMan lenswipee, Plus there is git gui if you want more human readable stuff.09:59
Milossh joined09:59
wereHamster or git ls-files09:59
edgar-rft left09:59
lenswipee wereHamster: the index contains sha1 hashes/references to the objects in .git/objects?09:59
wereHamster: that gives you just the filenames.10:00
wereHamster lenswipee: yes to your question and no idea what you mean by your second statement.10:00
lenswipee git ls-files10:01
Rix left10:01
lenswipee wereHamster: that gives you just the filenames.10:01
dsirijus joined10:01
rath_ left10:01
wereHamster yes, so?10:01
chuckharmston joined10:02
lenswipee wereHamster: these index objects are different to the commit objects that form the tree.10:02
wereHamster commit objects don't form a tree. Blobs and trees form a tree.10:02
lenswipee: since the index only contains files, it only references blob objects.10:03
lenswipee wereHamster: the blob objects of files are different to those blob objects created from a commit.10:04
wereHamster Nevik: no 'blob object' is created from a commit10:05
lenswipee: ^^10:05
rath_ joined10:06
lenswipee wereHamster: previous discussion spoke of 'git add [filename]' creating a blob object of file10:06
EugenA how do I need to organize my remote repository (repositories) to enable different developert uploading their commits and checking them in browser?10:06
wereHamster lenswipee: that is true.10:06
lenswipee wereHamster: that is why i said:10:07
wereHamster: these index objects are different to the commit objects...10:07
tvw joined10:07
lenswipee wereHamster: replace objects with blobs if u want.10:07
wereHamster this is like saying the number 1 is different from the numb r210:07
jeremy_c joined10:07
lausi joined10:07
thierryp joined10:08
myonebuddy joined10:08
Rix joined10:08
wereHamster the term 'commit object' has a very special meaning, and is very different from a 'blob object'.10:08
lenswipee wereHamster: right. let me rephrase. the index blob are different from the commit blob?10:09
wereHamster lenswipee: the term 'commit blob' does not make sense (in the context of git)10:10
same with 'index blob', what is that?10:11
hinst joined10:11
lenswipee wereHamster: As above, 'index blob' is the blob created for file when you do git add10:12
j0ran left10:12
jast files are always stored as the same kind of blob, no matter whether they're referenced from the index or from a commit10:12
Vile joined10:12
wereHamster lenswipee: just call it a blob10:12
j0ran joined10:12
lenswipee jast: right.10:13
Alvo joined10:13
jast they can even be referenced from both at the same time... happens quite often in practice10:14
so it wouldn't make sense to have two different formats10:14
wereHamster lenswipee: so your question was: When I create a commit, does the commit reference the same blobs as are referenced by the index?10:14
lenswipee wereHamster: yes, and i'm guessing the answer is yes.10:15
polymar joined10:16
scroogey joined10:16
gitinfo set mode: +v10:16
EugenA left10:16
scroogey hello10:16
i am having trouble with getting git stash and git svn working :/10:17
tsdh joined10:17
Xizor joined10:17
alireza left10:18
shruggar joined10:20
fger joined10:20
fger hi guys10:20
gitinfo fger: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.10:20
fger one question: can i have a specific tag of a repository as submodule of another GIT repo ?10:21
lenswipee jast: are the blobs of the index stored in a different file to those blobs created after commit?10:21
wereHamster lenswipee: no.10:21
lenswipee wereHamster: do I get a confirmation?10:21
fger or do i always have to the master for a submodule ?10:21
wereHamster confirmation of what?10:21
ethanol I have trouble understand git pull when working in multiple branches. By default when you clone, you get a master branch that tracks the master branch from origin, correct?10:22
samuel02 joined10:22
dlam left10:22
ianfleeton joined10:22
ethanol then if I create a new branch and set it up to track origin/newbranch, and do a pull --all, why do changes from origin's master not propogate into my local master branch?10:23
I have to actually switch to it (checkout) and do the pull again10:23
how come?10:23
fger anybody ?10:23
tag of a repo as submodule in another ?10:23
wereHamster fger: sure10:23
fger ok thx :)10:23
lenswipee wereHamster: so the initial blobs created from index are stored in .git/objects/0010:23
wereHamster lenswipee: .git/objects/*, the subdirectory depends on the file contents10:24
lenswipee wereHamster: what about the file contents?10:26
wereHamster lenswipee: what about them?10:26
lenswipee wereHamster: u said " depends on the file contents"10:27
wereHamster: whats the dependance?10:27
wereHamster lenswipee: a file with contents "foo" is stored in .git/objects/19/.. while a file with contents "bar" is stored in .git/objects/ba/...10:28
but that is all explained in the git book chapter I linked to earlier10:28
lenswipee wereHamster: each blob must then contains previous versions.10:29
wereHamster lenswipee: what 'previous versions'?10:29
lenswipee wereHamster: each blob of a file must contain previous versions of itself.10:30
flyz_ left10:30
scroogey my git repo keeps complaining about the LF / CRLF issue10:30
wereHamster lenswipee: no, how.. why.. what.. I don't get how your brain works..10:31
hafeez3000_ joined10:31
Nevik wereHamster: i assume you didnt mean to hilight me there ?10:31
wereHamster Nevik: no10:31
Nevik kay10:31
marthinal left10:32
nsadmin joined10:32
lenswipee wereHamster: i see your not going to make it easy for me.10:33
wereHamster: thanks and bye.10:33
hafeez3000 left10:33
hafeez3000_hafeez300010:33
wereHamster lenswipee: you haven a 1GB file in your working tree. You git add that file; git reads that file into memory, creates a blob object from it and writes it somewhere ti .git/objects.10:33
marthinal joined10:33
wereHamster lenswipee: your .git directory has justgrown by 1GB10:34
lenswipee: you change one bit in that file. you git add that file again. git reads that fie into memory, creates a blob object from it and writes it somewhere to .git/objects10:34
lenswipee: your .git directory has justgrown by another 1GB10:34
lenswipee: your .git directory is now ~2GB big.10:34
lenswipee: git ad also updates the index, after it writes the blob to .git/objects. It updates the index with: "Hey, there is a file /foo/bar which has contents <blob sha1>"10:36
beautifulmind joined10:36
hyperair left10:36
lenswipee wereHamster: your a master of over simplifying things and being vague about the complex workings of git.10:36
jast git isn't all that complex10:37
lenswipee hmm10:37
Nevik indeed10:37
_ikke_ !complex10:37
Nevik dahw10:37
_ikke_ !simple10:37
gitinfo At its heart git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it is usually about breaking up the complex concept into its simple, individual parts and grokking those. Both !bottomup and !cs will help with that.10:37
Nevik ah10:37
scroogey :))10:37
_ikke_ .trigger_edit complex @!simple10:37
gitinfo _ikke_: Okay.10:37
Nevik lawl :D10:37
thats a good bot10:37
nsadmin y10:38
jast fger: in fact submodules always point to specific commits, so it doesn't matter whether you use a branch or a tag10:38
soc42 joined10:39
jast Nevik: and nobody else has it! mwahaha!10:39
Nevik what does the bot run "on" (or, what kind of bot is it?) -- or is custom-made?10:39
jast !bot10:39
gitinfo [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.10:39
_ikke_ Nevik: custom made10:39
Nevik cool10:39
sangi left10:39
Nevik (requires Perl, common::sense <--- LOL10:39
mikef joined10:40
Nevik gotta love coders' naming schemes10:40
jast hmm, docs on that page are not quite complete10:40
I'm sure we have a few additional features10:40
fger jast: and they are "state-of-the-art" for connecting git repos with another ? what i look for is sth like svn externals10:40
jast: or is there some other git construction that is suited better ?10:40
Nevik there is no other10:40
bodom joined10:41
lenswipee wereHamster: explain in same manner now when you do a commit.10:41
jast fger: pick your poison: !subpro10:41
gitinfo fger: [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.10:41
marthinal left10:41
fger thx jast :)10:41
Nevik or use them in a private message10:41
if you wanna read them all10:41
Error404NotFound left10:41
wereHamster lenswipee: git reads the index, creates a tree object from it, writes the tree object to .git/objects. It then creates a commit object (which references the just created tree object), writes that object to .git/objects. It then updates HEAD to point to the new commit you created.10:41
mikef i messed up my code, and i'm currently commiting to something git has called "no branch" how can i rescue this?, how do i merge this to master or turn it into a branch?10:41
svetlyak40wt left10:42
Nevik jast, _ikke_: the trigger should be augmented with an "or in a pm"10:42
jast mikef: write down the commit ID(s) (git log), checkout master, git cherry-pick <commit ID>10:43
or do this: git checkout -b temporarybranch10:43
then you can merge as normal10:43
eli left10:43
mikef jast: what does -b do?10:43
marthinal joined10:43
jast mikef: create a branch from your current status10:43
_ikke_ fixed10:44
mikef jast: perfect thanks10:44
jast _ikke_: what? :)10:44
_ikke_ !subprojects10:44
gitinfo So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel.10:44
_ikke_ ugh10:44
mikef !subtree10:45
_ikke_ Now for real10:45
gitinfo The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/Git-Tools-Subtree-Merging for more info, or try one of the !subtree_alternatives10:45
babilen joined10:45
Nevik _ikke_: cool :)10:45
hoschi left10:45
simesy left10:45
luc_ left10:45
fger guess i will use submodules then...10:46
but if i have to switch to another commit in a submodule, i have to re-wire it again ?10:47
lenswipee wereHamster: which HEAD? in /git or /git/ref?10:47
wereHamster lenswipee: there is only one: .git/hEAD10:47
fger so i use tag 4.5.1 as submodule and then i would have to switch to tag 4.5.2 for that submodule to be connected to another repo...10:48
Nevik fger: !submodule10:48
gitinfo fger: git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html10:48
sangi joined10:48
fger yes i read that10:48
th10:48
x10:48
samuel02 left10:48
Nevik fger: the submodule will behave like a normal git repo10:48
within your super-repo10:48
you can just cd into it, and check out another commit10:48
fger ah ok thx10:48
mikef left10:48
fger good to hear :)10:49
Nevik then cd into the super repo, and commit the change there, so it will remember (and publish) that it now depends on that other commit10:49
simesy joined10:49
fger i want to have an app core as submodule10:49
thats why im asking10:49
Nevik as was pointed out, the super-repo will always save which commit in the submodule is currently used.10:49
fger the sub core comes from a remote repo on the internet10:49
ok10:49
yshh left10:50
Nevik fger: in your super-repo, use "git submodule add <remote url> <local target folder>"10:50
that will create the submodule, clone it, and check out the default branch10:50
fger ok10:50
Nevik fger: more details can be found in !book10:50
gitinfo fger: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable10:50
Nevik and on man git-submodule10:50
gitinfo the git-submodule manpage is available at http://jk.gs/git-submodule.html10:50
robustus joined10:51
simesy left10:51
Suprano joined10:51
fger ok i will check that out and implement a sample10:51
thx guys10:51
tvw left10:51
fger left10:51
palyer joined10:52
palyboy left10:52
jdyin1 left10:52
alireza joined10:52
lenswipee wereHamster: the tree objects and commit objects are not blobs?10:52
Nevik lenswipee: theyre short structs with mainly pointers to other things10:53
like parent commit(s) and relevant blob(s)10:53
benbergman joined10:53
jast lenswipee: correct. blobs, trees, commits, tags. those are the types of git objects.10:53
achadwick joined10:54
Marenz left10:54
lenswipee different file types so to speak10:54
bauruine joined10:55
JoeAngel_ joined10:55
TheHaven joined10:55
lenswipee i suppose the numeric folders and alpanumeric folders in .git/objects hold differnt git objects10:55
wereHamster lenswipee: the directory name is the first two characters of the hex sha1 representation of the object10:56
so an object with sha1 ba0e162e1c47469e3fe4b393a8bf8c569f302116 will be stored in .git/objects/ba/0e162e1c47469e3fe4b393a8bf8c569f30211610:56
that, also, is explained in the git book chapter10:56
xiangfu left10:57
Pugnax left10:57
kennethreitz joined10:57
hoschi joined10:59
Rix left11:01
chuckharmston left11:01
simesy joined11:02
herdingcat left11:02
eijk joined11:02
lenswipee_ joined11:03
lenswipee_ wereHamster: how does git know the difference between various objects types stored in .git/objects? when its hex sha1 referenced?11:03
_ikke_ lenswipee_: It's stored in the object11:03
lenswipee_ _ikke_: that would make it slow11:04
wereHamster lenswipee_: read http://git-scm.com/book/ch9-2.html#Object-Storage11:04
lenswipee_: what makes you htink that?11:04
ianfleeton left11:05
lenswipee_ it would have to parse all objects to find say tree object11:05
_ikke_ lenswipee_: No it doesn't11:05
wereHamster lenswipee_: the question is, why do you want to find that tree object?11:05
caddoo joined11:05
wereHamster in which situation do you want that?11:05
_ikke_ lenswipee_: All objects have to be referenced11:05
lenswipee_ the commit object would reference the tree object11:06
_ikke_ it does11:06
simesy left11:06
wereHamster lenswipee_: yes, so you already know its sha. So you go and open that file in .git/objects/XX/YYY...11:06
lenswipee left11:06
lenswipee_ which it has to look for in .git/objects among all the other types of objects11:06
wereHamster no. it goes and opens *a single* file.11:06
eijk_ joined11:07
_ikke_ there is a 1-on-1 relation between the sha and the file11:07
lenswipee_ i don't know the commit objects sha111:07
wereHamster lenswipee_: the commit knows the tree it references.11:07
lenswipee_: http://git-scm.com/book/ch9-2.html#Commit-Objects11:07
eijk left11:07
pansdr left11:08
lenswipee_ lets say i want the 3rd commit.11:08
wereHamster third commit from where?11:08
pansdr joined11:08
lenswipee_ i know the sha1 is there in .git/objects11:08
_ikke_ !xy11:08
gitinfo This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?11:08
wereHamster lenswipee_: you mean you want the HAED^^^ commit?11:08
eijk__ joined11:09
_Qman left11:09
_Qman joined11:10
lenswipee_ i want the third commit that i did.11:10
eijk__ left11:10
mikecmpbll joined11:10
eijk__ joined11:10
lenswipee_ git commit11:10
wereHamster time wise? History wise?11:10
lenswipee_ x311:10
eijk__ left11:10
wereHamster git doesn't have an efficient way to do that.11:11
Nevik lenswipee_: get HEAD, go back to "end" of history, back up three commits11:11
lenswipee_: git history is a singly-linked-list of commits11:11
eijk_ left11:11
_ikke_ !gcs11:11
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://sitaramc.github.com/gcs/11:11
kimico left11:11
eijk joined11:11
LekeFly joined11:12
wereHamster there are numerous ways how to approximate that. But none of it is reliable. The commit might not even exist. Or be the second commit (history-wise) because you rebased etc..11:12
LimeBlast left11:12
kimico joined11:12
lenswipee_ lets try again11:12
i do:11:12
git init11:13
tvw joined11:13
lenswipee_ git add file11:13
git commit11:13
change file11:13
git add file11:13
git commit11:13
change file11:13
git add file11:13
git commit11:13
thats 3 times11:14
wereHamster HEAD is the third commit, the one you just made.11:14
lenswipee_ now i want to get the first commit11:14
scroogey_ joined11:14
wereHamster HEAD^^11:14
that's the grandparent of HEAD.11:14
Nevik lenswipee_: PLEASE. READ what we tell you. git does NOT know what the "first" commit is11:15
Rix joined11:15
Nevik git looks back on history11:15
kirin` joined11:15
lenswipee_ when do you HEAD^^11:15
cworth left11:16
lenswipee_ it looks for HEAD in /git11:16
cworth joined11:16
lenswipee_ reads the history11:16
grabs the sha111:16
Cromulent joined11:16
lenswipee_ uses that is .git/objects11:16
*in11:16
wereHamster it looks for the HEAD ref, parses the commit it points to, takes its parent, parses that commit, takes the parent again and that's what you want.11:16
lenswipee_ and grabs the tree object11:16
LimeBlast joined11:17
simesy joined11:17
ircmouser joined11:17
jast you haven't told it to look at the tree object11:17
wereHamster no trees involved at all.11:17
it's just commit walking.11:17
senny left11:17
bux left11:17
scroogey left11:17
JEEB joined11:17
rednaks left11:19
kimico left11:19
jaalto left11:19
hafeez3000 left11:19
lenswipee_ what does HEAD^^ return?11:19
_ikke_ The parent of the parent of the head commit11:20
wereHamster lenswipee_: when given to which git command? git show HEAD^^? git log HEAD^^, git rev-parse HAED^^?11:20
jast try it yourself on the command line: git rev-parse HEAD^^11:20
h0bbit left11:20
lenswipee_ The parent is a tree object no?11:20
jast no11:20
_ikke_ no11:20
It's a commit11:20
hafeez3000 joined11:21
jast when you make a new commit, the previous commit becomes its parent11:21
wereHamster lenswipee_: your parent is a human. you are a human and yoru parent is also one. The same type.11:21
lenswipee_ which references a tree object11:21
_ikke_ You're confusing what a tree object is11:21
jast when you merge, the merge commit gets two parents11:21
kirin` left11:21
_ikke_ A tree object is a tree of files that belong to a commit11:21
it has nothing to do with the history11:21
asaf left11:22
_ikke_ (it's part of history)11:22
kirin` joined11:22
lenswipee_ so it returns a sha1?11:22
lausi left11:23
wereHamster lenswipee_: the tree object describes how your project looked (on the filesystem) at the time you did the commit.11:23
h0bbit joined11:23
Kyzz_ joined11:23
lausi joined11:23
lenswipee_ bingo a sha111:23
wereHamster lenswipee_: typing HEAD^^ in the terminal produces an error. However, 'git rev-parse HEAD^^' will print the SHA1 of the grandparent of HEAD.11:23
but, 'git rev-parse HEAD^^' produces something different from 'git show HEAD^^', which is different from what 'git log HEAD^^' produces.11:24
lenswipee_ and then i use this sha1 to get the corresponding tree object11:24
wereHamster if that's what you want, yes.11:24
scroogey joined11:25
scroogey left11:25
zenx left11:25
zenx joined11:25
lenswipee_ git show HEAD^^ just gives the comment message11:25
jast it should also give the diff11:25
Error404NotFound joined11:25
jast though maybe it doesn't do that for the root commit11:26
wereHamster and author identity. and date.11:26
jast never tried that11:26
Kyzz left11:26
wereHamster it does.11:26
ampz joined11:26
nafg_ left11:26
lausi left11:26
Nevik yeah11:26
scroogey_ left11:26
chimay left11:27
gmarseliss left11:27
lenswipee_ git log HEAD^^ is just a subset of git log11:27
Nevik yes11:27
ampz left11:27
wereHamster lenswipee_: 'git log' == 'git log HEAD' == show me the log starting at HEAD.11:27
echo-area left11:27
wereHamster lenswipee_: git log X == show me the log starting at X.11:27
Nevik lenswipee_: since you still have not done !xy as weve told you twice, we still dont know what youre trying to do11:27
gitinfo lenswipee_: This sounds like an "XY Problem" http://mywiki.wooledge.org/XyProblem So let's step back for a minute. What are you actually trying to achieve? Why are you doing it this way?11:27
sangi left11:27
wereHamster lenswipee_: hence: git log HEAD^^ == show me the log starting at the grandparent of HEAD11:27
sangi joined11:27
project2501b joined11:28
kirin` left11:28
kirin` joined11:29
lenswipee_ sweet11:29
benbergman left11:29
Cromulent left11:29
gitinfo set mode: +v11:30
lenswipee_ Just realised I was mislead by someone who said HEAD^ was the most recent commit.11:32
_ikke_ Even HEAD is not per definition the most recent commit11:33
!HEAD11:33
gitinfo HEAD is a 'pointer' to the currently checked out branch (or commit, if HEAD is !detached). In bare repositories it serves a different function: it tells clients which branch to checkout initially after cloning. HEAD is *not* something that exists separately for every branch; that's a common misunderstanding. It also is *not* the newest commit in the repo (which is hard to define in a DVCS anyway)11:33
Pugnax joined11:34
lenswipee_ _ikke_: how does one get the newest commit?11:34
_ikke_ Newest in what way?11:34
kirin` left11:35
lenswipee_ well certainly HEAD^ doesn't qualify as the newest commit.11:35
_ikke_ HEAD^ is the parent of HEAD, which points to the currently checked out commit11:35
lenswipee_ It also is *not* the newest commit in the repo (which is hard to define in a DVCS anyway)11:35
what that meant11:35
kirin` joined11:36
svetlyak40wt joined11:36
tsdh left11:36
benbergman joined11:36
devsharpen joined11:37
nsadmin left11:38
polymar left11:38
polymar joined11:38
hafeez3000 left11:39
zenx left11:40
Donno joined11:40
Nevik lenswipee_: just like it doesnt know the first, git doesnt know the last commit; it does not care about such things11:42
kirin` left11:42
lenswipee_ left11:42
Nevik it only cares about which commit is related to which others11:42
polymar left11:43
OOPMan joined11:43
kirin` joined11:44
benbergman left11:44
simesy left11:46
samuel02 joined11:47
tvw left11:48
kirin` left11:49
xpen left11:49
kirin` joined11:50
marhaban left11:50
polymar joined11:50
benbergman joined11:51
drizzd joined11:51
CompMike left11:52
drizzd_ left11:54
zenx joined11:55
kirin` left11:55
benbergman left11:57
kirin` joined11:57
rednaks joined11:57
angelsl joined11:58
blami joined12:01
soc42 left12:01
blami_ joined12:02
pmdarrow joined12:02
kirin` left12:03
kirin` joined12:04
svetlyak40wt left12:04
rednaks left12:06
bux joined12:06
dsirijus left12:07
hafeez3000 joined12:08
senny joined12:08
benbergman joined12:08
dragon3_ left12:09
kirin` left12:09
hafeez3000 left12:09
Ryback_ joined12:09
Ryback_ left12:09
Ryback_ joined12:09
hafeez3000 joined12:10
sangi left12:10
kirin` joined12:10
DarkDonno joined12:11
kimico joined12:12
Raging_Hog joined12:13
Raging_Hog I want to know all that's happened in a branch foo after it was branched from master. Trouble is, it has been merged to master so I can't use master..foo12:13
benbergman left12:13
Raging_Hog right now I'm using the number 3. in the first answer here http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git12:14
Donno left12:14
Raging_Hog is happy that he managed to ask this today without accidentally pasting five lines and getting klined from the network12:14
fisted joined12:15
robbyoconnor left12:15
kirin` left12:15
rchavik joined12:16
rchavik left12:16
rchavik joined12:16
kirin` joined12:17
e-dard joined12:17
glennpratt joined12:17
hyperair joined12:18
fisted_ left12:18
DarkDonnoDonno12:20
eijk left12:20
zheng joined12:20
hotovson_ left12:21
nioncode joined12:21
kirin` left12:22
svetlyak40wt joined12:22
kennethreitz left12:22
Bombe left12:23
kirin` joined12:23
kennethreitz joined12:24
Bombe joined12:25
GeertB left12:25
benbergman joined12:25
quazimod1 joined12:27
R1KRDO joined12:27
kirin` left12:29
kirin` joined12:30
sylr joined12:31
arvind_khadri left12:31
kerrick left12:33
marhaban joined12:33
juvenal joined12:35
kirin` left12:35
jfs joined12:35
jfs left12:35
jfs joined12:35
picoguy joined12:36
rgr joined12:36
kirin` joined12:36
kirin` left12:41
hafeez3000 left12:42
kirin` joined12:43
bitkiller joined12:43
hafeez3000 joined12:43
jhutson456_ left12:44
bitkiller left12:44
senny left12:44
h0bbit left12:44
TomF joined12:46
jargon left12:46
IridiumScaffold left12:46
osse Raging_Hog: has 'foo' since been deleted?12:47
btree_ joined12:47
Raging_Hog osse, no, it's active. The point is that I'm developing on a branch that was once merged but has been reopened, and I want to get the big picture of everything that has happened in it during its whole lifetime12:48
kirin` left12:48
kirin` joined12:49
tvw joined12:50
bitkiller joined12:51
btree left12:51
Nevik Raging_Hog: do you know when it was first created (i.e. the commit it was based on) ?12:51
ehsan left12:52
TomF left12:52
cakehero joined12:52
hafeez3000 left12:53
hafeez3000_ joined12:53
hafeez3000_ left12:53
Raging_Hog Nevik, that's what I'm after. I used to find it in the commit log, but that's a bit tedious. The SO answer allows me to do git diff $(git oldest-ancestor master foo) and git log, in a similar way, or gitk or whatever I feel like12:54
hafeez3000 joined12:54
Nevik ah, hm12:54
kirin` left12:55
Nevik we've had the same question a few days ago, but there's probably no one way of going at it12:55
thomasf1021 joined12:55
Nevik Raging_Hog: afaik, git cannot discern which branch a commit has belonged to once it was merged somewhere else12:55
kirin` joined12:55
Nevik that has to do with the way git saves history12:55
Raging_Hog: so you probably have no *reliable* way of actually finding out where the branch started12:56
unless you can find someone with a really old clone ;P12:56
wereHamster or still have the reflog12:56
Nevik yeah12:56
which is unlikely, from the way it sounds12:56
wereHamster (and the parse the reflog somehow to get that information)12:56
Nevik how long is the reflog usually, until it gets truncated ?12:57
cannonball joined12:57
wereHamster Nevik: man git-reflog, man git-gc, man git-config12:58
gitinfo Nevik: the git-reflog manpage is available at http://jk.gs/git-reflog.html12:58
Nevik: the git-gc manpage is available at http://jk.gs/git-gc.html12:58
Nevik: the git-config manpage is available at http://jk.gs/git-config.html12:58
tvw left12:58
MrDHat joined12:59
quazimod1 left12:59
eijk joined12:59
Nevik ah, good to know12:59
iamjarvo joined13:00
Nevik so basically the reflog does not auto-expire if i dont manually gc or so ?13:00
kirin` left13:01
Raging_Hog will the command in that SO answer give a reliable result? If I understood it correctly, it looks at all the commits in both branches and selects the oldest (or first?) common one13:01
hotovson joined13:01
wereHamster some git comands do run git-gc13:01
Nevik ah13:01
kirin` joined13:02
Nevik Raging_Hog: it's not 100% reliable, but probably the best you can get13:02
hellopat left13:02
jast I believe autogc doesn't expire anything13:02
mp_ joined13:02
jast but I haven't verified this13:02
BadProphet joined13:02
Raging_Hog Nevik, in what situations will it fail?13:02
undecim_ left13:02
Nevik Raging_Hog: i cant think of a concrete scenario, but as i pointed out, youre trying to determine something which git doesnt usually remember13:03
undecim_ joined13:03
Nevik so it might well be that it cant be reconstructed properly13:03
oh i have an example13:03
Raging_Hog: the only way to tell the first "appearance" of a branch is when it diverges from another (before that, they share all history)13:04
letharion left13:04
Nevik if you create a branch and dont diverge it immediately (but ff it on the "parent" branch for a while), it wont be reflected13:04
picoguy left13:04
Nevik Raging_Hog: so actually the method in the SO answer will probably find the oldest non-common commit13:05
skul left13:05
BadProphet left13:06
kirin` left13:07
Raging_Hog that sounds fitting for my needs, because I'm interested in what's been happening in the branch that wasn't in master at the time. If I were to just diff origin/master or something like that, I'll see the new changes in master, too. Then I will create a foo branch and rebase it on origin/master and then check the diff, but that's a bit more work13:07
kirin` joined13:08
narfnarfnarf left13:08
Nevik alright, if that's all you need, the SO answer should serve you well enough :)13:08
yshh joined13:09
chimay joined13:09
mikecmpbll left13:10
sylr left13:10
sylr joined13:10
thomasf10211 joined13:11
thomasf1021 left13:11
thiago_ joined13:12
fRAiLtY- left13:12
JoeAngel_ left13:13
pretty_function left13:13
kirin` left13:13
thomasf10211 left13:13
thomasf1021 joined13:14
rgsteele joined13:14
kirin` joined13:14
martinjlowm-lapt joined13:14
sebrock joined13:16
sgambino joined13:16
samuel02 left13:16
alireza left13:17
thomasf1021 Good Day. I have a question about how to get my SVN to GIT conversion working. I currently run an Unstable trunk in SVN. I've used SubGit to start running the two in parallel. Trunk became my master, so it is inherently unstable as well. I've got a Staging branch that I tag off of for production releases. The problem I'm running into now is that it seems I have to cherry pick every commit when going from master -> staging ? Any thoughts would be apprecia13:17
beautifulmind left13:19
irqq left13:20
MiKom joined13:22
Nevik thomasf1021: i dont know how subgit works, but you should be able to just merge staging into master13:23
or actually, master into merging13:23
if you want all the changes to be taken over13:23
alunduil left13:23
Nevik if you only want single commits, then cherry-picking is the way to go13:23
gtrak left13:24
thomasf1021 SubGit works by using commit hooks to pass the commits to the other VCS.13:24
Nevik oh, then, i have no idea how to not break it. the guys who make subgit will be able to help you with that13:25
thomasf1021 So assuming I've created a ticket branch, completed my work and merged it back into master, I'd have to then cherry pick each revision to get it into Staging?13:25
samuel02 joined13:25
Nevik thomasf1021: is there any reason youre not completely migrating to git (yet) ?13:26
Donno left13:26
Nevik thomasf1021: if there is nothing in master you DONT want in staging, you can just merge master into staging13:26
thomasf1021 It's working perfectly, just that I'm struggling on how to use an unstable master with GIT. I have lots of changes in master that are not yet ready to be migrated, so a standard merge won't work13:26
gotcha13:26
Nevik thomasf1021: git doesnt care that it's called master13:26
MrDHat left13:26
thomasf1021 I haven't migrated completely to GIT since my use case isn't yet satisfied. It seems like GIT is meant to only ever use a stable master13:27
Nevik it's just a bit of a convention to call the main branch master, but it's just like any other branch13:27
no13:27
thomasf1021: you can use however many stable or unstable branches you want, and name them whatever you want13:27
(e.g. trunk if that feels comfy to you)13:27
if youre interested, you might also look at !workflows and !book in general13:28
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable13:28
rednaks joined13:28
Nevik er whats that other trigger13:28
!workflow13:28
gitinfo Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows.13:28
letharion joined13:28
Nevik _ikke_: can you alias !workflows to @!workflow (or can i do that too?)13:28
thomasf1021: the book and the articles tell you a bit about what workflows are possible with git (or rather, they give you examples; git is generally not limiting you in terms of workflow)13:29
jast everyone can do it13:30
thomasf1021 Thank you i've read them all but they don't answer the problem of mainline development being done and migrated later on. They all base their assumptions that you're branching from production. Then at some point merging to an integration branch to try and ensure conflicts are handled. Let me try to describe it another way13:30
jast you just need to be logged into nickserv13:30
mustafavelioglu joined13:31
wdouglass joined13:31
Nevik .trigger_edit workflows @!workflow13:31
gitinfo Nevik: Okay.13:31
Nevik !workflows13:31
gitinfo [!workflow] Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows.13:31
Nevik yay for working technology ^_^13:32
jast you're welcome ;)13:32
Nevik thomasf1021: they might all just not mention that it doesnt matter which way you do it13:32
mustafavelioglu Hi, i want to add files to gitignore without deleting in my repos and other developers. How can i do this ?13:32
m0viefreak joined13:32
jast mustafavelioglu: if the files are kept in the repo, the ignore patterns don't apply to them, period13:33
wdouglass hey all! i've got a question. with 'git log' i can get a list of commits that deal with a specific subdirectory in my git repo. with 'git format-patch' i can get patchsets for a subset of commits. how do i get a set of patches to build *just* a subdirectory of my repo? is this possible?13:33
bremner certainly deleting other developers is tempting sometimes, but illegal in most jurisdictions.13:33
Nevik lol bremner13:33
jast wdouglass: not a format-patch style patch13:33
Nevik thomasf1021: but yes, if you can describe your workflow a bit, maybe i can help you figure it out13:33
jast best you can do is, say, git diff commit1 commit2 -- path > file.patch13:33
alireza joined13:34
mustafavelioglu jast : I have to kept files in my repo. Just, i dont want to track them changes13:34
wdouglass jast: i was afraid of that. i guess i could write a script to do 'git log' and then iterate from commit to commit, generating patches. thanks!13:34
bremner mustafavelioglu: have you read !config13:34
gitinfo mustafavelioglu: [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas13:34
thomasf1021 Let's take a CMS example. If I'm adding say a video object to the system (call Feature A) and also the ability to comment on the videos (Feature B). If I branch off of the production release for Feature A, I'll be ok. But for Feature B I have to wait until Feature A is released or I have to branch from Feature A directly, which assumes that I've pushed/exposed Feature A's branch13:34
tvw joined13:35
pansdr left13:35
jast wdouglass: you can use 'git rev-list' instead of 'git log' for easier scriptability13:35
same arguments but you get only the commit IDs13:36
Nevik thomasf1021: that depends on who is doing feature b. if youre doing it yourself, you can just branch off feature a any time13:36
Pugnax left13:36
shamrock joined13:36
Nevik but if someone else is doing it, they need to share your feature a branch, yes13:36
wdouglass jast: cool! i always forget about that :)13:36
heroux left13:36
shamrockGuest2850113:36
rgrGuest5998713:37
boichev left13:37
Guest28501 left13:37
xiangfu joined13:37
EugenA joined13:37
thomasf1021 Nevik: Thank you for your help. I need to change my workflow entirely then but such is life if I want to use GIT. :)13:37
rgr joined13:37
Nevik thomasf1021: many people here have more experience with git than i; feel free to hang around and talk some more, maybe someone can help you figure out a way that you dont have to change it all13:38
heroux joined13:38
EugenA i have two repos: normal - site and bare - hub. Git should go to site and pull the updates from hub after push to hub13:38
Nevik thomasf1021: however, to use all features of git, it is good to use a workflow that's aware of the git features and concepts13:38
luc_ joined13:38
thiago_thiago13:38
Nevik EugenA: what do you mean "go to site" ?13:39
EugenA go to repo "site"13:39
i've created hook "pust-commit" in bare repo, right?13:39
Nevik you should mention such things :P13:40
jackh joined13:40
Nevik im not a hook-expert so i'll step out here13:40
EugenA no, i mean "post-update"13:40
jcromartie joined13:40
MrDHat joined13:41
yoh joined13:42
tjadc joined13:42
Tectu left13:42
tjadc_ left13:42
erichynds joined13:43
yoh [Hi to all gitters] in gitk, highlighting of commits and files "touching path" works fine when files are not specified via globs -- with globs (e.g. a*.c) commits highlighted but not the files ... looks like a bug -- or am I missing smth?13:43
SegFaultAX left13:43
alireza left13:44
tr4656 left13:45
Alvo left13:45
emankcin left13:45
davidh left13:46
emankcin joined13:46
marhaban left13:46
peper left13:46
hachque left13:46
tm1000 left13:46
h0bbit joined13:46
d1b left13:46
sharpobject left13:47
Aaeriele left13:47
tmcmahon joined13:47
Eridius joined13:47
AdrienBrault left13:47
hola123 joined13:47
shihan left13:47
roto left13:47
freeed joined13:47
cmyers joined13:48
Hamled|Erp left13:48
jlg13 joined13:48
tm1000 joined13:48
tr4656 joined13:48
chrisgeorge joined13:48
dgtlmoon joined13:48
davidh joined13:48
dgtlmoon greetlings13:48
shihan_ joined13:48
Aaeriele joined13:48
Hamled joined13:48
peper joined13:49
dgtlmoon question, when i make a new branch, does that branch move along with 'master' ? or do i have to merge in any changes from master back into that branch?13:49
hachque joined13:49
SegFaultAX joined13:50
maleknet joined13:50
thiago you need to move it manually13:50
rking So, if I 'git checkout upstream/master' or if I 'git branch upstream/master', both leave me in a detatched HEAD. How do I get the 'upstream' remote to act like my normal 'origin'?13:50
dgtlmoon thiago, ahh ok13:51
thiago rking: the second command does not change your current branch13:51
rking Aha13:51
thiago rking: therefore, it is incorrect to say that it left you in a detached-HEAD state.13:51
dgtlmoon thiago, you are replying to me?13:51
thiago rking: it did not change the state13:51
maleknet left13:51
rking Gotcha13:51
thiago dgtlmoon: yes, the first answer was to you13:51
dgtlmoon ok :)13:51
thiago rking: now, the first command does move you to a detached HEAD, since upstream/master is not a local branch13:52
boichev joined13:52
bitkiller left13:52
hola123arkiver13:52
narfnarfnarf joined13:52
MrDHat left13:52
rking thiago: OK, so how do I get a not-detached HEAD from upstream/master13:53
Nevik rking: you will need to create a tracking branch first13:53
man git-branch and man git-checkout for that13:53
gitinfo the git-branch manpage is available at http://jk.gs/git-branch.html13:53
the git-checkout manpage is available at http://jk.gs/git-checkout.html13:53
kenyon joined13:53
Arokh joined13:53
thiago rking: non-detached-HEAD means "I am in a local branch"13:53
roto joined13:53
sharpobject joined13:53
rking Oh, hrm.13:53
d1b joined13:53
thiago rking: therefore, you need a local branch that is at the commit you want it to be13:53
Nevik thiago: it also means "im on the tip of a local branch"13:53
v0n joined13:54
thiago rking: you want to use the git branch command to create such a branch, then git checkout to check it out13:54
rking OK13:54
jlg13 left13:55
zheng left13:55
CrazyHorse18 left13:55
jn_ left13:56
sideone joined13:56
mikecmpbll joined13:56
rking Hrm. The git-branch manpage should mention that --set-upstream is deprecated. (The CLI does)13:57
adamben left13:57
EugenA left13:58
marc_kdab_ left13:58
marc_kdab_ joined13:59
rednaks left13:59
lacrymol1gy left13:59
bitkiller joined14:00
Nevik that man page you got linked to is not the very latest version14:01
it has been deprecated since 1.8.0 afaik14:01
tmcmahon left14:01
Nevik as long as the option is still working, that's fine14:01
GeertB joined14:01
thiago --set-upstream is a design flaw14:02
samuel02 left14:02
thiago when given one argument, it does exactly the opposite of what any sane person would want14:02
rking I'm looking at the same manpage from my git install14:03
Git 1.8.0.1.250.gb7914:03
But this is my first day on HEAD git, so maybe I should be glad I found a small spot to contribute.14:04
It'd be nice if someone could confirm if I'm correct about the manpage, though.14:04
wdouglass thiago: agreed. that functionality should just be in --track14:04
thiago rking: by the way, saying "I'm on HEAD" is redundant with Git and does not mean what you wanted to say14:05
rking: you want to say you're at the tip of a given branch, usually the development one14:05
rking thiago: Oh? How do I say that right?14:05
OK, cool.14:05
thiago rking: you're always on HEAD because HEAD is what you have checked out14:05
wdouglass lol14:06
rking A *lot* of people get that wrong, thank you for correcting me.14:06
marhaban joined14:06
rking So what's the shorthand for it?14:06
"on tip"?14:06
nioncode left14:06
rking "I'm using tip git"?14:06
Nevik on the dev branch14:06
rking Nevik: That doesn't say where on that branch one is14:06
thiago just say the name of the branch14:06
Nevik rking: naturally you would be on the tip of it14:06
unless you specify something else14:06
rking OK14:06
Nevik rking: technically, a branch only identifies a tip, heh14:06
rking So for other projects, would it be like, "I'm on tig master"?14:06
Nevik so if you wanna be nit-picky, saying youre on the branch, means your on the tip14:07
rking Cool14:07
Nevik rking: no, just "i'm on master"14:07
iamjarvo left14:07
GeertB left14:07
Nevik rking: a case in which you could be on an out-dated branch is that you havent pulled latest changes yet (i.e. remote branch has moved, but you dont know yet)14:08
nioncode joined14:08
rking Let me put it this way, can this be golfed down?: /j foosoft "Hi. I'm on foosoft's master branch…"14:08
Nevik yes14:08
that would assume that before asking the question, youve made sure you actually have the latest version of it (i.e. doing a fetch and possibly a merge)14:08
jlg13 joined14:09
Nevik or specified a commit SHA if you have a good reason not to update14:09
specifying*14:09
rking Wait, you're saying it is correct? (Not that it can be golfed down?)14:09
myx joined14:09
Nevik yeah thats correct14:09
_Vi joined14:09
Nevik it's what ive been telling you ò.ó14:09
rking But I'm asking if it can be said more briefly14:09
GeertB joined14:09
Nevik what could possibly be any shorter14:10
rking "I'm on foosoft HEAD"14:10
Nevik "i'm on master" is about as short as it gets14:10
rking Ok, so it's not necessary to say the "branch"14:10
Nevik rking: if you join a project's channel, it would be assumed you mean THEIR master14:10
SupranoMarenz14:10
Nevik rking: with master, no; it is general convention to name the main branch master, but not required14:11
also, due to the state of the english language, "master" is not often used in general conversation14:11
trungqtran joined14:11
Nevik so it should generate enough context to infer your meaning :P14:11
rideh joined14:11
rking OK. Thank you both for fixing my terminology on this.14:11
m0ltar joined14:12
Nevik sure, no problem14:12
axrfnu joined14:12
sylr left14:14
sylr joined14:14
zivester joined14:14
marhaban left14:18
Pugnax joined14:18
marhaban joined14:19
ehsan joined14:21
cagedwisdom left14:21
hellopat joined14:22
yshh left14:22
AaronMT joined14:22
kermit left14:24
mastro just curios.. If I had to create a commit message with the # symbol as first character of a line, would that be possible ? usually # are ignored14:24
adamben joined14:25
adamben left14:25
adamben joined14:25
TeckniX joined14:25
rking mastro: Hehe, under what circumstances would you 'have to' do that? But have you tried the commit -m '# …' form?14:25
freshpixel joined14:26
robustus left14:26
kermit joined14:26
rob_w left14:27
rob_w joined14:27
JaredMiller joined14:27
polymar left14:27
alunduil joined14:28
tjadc left14:28
robustus joined14:29
arkiver left14:30
geekbri joined14:30
alunduil left14:30
rideh left14:31
marhaban left14:31
thiago mastro: git commit --cleanup=verbatim14:31
JaredMiller left14:31
alunduil joined14:32
fisted left14:32
senny joined14:33
fisted joined14:33
juvenal left14:33
minusthetiger joined14:34
rgr left14:34
Guest59987 left14:34
gusnan joined14:34
kukks joined14:35
kukks left14:35
kukks joined14:35
BadProphet joined14:36
jackh left14:36
jackh joined14:36
bartek_ joined14:37
JaredMiller joined14:37
jlg13 left14:39
spuz joined14:40
i42n joined14:40
fisted left14:42
fisted joined14:42
RandalSchwartz left14:43
jn_ joined14:44
nitrix joined14:45
xiangfu left14:45
Zenopus joined14:46
mastro thiago, tnx14:47
dvsharp joined14:47
mastro rking, thiago replied me.. anyway I would never want to do that... but since many developers just use Eclipse or graphical tool to write commits (which do not strip out # lines) it may happen to find a narrow-minded team that set up as a must-follow comment structure with the bug reference written as #<number> as first word of the commit message :) I just like to be prepared if something like that ever happen to me14:48
iamjarvo joined14:49
tsdh joined14:50
o] left14:50
devsharpen left14:50
o] joined14:51
GeertB left14:51
v0n left14:52
jackh left14:52
macabre joined14:52
thiago left14:54
chaiz left14:54
juvenal joined14:56
suy left14:59
BadProphet left15:00
soee left15:00
L-Chymera joined15:02
L-Chymera hi guys, what'S wrong with git if I get this error? laptophost sci # git pull official master error: cannot open .git/FETCH_HEAD: Read-only file system15:03
suy joined15:03
ehsan left15:03
sbodo joined15:04
bremner are you perhaps on a Read-only file system?15:04
fly9 joined15:04
BadProphet joined15:05
samuel02 joined15:05
RaceCondition joined15:06
L-Chymera bremner: not that I know of, I'm logged in as root on my laprop15:07
NiteRain joined15:08
bremner network file system?15:08
normanrichards joined15:09
guampa joined15:09
acl_ joined15:09
normanrichards left15:09
OOPMan left15:09
L-Chymera bremner: evverything except the repo from where I want to pull is local15:10
ThomasLocke left15:12
Hounddog left15:12
zoned joined15:12
benbergman left15:13
vpetro joined15:13
omani joined15:14
omani I want to do backups of all my configuration files on all productive systems. I thought about git as a backup/recory tool15:14
i42n left15:14
infynyxx joined15:14
jfsthesecond joined15:15
omani like: git on / and change files. add them, and only them, in stage. and commit.15:15
NiteRain left15:15
omani then copy .git to NAS/SAN server for backup.15:15
now everytime I want to recover a system I just have to clone it into /15:15
on the system15:15
d2dchat joined15:15
normanrichards joined15:16
omani what do y'all say 'bout this idea?15:16
polymar joined15:16
minusthetiger_ joined15:16
Hounddog joined15:17
kermit left15:17
L-Chymera left15:17
dfaure joined15:17
dfaure why does "git diff ." work, but not "git diff .." ?15:18
jfs left15:18
minusthetiger left15:18
minusthetiger_minusthetiger15:18
normanrichards left15:18
benbergman joined15:18
jfsthesecond left15:18
JoeAngel_ joined15:18
wereHamster dfaure: define 'not work'15:19
jfs joined15:19
dfaure fatal: ambiguous argument '..': both revision and filename15:19
oh, I see15:19
wereHamster dfaure: are you in a subdirectory of the repository?15:19
dfaure yes15:19
git di -- .. works15:20
wereHamster dfaure: what's your git version?15:20
FauxFaux And git diff .. --15:20
dfaure 1.7.715:20
FauxFaux gets the same on 1.7.10.4.15:20
dfaure I forgot that .. also means something as a revision range15:20
skyf joined15:20
dfaure not sure what it actually means though, with nothing on either end15:20
m0viefreak left15:20
FauxFaux Quite possibly means HEAD..HEAD, which is bizarre.15:21
wereHamster maybe it got changed, because I don'tg get any error when git diff ..15:21
hafeez3000 left15:21
wereHamster with 1.815:21
FauxFaux Indeed it does.15:21
dfaure that's never going to lead to a very interesting diff :-)15:21
ok if it's fixed in 1.8 then all is well :-)15:21
RaceCondition left15:21
bremner omani: maybe look at !etckeeper15:21
gitinfo omani: etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into various package managers. http://kitenet.net/~joey/code/etckeeper/15:21
zivester left15:21
RaceCondition joined15:22
mikecmpbll left15:22
Pugnax left15:22
nkuttler left15:22
Fingolfin joined15:23
laurav joined15:23
omani bremner: thank you15:23
Pugnax joined15:23
omani this is the right tool I need15:23
barq joined15:24
strk joined15:24
FauxFaux wereHamster: dfaure: rev-parse was basically rewritten in bc5fd6d3 (v1.7.11-rc0~10^2~13), and has lots of code to deal with ".." now.15:24
fommil joined15:24
gitinfo set mode: +v15:24
fommil hi all, my git has magically started spitting this out: "fatal: The upstream branch of your current branch does not match the name of your current branch."15:24
i42n joined15:25
strk I'm in the middle of a conflict, is there a command to just pick modifications of "head" for a given file ?15:25
FauxFaux strk: git checkout HEAD path/to/file15:25
fommil I have origin, upstream and my local. Only one "master" on each.15:25
benbergman left15:25
wereHamster strk: git checkout --ours <file>15:25
kermit joined15:25
eijk left15:26
subhojit777 joined15:26
jfs left15:27
Pugnax left15:27
dfaure FauxFaux: excellent, thanks15:28
steve6 joined15:28
huoxito joined15:28
dfaure left15:28
EugenA joined15:28
omani bremner: what if I want to this etckeeper thing on a remote NAS/SAN?15:29
EugenA how to merge two branches in bare repository?15:29
bremner omani: it's just git. So if you know how to answer that question for git...15:29
BadProphet left15:29
revyd left15:29
FauxFaux EugenA: Clone it, merge them, then push the result back.15:29
revyd joined15:30
EugenA ok15:30
pansdr joined15:32
benbergman joined15:32
axl_ joined15:33
fommil left15:33
revyd left15:35
zeppo left15:36
mikecmpbll joined15:36
zeppo joined15:36
xmas88 joined15:36
xmas88 left15:37
BooK joined15:37
pansdr left15:37
gitinfo set mode: +v15:37
poolshark left15:37
tsdh left15:39
_Qman left15:40
alkino left15:40
luc_ left15:40
benbergman left15:41
unnamedwill joined15:41
maleknet joined15:42
kevwil joined15:42
tsdh joined15:43
papegaaij left15:43
GeertB joined15:44
alkino joined15:44
barq1 joined15:44
kennethreitz left15:44
maleknet left15:45
maleknet joined15:45
delirium left15:45
barq left15:46
kennethreitz joined15:47
iamjarvo left15:48
adhawkinz left15:49
gtrak joined15:49
tsdh left15:50
benizi joined15:50
maleknet left15:50
iamjarvo joined15:51
x82_nicole joined15:52
minusthetiger left15:53
pogo joined15:53
x82_nicole left15:54
ejd joined15:54
ehsan joined15:54
v0n joined15:54
polymar left15:55
fluxdude joined15:55
minusthetiger joined15:56
rchavik left15:56
hyperair left15:57
FernandoBasso joined15:59
andrewhl joined15:59
azgard left16:00
omani bremner: yes16:00
I don't know the answer yet, but I will figure it out16:00
I think I can copy the .git directory to remote machine and clone from it16:01
I just wasn't sure about whether to copy the wordking directory or just basre git16:01
bremner omani: typically remote repos like that are !bare16:03
gitinfo omani: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/16:03
cbreak-work left16:03
Marenz left16:04
Suprano joined16:04
zeppo left16:04
benbergman joined16:05
nurey_ joined16:05
joeytwiddle joined16:06
JohnBat26 left16:06
R1KRDO left16:07
marhaban joined16:07
normanrichards joined16:07
Gx4 left16:08
jn_ left16:09
ShooterMG joined16:10
tsdh joined16:10
freshpixel left16:10
Raging_Hog left16:11
tomchop joined16:11
blami_ left16:12
__20h__ joined16:12
__20h__ Greetings. I have the problem that over a cgit exported repository no tags can be pulled from. The git update-server-info is run as post-update hook.16:13
Anyone knows what I am missing?16:13
wereHamster __20h__: are the tags shown in git ls-remote?16:13
mp_ left16:14
__20h__ wereHamster, no.16:14
Only refs/heads/master and HEAD is shown.16:14
kevwil left16:15
strk left16:15
FernandoBasso left16:15
m0ltar left16:16
FernandoBasso joined16:16
flijten left16:16
kevwil joined16:17
danillonunes joined16:17
BooK I was considering using something modeled around the git object database to store "extended objects" (e.g., tree with uid/gid info for the file)16:17
m0ltar joined16:17
BooK shouldn't be a problem with loose format, since the type is a string in the header (format being "<type> <size>\0<content>")16:17
but for packs, if I understood correctly, the type is stored on 3 bits, and all16:17
values are already used16:17
benbergman left16:17
wereHamster BooK: man git-notes16:18
gitinfo BooK: the git-notes manpage is available at http://jk.gs/git-notes.html16:18
i42n left16:18
rath_ left16:18
e-dard left16:19
grundt oh, cool - you could use that to add TODOs and FIXMEs?16:19
krosenvold left16:19
BooK wereHamster: should I understand that as "store that extra info as a note attached to the tree object" ?16:21
wereHamster to any object16:21
BooK uh uh16:22
samuel02 left16:22
__20h__ wereHamster, hm, the refs/tags directory in the bare repository is empty.16:22
They are only mentioned in the info/refs file.16:22
wereHamster __20h__: don't rely on that. Use git commands, such as git show-ref or git for-each-ref16:22
kennethreitz left16:22
tomchop left16:23
BooK wereHamster: thanks, I'll do some research on notes16:23
wereHamster __20h__: you should not poke around the .git directory.16:23
tomchop joined16:23
jceb left16:23
__20h__ wereHamster, yeah, but I thought that the http pull needs some more files available.16:23
bLUEE joined16:23
gitinfo set mode: +v16:24
chuckharmston joined16:24
bLUEE PLEASE HELP!16:25
wereHamster NO!16:25
asaf joined16:25
bLUEE i had a project, and added the remote, did a pull/merge16:25
chepre left16:25
bLUEE and then all my new code disappeared16:25
then i tried to undo merge16:25
kennethreitz joined16:25
bLUEE and now i dont know what's going on :/16:26
i42n joined16:26
wereHamster I don't know either.16:26
bLUEE i commitd my work - so how do i get back to that one?16:26
thl0 joined16:26
wereHamster git log16:26
mgedmin bLUEE, do you still have that terminal open? can you pastebin the entire session (starting with pull)?16:26
bLUEE mgedmin: oh man, i cant, since the terminal window stalled and i crashed it out and opened a new one !16:27
Hounddog left16:29
joshsmith joined16:29
cakehero left16:30
mgedmin well, if you had your code committed, it's still there16:30
you just need to find it16:30
tomchop left16:30
bLUEE wereHamster: how do i page in git log ?16:30
mgedmin git reflog might help16:30
OOPMan joined16:30
bLUEE mgedmin: okay, i see my commit there..16:31
how can i get it back?16:31
mgedmin waits for experts to answer16:31
tomchop joined16:32
tmcmahon joined16:32
h0bbit left16:32
Davey joined16:32
mgedmin it'll be probably something like git reset --hard commithash, after which you should repeat your pull + merge, except more carefully16:32
xxc_michael left16:33
spuz bLUEE: try typing git reflog16:33
argentino joined16:34
spuz oh you said you found your lost commit16:34
acl_ left16:34
spuz bLUEE: are you on a personal or a shared branch?16:34
kenperkins joined16:35
bLUEE when i do git reflog i see some entries16:35
OOPMan left16:35
bLUEE http://pastebin.com/v0ub1D8W16:36
BadProphet joined16:36
bLUEE spuz: shared16:36
argentino left16:36
Bombe left16:36
FernandoBasso left16:36
bLUEE HEAD@2 is my commit, if i can get that - then thats all good :/16:36
argentino joined16:36
spuz bLUEE: ok, just type 'git reset --hard 5c27441'16:37
polymar joined16:38
tomchop left16:38
argentino left16:38
jlg13 joined16:38
bLUEE spuz: !!!!!!!!!! thank you16:39
revagomes joined16:39
eijk joined16:39
Davey left16:40
ajeffco joined16:41
spuz bLUEE: no problem. Not sure how you lost your changes though. if you merge with a branch, you should receive a conflict warning before losing any of your changes16:41
bLUEE i originally creted the project and we had been working on git repo16:41
swiety joined16:42
bLUEE then i recreated the project then added the remote and tried to push, but i did a pull/merge16:42
and then all my crap went16:42
kennethreitz left16:42
bauruine left16:42
mneorr left16:44
EugenA left16:45
svetlyak40wt left16:45
kennethreitz joined16:45
benbergman joined16:46
cakehero joined16:47
tsdh left16:47
OOPMan joined16:48
TheHaven left16:50
kennethreitz left16:50
LucasTizma left16:50
ampz joined16:52
a_L_p joined16:53
ampz left16:54
a_L_p left16:54
kennethreitz joined16:55
sylr left16:57
tomek joined16:57
Pugnax joined16:57
hafeez3000 joined16:58
kennethreitz left16:59
dankest joined17:00
Bombe joined17:00
Davey joined17:01
angelsl left17:02
psoo left17:03
kennethreitz joined17:04
torjus_ joined17:04
aselder joined17:05
aselder left17:05
aselder joined17:06
aselder left17:06
wdouglass left17:08
arietis joined17:09
jlopez left17:09
polymar left17:09
witul joined17:09
witul left17:10
tdowg12 left17:10
jlg13 left17:10
d1b left17:10
MiKom left17:10
zenx left17:10
achadwick left17:10
zeks left17:10
quazimodo left17:10
txomon|nqas left17:10
smw left17:10
karstensrage left17:10
mastro left17:10
Pieter left17:10
notfunk left17:10
jds_ left17:10
sjk left17:10
yhager left17:10
pielgrzym left17:10
eightyeight left17:10
bapa left17:10
Gizmokid2005 left17:10
c98_ left17:10
mgedmin left17:10
poseidon left17:10
heytrav_ left17:10
setmeaway2 left17:10
reikalus1kka left17:10
mattp_ left17:10
d1b joined17:10
reikalus1kka joined17:10
heytrav joined17:10
Pieter joined17:10
MiKom joined17:10
sjk joined17:10
jds joined17:10
pielgrzym joined17:10
quazimodo joined17:10
notfunk joined17:10
jlg13 joined17:10
yhager joined17:10
c98_ joined17:10
poseidon joined17:10
notfunk left17:11
achadwick joined17:11
zeks joined17:11
mattp_ joined17:11
txomon|nqas joined17:11
setmeaway2 joined17:11
notfunk joined17:11
eightyeight joined17:11
Guest43947 joined17:11
mastro joined17:11
marhaban left17:12
geekbri_ joined17:12
smw joined17:12
andrewhl_ joined17:12
bapa joined17:12
Hounddog joined17:12
mgedmin joined17:12
martinjl` joined17:13
odin_ joined17:13
mikef joined17:14
Gizmokid2005 joined17:14
x82_nicole joined17:14
Shusshu joined17:15
Shusshu left17:15
sharpobj1ct joined17:16
sharpobject left17:16
juril joined17:16
andrewhl left17:16
unreal left17:17
tjbiddle joined17:17
thomasf1021 Good afternoon, what's the best way to just the changes made to a branch since it was created? In SVN I was able to essentially say merge the changes made since branching and apply it to another branch.17:17
geekbri left17:18
martinjlowm-lapt left17:18
Quix0te left17:18
Quix0te joined17:18
kennethreitz left17:18
FauxFaux thomasf1021: "to just the changes"?17:19
wereHamster thomasf1021: git doesn't have a concept of 'a branch was created'. Or the ability to merge only selected commits from a range of commits.17:19
kennethreitz joined17:20
psoo joined17:21
unreal joined17:21
Goplat joined17:21
zenx joined17:22
infynyxx left17:22
thomasf1021 wereHamster: thanks17:22
FauxFaux: I meant "to just apply the changes"17:22
_iron joined17:22
jceb joined17:23
itatitat joined17:23
Ontology joined17:24
tdowg12 joined17:25
nitrix_ joined17:26
EugeneKay Look into cherry-pick17:26
mikef left17:27
deryni If you want all the changes on an unmerged branch the rev..rev syntax can get you that easily, or did I misunderstand something.17:29
devth joined17:29
nitrix left17:29
surfdue left17:29
tjbiddle left17:29
alkino left17:29
Desproges left17:30
asaf left17:30
mikecmpbll left17:31
kerrick joined17:31
lindenle joined17:32
surfdue joined17:32
jfs joined17:33
jfs left17:33
jfs joined17:33
aisbaa left17:33
_iron left17:34
_iron joined17:34
leeN joined17:35
LimeBlast left17:35
i42n left17:35
emankcin left17:35
psoo left17:36
grizwako joined17:36
R1KRDO joined17:36
jgomez left17:36
Serghar joined17:37
kennethreitz left17:37
nigelb left17:38
nyxynyx joined17:38
tenmilestereo joined17:38
tomchop joined17:38
tmcmahon left17:38
SBoudrias joined17:38
SBoudrias left17:39
wermel joined17:39
nyxynyx Hi I have a question: I created a branch 'v1' on my local system, and want to push the files to github, how should it be done? I tried `git branch v1` `git checkout v1` `git push --set-upstream origin/v1 v1` but i get the error mmsg saying that its not a git repo and it can't read from remote repo17:40
nigelb joined17:41
jlg13 left17:42
torjus_ left17:42
kennethreitz joined17:43
rurufufuss left17:43
Sonderblade joined17:43
Sonderblade left17:43
Sonderblade joined17:44
mishok13 left17:44
kevwil left17:45
johnanderson joined17:45
mneorr joined17:45
john_anderson left17:45
johnandersonjohn_anderson17:45
EugeneKay nyxynyx - 'git push -u origin v1`17:46
nyxynyx works thanks!17:46
EugeneKay You just had the wrong arguments is all17:46
giallu left17:46
cirwin joined17:46
jlg13 joined17:47
Jippi joined17:47
itatitat left17:48
john_anderson left17:49
mikef joined17:50
dpino left17:51
etcetera joined17:52
bux left17:52
m0viefreak joined17:52
kerrick left17:54
alexim joined17:55
jlg13 left17:55
alexim left17:55
axl_ left17:56
spuz left17:56
kennethreitz left17:56
jlg13 joined17:56
metcalfc joined17:56
nickoe_ joined17:56
letharion left17:57
axl_ joined17:57
JohnBat26 joined17:58
JohnBat26 left17:58
JohnBat26 joined17:59
kennethreitz joined17:59
nioncode left18:00
dgtlmoon left18:00
dermoth|home joined18:01
thl0 left18:02
rue_XIV left18:02
alunduil left18:03
dlam joined18:03
tjbiddle joined18:03
kennethreitz left18:04
bnovc left18:04
lresende joined18:06
tomchop left18:07
kennethreitz joined18:07
caddoo left18:08
bibinou joined18:08
Sigma joined18:09
metcalfc left18:11
dlam left18:11
adamben left18:11
surfdue left18:12
ergZay left18:13
axl_ left18:13
surfdue joined18:13
senny left18:14
kerrick joined18:15
adamben joined18:15
adamben left18:15
adamben joined18:15
suy left18:15
rgr joined18:16
dvide left18:16
d3c joined18:16
bronson left18:16
bitkiller left18:17
sluther joined18:17
asaf joined18:18
bitkiller joined18:20
m0ltar left18:20
Squarism joined18:21
m0ltar joined18:22
letharion joined18:24
m0viefreak left18:25
hwrd|work joined18:25
hwrd|work left18:27
i42n joined18:27
narfnarfnarf left18:27
timj left18:27
timj1 joined18:27
subhojit777 left18:30
achadwick left18:30
rednaks joined18:31
brayn joined18:34
las joined18:34
las good day. i just built 1.8.0.1 on a PowerPC Mac, and running "make test" reveals 1 failed test. should i care?18:34
EugeneKay No.18:35
PerlJam las: if it's the test for "git clone" or "git checkout", yes ;)18:35
bodom left18:35
las *** t1402-check-ref-format.sh *** => not ok - 31 ref name 'heads/foo' is invalid18:35
dankestdankest|away18:35
EugeneKay Isn't there a !packaged version available? :-p18:36
gitinfo Unless you have a specific technical need for the "latest and greatest" you should go with a packaged version. Compiling and installing your own is not something that we will walk you through or troubleshoot (though it *is* fairly easy for developers with GNU/Linux experience).18:36
krosenvold joined18:37
las EugeneKay: not for PPC Macs running Tiger18:38
Aikar left18:39
EugeneKay You poor git. Get a job; buy computer manufactured in the right decade.18:39
robotmay left18:39
las EugeneKay: err, excuse me18:39
EugeneKay :-p18:39
ChrisBorgia joined18:39
EugeneKay In seriousness though, that doesn't sound like a terribly fatal issue. It's probably a borked test with 1.8.x18:40
bauruine joined18:40
milki well, if things break. you could always post to the mailing list18:40
im sure there are more powerpc users there18:40
EugeneKay: i have a powerpc powerbook too!18:40
tomek left18:40
milki compiling anything for it is a pain18:40
EugeneKay milki - I have a shotgun you can borrow18:40
poisond left18:40
milki haha18:40
it looks nicer than my lenovo laptop though18:41
poisond joined18:41
milki and the battery lasts longer!18:41
cakehero left18:41
jlg13 left18:41
las wow, no make uninstall ? seriously?18:41
milki a lot of projects dont come with uninstall18:41
buibex joined18:42
EugeneKay --prefix=/usr/local helps18:42
Zenopus left18:42
las milki: but i thought this was a new decade :)18:43
milki laziness will never be solved with time18:43
las EugeneKay: well, that's the thing. i used makefile prefix=/usr/local as mentioned in INSTALL. it appeared to install into ~18:43
milki otherwise, we'd be out of jobs18:43
wermel left18:44
EugeneKay I've honestly never touched git's build scripts.18:44
las EugeneKay: me neither, until today. i had a package version of 1.5 but that started to have issues today18:44
cirwin left18:44
Bootstrapper joined18:44
les_sylvains joined18:45
nyxynyx left18:45
tomek joined18:47
tomek left18:47
tomek joined18:47
tomek left18:47
tomek joined18:47
hwrd|work joined18:49
etcetera left18:50
blami left18:51
otherj joined18:51
otherj when i use git rm, does that just remove the file from what git tracks going forward, or does that remove the file from previous commits as well?18:51
FauxFaux Just from going forwards.18:52
otherj ok, thanks. I was just doing that for a bunch of files i merged into one and realized it would be a bummer if i lost the history of them before merging :P18:53
you're aces FauxFaux18:53
absynce joined18:53
Adget joined18:53
rednaks left18:54
bronson joined18:54
TeamColtra left18:54
etcetera joined18:55
fly9 left18:55
benbergman left18:55
etcetera left18:56
otherj left18:56
blami joined18:57
EugeneKay otherj - remember that git tracks trees, not files. All you're doing with git-add/rm/etc is creating new trees based upon your filesystem.18:57
bux joined18:57
EugeneKay Unless you rewrite your history it isn't going anywhere18:57
Serghar left18:57
las left18:59
cmn it's also the whole reason you use version control18:59
babilen left18:59
zenx left18:59
etcetera joined18:59
jayallen joined19:01
msch joined19:02
Leeol2 left19:02
Leeol joined19:02
benbergman joined19:03
Leeol Question.. if you use `git update-index --assume-unchanged` on a file, does that get stored and shared to other repos properly? Or is that a local repo only setting?19:03
brycec^_^19:03
rgsteele left19:03
^_^brycec19:04
TeckniX left19:04
bibinou left19:04
cakehero joined19:04
metcalfc joined19:04
TeckniX joined19:05
Praise-Praise19:05
dgtlmoon joined19:06
cakehero left19:07
drizzd Leeol: local only, index only19:07
Leeol drizzd: Hmm, i was afraid of that. Do you recommend anything similar that *is* tracked? For skeleton files / config files / etc19:08
Quix0te left19:08
Quix0te joined19:08
drizzd !config19:08
gitinfo [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas19:08
i42n left19:08
thierryp left19:09
Leeol So yea, nothing really :/ (aside from not tracking it at all)19:09
msch hi, got a question about merging two repositories. So I have to repos A and B and I want to merge them into a new repo C where the contents of A is in subdir A and the contents of B is in subdir B. so far so good, i can do that. now i also want to rewrite the history of these repositories so that i can do git log / blame without --follow. i can do that too.19:09
drizzd see also https://git.wiki.kernel.org/index.php/GitFaq#How_do_I_tell_git_to_ignore_tracked_files.3F19:09
msch but i have a lot of branches, how can i preserve the different branches so that the tree of branches still looks the same?19:10
drizzd Leeol: no, there is no way to configure git to automatically globally ignore changes to tracked files19:10
nickoe_ left19:10
msch e.g. branch master and branch feature-x in repo A should later be master and feature-x in repo C but the commits in feature-x should still be on top of master19:10
drizzd msch: git filter-branch --all19:11
IridiumScaffold joined19:11
msch drizzd: ah so that doesn't create two completely different commit trees for each branch?19:12
drizzd no19:12
msch cool19:12
thanks19:12
drizzd the histories of the two repos are still separate, of course. No way to fix that.19:12
dankest|awaydankest19:12
adamben left19:12
bronson left19:13
msch drizzd: yeah, but then i add them both to one repo as remotes, fetch from them and git merge. right?19:13
drizzd yes19:13
infynyxx joined19:13
normanrichards left19:14
shruggar left19:14
travisgriggs joined19:15
d3c left19:15
aetcore joined19:16
i42n joined19:17
x74beers joined19:17
maleknet joined19:18
wilsonj joined19:18
travisgriggs a colleague and i are trying to learn (somewhat unsuccessfully) to work together using git. we have a smallish project, a makefile and about 20 .c/.h files. i'm making some local changes in a .c file. he skypes me and tells me he made a change to the makefile. i go to do a pull, but get told that "Your local changes to the following files would be overwritten by merge:". so i assume he changed more than just the makefile. does this mean i shouldn't be usin19:18
gitinfo set mode: +v19:18
wilsonj anyone good with gitolite conf files?19:18
nurey_ left19:19
dvsharp left19:19
john_anderson joined19:19
wilsonj http://pastie.org/5454284 - i am part of the buildmasters group and I want to be skipping the VREF check, which is why I have RW+ =@buildmasters above the VREF, but the VREF is still running19:20
kennethreitz left19:20
cmn travisgriggs: it means that someone at some point pushed some history which modifies a file you have also modified locally but not committed19:21
maleknet left19:23
Vile left19:23
kennethreitz joined19:24
travisgriggs cmn: yes i get that, he changed the same.c file that i did. the question is what is the standard work flow for dealing with that. should i commit first then pull?19:25
cmn travisgriggs: some history meaning history you don't have locally19:25
jpieper joined19:25
flijten joined19:25
cmn you don't merge until you need to19:25
is there some big reason why you need that makefile change?19:25
jceb left19:25
cirwin joined19:25
deryni wilsonj: I think you probably need an extra VREF pass line for that not a regular rule for that (no I'm not at all sure).19:26
travisgriggs yes, i want it. he added a feature i asked him to add to it, so i could see code space listings, and when i get it, i can do what i need to19:26
cmn but how is that related to the change you were making without it?19:26
wilsonj ok thx, i'll try that19:26
thl0 joined19:28
cmn or rather, is his change a necessary prerequisite for you to commit your changes?19:28
Xethron left19:28
travisgriggs in the .c file you mean? i'm changing main.c, i needed his makefile change to emit code space values, so that i could get a feel for how my changes are going to pan out from a code space pov. is the real problem that he just committed all of his changes, instead of being more structured/controlled about it?19:29
Tegi left19:29
cmn there is no way to know the anwer to that question19:29
look at what he did19:29
travisgriggs i know what he did, i can ask him. i think i'm not communicating my question clearly, sorry :(19:30
cmn you don't need to ask anything19:30
look at the history he pushed up19:30
then you can have a definitive answer of what's there19:30
d3c joined19:31
dvsharp joined19:32
dankest left19:32
travisgriggs in an svn world, i would have said "hey Dan, can you commit your makefile changes", he would have svn ci'd and thrown some of his in progress tweaks to main.c along for the ride. i would have then done an svn up and it would have given me a new makefile and merged his main.c changes in with mine (provided it could be done so without a conflict). i'm trying really hard not to bring that kind of mental baggage with me, but i'm trying to figure out what the c19:32
dankest joined19:33
cmn your messages are getting cut19:33
emankcin joined19:33
travisgriggs i'm trying really hard not to bring that kind of mental baggage with me, but i'm trying to figure out what the common commands one uses to get a similar fluid workflow between the two of us19:33
cmn if he committed to main.c and you've local changes, then that'll be why git is telling that's what happened19:33
milki travisgriggs: !vcbe might be good19:34
gitinfo travisgriggs: 'Version Control By Example' gives a good overview of the different VCSes available. The author will even mail you a dead-tree copy for free. http://ericsink.com/vcbe/19:34
bux left19:34
polymar joined19:34
travisgriggs i just want it to merge the two of them like svn up would have :( i don't want it to tell me there are changes. i knew that already19:34
cmn then either commit your changes or stash19:35
maleknet joined19:35
cmn and merge his changes when you're ready to proceed19:36
^Mike joined19:38
ChrisBorgia ChrisBorgia: <- Digging the new iTunes19:38
cmn you can rebase the latest commit if you really feel that his change should happen before yours19:38
^Mike when I do git blame in a git-svn repo, every line is listed as "not committed yet". I gather this is because of something finnicky happening with line endings - how can I see the real blame instead?19:38
thiago_ joined19:39
^Mike in .gitconfig, I have core.autocrlf=input - should I be using something else (on a linux machine)?19:39
cmn ask it to start at history, say HEAD19:40
ryez left19:40
benbergman left19:40
cmn rather than from the workdir19:40
nitrix_ left19:40
cakehero joined19:40
^Mike excellent, thanks!19:41
cakehero left19:41
kennethreitz left19:42
jceb joined19:42
chimay left19:42
kennethreitz joined19:43
torjus_ joined19:43
nitrix_ joined19:43
geekbri_ left19:44
kerrick left19:45
diminoten joined19:47
torjus_ left19:47
maleknet left19:48
jayallen left19:48
minusthetiger left19:48
mikeit joined19:48
kerrick joined19:48
Adget left19:49
daniel_b joined19:49
Adget joined19:49
diminoten left19:49
diminoten joined19:49
d3c left19:49
daniel_b Is there a way to have git clear the terminal screen between hunks in git add --patch?19:49
minusthetiger joined19:50
hpa left19:50
hpa joined19:50
dankestdankest|away19:50
hafeez3000 left19:51
mikeit left19:51
zoned left19:52
Adget1 joined19:52
zoned joined19:52
thiago_thiago19:52
phlipper left19:53
Superlokkus joined19:54
Superlokkus left19:55
polymar left19:55
Adget left19:55
axl_ joined19:57
^Mike daniel_b: I've been asking for that for years, and I think it is still not possible19:58
Chillance joined19:59
jso- joined19:59
daniel_b Bummer.19:59
^Mike Truly.19:59
FauxFaux It's a shell or perl script, just patch it on live20:00
geekbri joined20:01
cmn it's perl, print "<whatever ^L is>" should do it20:01
j416 joined20:01
dc5ala left20:01
dvsharp left20:02
towski joined20:02
tplaner_ joined20:02
pmdarrow left20:02
absynce left20:02
mneorr left20:04
benbergman joined20:04
Fingolfin left20:04
infynyxx left20:04
Samual joined20:04
buibex left20:06
laurav left20:06
les_sylvains left20:07
revagomes left20:07
hwrd|work left20:08
kennethreitz left20:09
dankest|awaydankest20:11
shruggar joined20:12
Chaser_ left20:12
kennethreitz joined20:12
tvw left20:13
rgr left20:13
nioncode joined20:13
simesy joined20:13
infynyxx joined20:14
JohnBat26 left20:14
dvsharp joined20:14
pandeiro joined20:14
alansaul joined20:14
Vile joined20:15
shruggar left20:16
Iuz joined20:17
rgr joined20:17
mikeit joined20:17
geekbri left20:18
shruggar joined20:19
BD- joined20:20
BD- left20:20
Iuz Where is the SSH keys my git is using to try and connect with github on my system and where can I reset them?20:20
hinst left20:20
cmn wherever your ssh client puts and/or expects them; on unixy systems, under ~/.ssh/20:21
vpetro Iuz: ~/.ssh?20:21
Iuz on my user ~ right ?20:22
FauxFaux Obviously not, as you just checked and they're not there.20:22
vpetro /home/your_user_name/.ssh/20:22
Squarism left20:22
mneorr joined20:22
cmn on some systems, sure20:22
cagedwisdom joined20:22
Iuz yeah, there was nothing there20:22
cmn which is why we use ~/ or $HOME20:22
BD- joined20:22
vpetro what system are you on?20:22
Squarism joined20:22
Iuz now I mv'd id_rsa there20:23
and Its still not working20:23
FauxFaux What?!20:23
cmn !doesnt20:23
gitinfo [!doesntwork] Sorry to hear it doesn't work. What happened? Did it fall asleep on your couch, with your sister? Eat your homework? What did you want it to do? What happened instead? Please be specific!20:23
FauxFaux Please ask your real question.20:23
cmn this is also a ssh issue, not a git one20:23
FauxFaux Hint: It's "I'm trying to connect to github, but it's not using my keys at all."20:23
Oh god why does this make me so angry. Off I go again.20:24
FauxFaux left20:24
shruggar left20:24
cmn also notice that reset is not something you do with ssh keys20:24
Iuz Why bother taking the time to do that? Im only asking a question here20:24
did I call his nickname ?20:25
batrick left20:25
cmn you're not doing it, though20:25
you're dancing around the real issue20:25
you haven't explained the actual problem you're trying to solve20:25
m0ltar left20:25
vpetro you could also try to generate a new key-pair and see where it written20:25
Iuz well, I came around having tried to put my keys on /.ssh/ and they did not work20:25
so I asked where was the dir that git used to connect with github20:26
Serghar joined20:26
__20h__ left20:26
haarg git just runs ssh. it uses whatever ssh uses.20:26
Iuz and thats it, you guys answered that20:26
cmn that is not a real question, either20:26
chris2 left20:26
giallu joined20:26
cmn git doesn't use any dir to connect to github20:26
if you're having ssh issues, try to troubleshoot that, but you're mixing a lot of things and not providing information about what you're doing20:27
m0ltar joined20:27
Squarism left20:27
AdrienBrault joined20:27
Iuz http://pastebin.com/GhSpJHrg20:28
can you give me a direction to where the problem might be?20:28
SamualTwat20:28
JoeAngel_ left20:28
TwatTwatual20:28
cmn your ssh client isn't providing the right key20:29
shruggar joined20:29
vpetro Iuz: try this: ssh -T [email@hidden.address]20:30
cmn ask in an openssh forum or look at the github help pages which show some help20:30
etcetera left20:30
Nevik you probably just have the wrong key entered on github (wild guess)20:30
batrick joined20:30
Iuz vpetro, Permission denied (publickey).20:31
vpetro Iuz: well, here is the process for setting up ssh keys with github: https://help.github.com/articles/generating-ssh-keys20:31
Twatual left20:31
Samual joined20:31
cmn repeating the error doesn't help; go seek ssh support20:31
etcetera joined20:32
mneorr left20:32
cstephens4 joined20:32
h0bbit joined20:33
chris2 joined20:33
_Vi left20:34
dankestdankest|away20:35
tdowg12 left20:36
AdrienBrault left20:36
mneorr joined20:36
kerrick left20:36
Adget1 left20:38
Davey left20:38
Davey joined20:40
cstephens4 left20:41
cstephens4 joined20:41
tplaner_ left20:41
arietis left20:41
BD- left20:41
tdowg12 joined20:41
lresende left20:42
tdowg12 left20:42
tdowg12 joined20:43
lresende joined20:43
Sigma left20:43
marhaban joined20:45
cwillu_at_work how do I update the current branch and index to a different branch, without touching the working tree at all?20:46
tdowg12 left20:46
cwillu_at_work (i.e., pull, without touching the working tree)20:46
(first person to say git stash gets a wet fish across the face :p)20:46
cirwin git reset --mixed <other-commit>20:46
infynyxx left20:47
cwillu_at_work investigates20:47
cirwin man git-reset20:47
gitinfo the git-reset manpage is available at http://jk.gs/git-reset.html20:47
TheJH joined20:47
cirwin there's quite a few modes20:47
I usually try to use --keep20:47
kerrick joined20:47
cirwin which maintains the current diff, rather than the actual current working tree20:47
cakehero joined20:47
tdowg12 joined20:47
fly9 joined20:48
cwillu_at_work huggles cirwin, and puts the fish where it belongs20:48
tdowg12 left20:48
psoo joined20:49
TeckniX left20:49
TeckniX joined20:49
cirwin wow, huggling and fish-slapping on irc; are you a wikimedian?20:49
metcalfc left20:49
cmn how is that like a pull?20:50
cwillu_at_work no, but I did commit from a holiday-inn express last night20:50
cmn, like how a git pull is like a git fetch + git merge20:51
this was a git fetch + git reset20:51
cmn the point of pull is the merge20:51
Milossh left20:51
cwillu_at_work which will be happening, very carefully, thank you very much20:51
rideh joined20:52
les_sylvains joined20:52
Gizmokid2005 left20:52
dankest|awaydankest20:54
metcalfc joined20:54
les_sylvains left20:54
jayallen joined20:55
mikeit left20:56
Ryback_ left20:56
Dweezahr left20:56
Dweezahr joined20:57
etcetera left20:57
danillonunes left20:59
lacrymology joined20:59
danillonunes joined20:59
jceb left21:00
thierryp joined21:00
etcetera joined21:00
bedouin joined21:01
infynyxx joined21:01
Davey left21:02
Leeol left21:02
cstephens4 left21:02
thierryp left21:03
v0n left21:03
Gentlecat joined21:03
yshh joined21:04
benbergman left21:04
TheJH left21:04
hwrd|work joined21:04
shruggar left21:05
nyxynyx joined21:06
Gizmokid2 joined21:07
x74beers left21:07
imrobert joined21:07
erichynds left21:09
dankestdankest|away21:09
GeertB left21:09
super8 joined21:09
nurey joined21:10
TeckniX_ joined21:11
psoo left21:11
TeckniX left21:11
TeckniX_TeckniX21:11
benbergman joined21:12
axl_ left21:12
Gizmokid2 left21:12
s0ber_ joined21:13
Leeol joined21:13
tvw joined21:13
skyf left21:14
s0ber left21:15
s0ber_s0ber21:15
axl_ joined21:16
v0n joined21:18
andrewhl_ left21:18
opus joined21:19
Leeol left21:19
Synthead joined21:20
simesy left21:20
barneybook left21:21
marthinal left21:22
marhaban left21:22
barneybook joined21:22
juril left21:23
R1KRDO left21:23
marhaban joined21:23
etcetera left21:24
jayallen left21:26
_Vi joined21:26
nurey left21:27
_iron left21:27
martinjl` left21:28
otherj joined21:29
nyxynyx left21:29
Goplat left21:30
Goplat` joined21:30
pandeiro left21:30
otherj left21:31
wuddigel joined21:32
brayn left21:32
dfaure joined21:32
alansaul left21:33
dfaure how to git blame a file that moved, to see things as they were before the move?21:33
git blame f929f67b~ kiconloader.cpp doesn't work, with f929f67b the commit that moved the file21:34
decasm joined21:34
opus left21:35
ergZay joined21:35
cirwin git blame -C21:35
wuddigel left21:35
dfaure works somewhat, with -M -C -C, but can't pass an older revision as param to go back in time....21:38
lresende left21:39
cirwin dfaure: git blame <revision>:<file>21:39
juril joined21:39
cirwin or <revision>^:<original-file>21:39
BiggFREE joined21:40
h0bbit left21:41
Leeol joined21:41
cmn yes, you can pass an older version21:42
just pass it git blame <flags> <commit> -- <file>21:42
i42n left21:43
Sonderblade left21:43
BiggFREE left21:45
juril left21:46
elliottcableRangeError21:47
jimmyeatworld joined21:47
lindenle left21:49
jayallen joined21:49
Guest75728 joined21:49
lindenle joined21:50
bubbles10101 left21:50
bubbles10101 joined21:50
dfaure cmn: with the current or old path to the file?21:50
cmn whichever path you want to look at that commit21:51
Putr left21:51
dfaure ok, old path, works.21:51
amazing that the "--" is necessary21:51
wilsonj left21:51
cmn it's not21:52
super8 left21:53
wuddigel joined21:53
wuddigel left21:53
glennpratt left21:54
cirwin it is if you're accessing the file before the latest rename21:55
glennpratt joined21:55
lindenle left21:56
TeckniX_ joined21:56
dfaure cmn: I get errors without it21:56
TeckniX left21:56
TeckniX_TeckniX21:56
cmn namely?21:56
Putr joined21:57
juril joined21:57
brabo left21:57
RangeErrorelliottcable21:58
Guest75728 left21:58
brabo joined21:59
ajeffco left21:59
alfadir left21:59
Blue0ctober joined21:59
WinstonSmith left21:59
Blue0ctober left22:00
freeed left22:00
benbergman left22:01
boombatower joined22:01
shruggar joined22:01
_Vi left22:01
WinstonSmith joined22:02
metcalfc left22:02
dfaure cmn: git blame 4f57a80b~ kiconloader.cpp22:02
fatal: cannot stat path 'kdecore/4f57a80b~': No such file or directory22:02
with -- it works.22:02
cmn that's very weird22:02
dfaure but it's all sorted out now, I traced the orig code finally, through 4 or 5 moves :)22:02
AdrienBrault joined22:03
eijk left22:03
eijk joined22:03
_Vi joined22:04
iamjarvo left22:04
jcao219 joined22:05
jfs left22:06
R_Macy joined22:06
FernandoBasso joined22:06
cannonball left22:07
psoo joined22:07
mikef left22:07
dankest|awaydankest22:07
bartek_ left22:08
benbergman joined22:08
rob_w left22:17
mel- left22:17
shruggar left22:17
etcetera joined22:18
metcalfc joined22:18
sebrock left22:19
sbodo left22:22
deryni If git can't figure out that you gave it a filename (because it can find the file) it tries to look it up as a ref I believe. You need -- to force it to think of it as a file. Or something like that.22:22
thiago correct explanation22:23
flijten left22:24
normanrichards joined22:24
wereHamster dfaure: this kind of history archaeology is easier with gitk22:25
opus joined22:25
swiety left22:25
cmn files always go after revisions, the problem is that it's treating a revision as a path, not the other way around22:25
steve6 left22:26
wereHamster you can click an line and it takes you to the commit which last modifies it, you don't have to copy sha's around on the commandline and such..22:26
hoschi left22:26
hellopat left22:26
wereHamster and it has a 'show origin of this line' option22:26
kerrick left22:27
leeN left22:28
kerrick joined22:28
pmdarrow joined22:29
pmdarrow left22:29
deryni Ah, true. The failure is the other direction. You need to force it to interpret the rev as a rev there apparently.22:30
sideone left22:30
m0ltar left22:31
Gizmokid2005 joined22:31
simesy joined22:31
BadProphet left22:31
chuckharmston left22:31
Pugnax left22:32
m0ltar joined22:32
BadProphet joined22:32
minusthetiger left22:33
tbrock joined22:33
tylerwillingham joined22:34
Hounddog left22:34
OOPMan left22:34
tylerwillingham Is there any sort of script that I can install that can post a message in an IRC channel any time someone pushes a new set of commits?22:34
lavamanlavaman_afk22:34
cirwin tylerwillingham: are you using github?22:34
there's a builtin service hook for that22:34
tylerwillingham cirwin: no, there are all hosted on our work servers22:35
cirwin bad luck, there are probably scripts you can steal off the internet22:35
simesy left22:35
tylerwillingham cirwin: i've been trying to look but perhaps i'm not entering worthwhile keywords… or no one has anything22:35
we have project-specific IRC channels at work and it would be really nice if we were able to be notified in the IRC channel whenever someone pushes a changeset22:36
guns joined22:36
bitkiller left22:36
wereHamster tylerwillingham: http://www.catb.org/esr/irker/22:37
marhaban left22:37
tylerwillingham wereHamster: hero22:38
etcetera left22:38
jcao219 left22:38
yakko joined22:39
RenJuan joined22:41
SirCmpwn left22:41
Serghar left22:41
SirCmpwn joined22:41
RenJuan you can pull a single file can't you?22:41
EugeneKay man git-grep22:42
gitinfo the git-grep manpage is available at http://jk.gs/git-grep.html22:42
sgambino left22:42
resmo_ left22:43
bitkiller joined22:43
RenJuan y or n would have worked better22:43
wereHamster RenJuan: no22:44
dfaure deryni: but why would git blame take two revs?22:44
RenJuan wereHamster, ty22:46
project2501a left22:47
JaredMiller left22:47
lresende joined22:48
berserkr left22:48
TeckniX left22:49
dfaure left22:49
TeckniX joined22:50
FernandoBasso left22:50
jarred_ joined22:51
EugeneKay I HATE SUBMODULES22:51
deryni Yeah. I don't think I understand that blame behaviour.22:52
robustus left22:53
TeckniX left22:54
jokajak left22:55
v0n left22:55
rcu joined22:56
madewokherd joined22:56
BD- joined22:56
axl_ left22:56
BD- left22:56
metcalfc left22:57
thiago left22:57
marhaban joined22:57
jokajak joined22:57
SJr left22:58
ChrisBorgia left22:58
infynyxx left22:59
SJr joined22:59
macabre left23:01
_Vi left23:02
smaddock left23:03
infynyxx joined23:03
metcalfc joined23:04
Blue0ctober joined23:05
Blue0ctober left23:05
Blue0ctober joined23:05
Blue0ctober left23:05
Blue0ctober joined23:06
nitrix_ left23:08
zivester joined23:09
Raydiation joined23:10
j416 left23:10
Raydiation how can i undo a cherry-pick23:10
im getting tons of warning: LF will be replaced by CRLF in tests/enable_all.php.23:10
The file will have its original line endings in your working directory.23:10
brokenladder joined23:10
babilen joined23:10
ircmouser left23:10
simesy joined23:11
Raydiation simply git reset --hard HEAD?23:11
MrNibbles left23:11
AdrienBrault left23:11
brokenladder Is there a convention I can follow with ssh identity files so that ssh will try to use an identity matching the current github.user or something to that effect?23:11
lresende left23:12
xrq joined23:13
trungqtran left23:13
myx left23:13
daniel_- joined23:13
MrNibbles joined23:14
cirwin brokenladder: add to your .ssh/config23:14
myx joined23:14
Davey joined23:15
tylerwillingham left23:15
garrys_game_ left23:16
brokenladder that doesn't work.23:16
garrys_game_ joined23:16
ketas left23:16
actel left23:16
brokenladder they are all password protected so it needs to know which one to use.23:16
pl0sh__ joined23:16
ketas joined23:16
brokenladder are you saying it will pick the right one based on user.password?23:16
cirwin brokenladder: you can set up aliases for hosts in your ssh config23:16
actel joined23:16
cmn you tell it which one to use23:17
cirwin and then use those aliases in your git remotes23:17
cmn they're all for the same user, git@23:17
brokenladder no, we use a "git pair" utility.23:17
if i'm pairing with jason, i'd type "git pair clay jason"23:17
the user.name would then be "Clay Smith and Jason Doe"23:17
jayallen left23:18
EugeneKay git.... pair?23:18
brokenladder yes. for pair programming.23:18
you want to commit as the pair.23:18
this is something Pivotal Labs does.23:18
EugeneKay Ahh. Split brain syndrome23:18
brokenladder ?23:18
cirwin brokenladder: add two remotes23:18
asakura left23:19
EugeneKay brokenladder - https://bitbucket.org/spooning/ ;-)23:19
brokenladder this is easy if you just have a single ssh key per machine, and you add it to a single github account called something like "workstation"23:19
haarg you can tell it to use an ssh wrapper and have that wrapper decide what key to use based on some criteria23:19
jarred_ left23:19
brokenladder but at Change.org, we want to let each user add a Change-specific key to his github account, that is on all machines and requires a password.23:19
i want to automate all this..23:19
using Chef and Soloist.23:19
jarred_ joined23:19
_Vi joined23:20
PacketCollision joined23:20
Raydiation left23:20
brokenladder haarg, yeah, i had thought of that. i think it's $GIT_SSH you set right?23:21
cirwin brokenladder: it doesn't really matter who pushes the commits — providing they have the committer and author on the commits23:21
brokenladder it certainly matters who has access to our repo.23:21
rideh left23:21
cirwin if you're going to put the password for all users on each machine, then per-user access control is useless anyway?23:23
brokenladder the password won't be on each machine.23:23
PacketCollision I'm trying to set up a deploy script as a post-receive hook, it works when someone pushes a single branch but when two branches are pushed, only the first one is handled by my script. I'm using "while read oldrev newrev refname; do; ... ;done" which I thought would work. Any thoughts?23:23
pantsman left23:23
BadProphet left23:23
brokenladder each user will have his private key on each machine he wants to use, but it will be password protected.23:23
psoo left23:23
cirwin brokenladder: ok23:24
kermit left23:24
tenmilestereo left23:25
brokenladder i'm open to other ways of implementing this. it's tricky. pivotal labs just tends to use one private key per machine, but an engineer could copy those private keys to his laptop, get fired, and....23:25
vpetro left23:25
jarred_ left23:26
cirwin brokenladder: you'll never solve that problem23:26
just trust people23:26
kermit joined23:26
brokenladder well, you can certainly solve that problem.23:26
you make sure that each dev has his own private key.23:27
opus left23:27
cirwin the default private key encryption for ssh is not very secure23:27
senior75151 left23:27
brokenladder you can set an arbitrarily high key size.23:27
Chillance left23:28
glennpratt left23:28
cirwin just runs an offline password guesser on your private key files23:28
cirwin unless you're using pbkdf2 already?23:28
brokenladder surely not.23:28
tinti left23:29
glennpratt joined23:29
danillonunes left23:29
jarred_ joined23:29
melder left23:30
jokajak left23:30
jokajak joined23:31
hotovson left23:31
senj joined23:32
jokajak left23:32
Element9 left23:32
nowhere_man_ left23:33
jokajak joined23:33
project2501a joined23:33
project2501a left23:34
Goplat` left23:34
Goplat joined23:34
senior75151 joined23:34
dragon3_ joined23:35
Blue0ctober left23:35
nowhere_man joined23:35
Jippi left23:36
marhaban left23:37
hyperair joined23:37
guns left23:37
metcalfc left23:38
deiu joined23:38
deiu Hello23:38
gitinfo deiu: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.23:38
deiu Does anyone know how to merge changes from the main branch into a different one?23:39
I've tried to do 'git checkout branchname' and then 'git merge main', but it doesn't work23:39
hotovson_ joined23:40
rideh joined23:40
jokajak left23:40
deryni master not main?23:40
simesy left23:41
txomon|home joined23:41
frogonwheels joined23:41
jokajak joined23:41
ergZay left23:42
deiu ah yes, silly me23:42
thanks! :)23:42
jokajak left23:43
dragon3_ left23:43
jokajak joined23:44
CrazyHorse18 joined23:44
martinjlowm-lapt joined23:49
nioncode left23:49
wereHamster "But it doesn't work" - The Greatest Thing (tm) ever said on IRC.23:49
cirenyc joined23:49
cakehero left23:51
rchavik joined23:51
rchavik left23:51
rchavik joined23:51
simesy joined23:54
hyperair left23:54
RaceCondishun joined23:57
jdunck joined23:58
m0viefreak joined23:59
jayallen joined23:59
deiu left23:59

Logs Search ←Prev date Next date→ Channels Documentation