IRCloggy #git 2014-01-23

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.

2014-01-23

grawity it's still useful to find out where someone else screwed it up00:00
thiago joined00:00
skorgon left00:00
Exancillatus joined00:00
tbmiller_ left00:01
xiong It's your fault.00:01
halu joined00:01
lavaman left00:01
cagedwisdom joined00:02
grawity it's not my fault and `git blame` can back me up on that00:02
Dreadnaught joined00:02
xiong :)00:02
jnoon left00:02
xiong It's a hardware problem.00:02
johnkevinmbasco joined00:02
gelardi_ left00:03
LeShadow left00:03
WaReZ left00:03
elliottcableELLIOTTCABLE00:03
infynyxx left00:04
WaReZ joined00:04
skorgon joined00:04
CKyle joined00:04
tang^ left00:05
halu left00:05
jperry joined00:07
xSmurf left00:07
nZac left00:10
skorgon left00:10
ben_alman joined00:10
ferreum joined00:11
scarabx joined00:11
Kayra left00:12
MetalMatze joined00:13
halu joined00:14
john2x joined00:15
Nizumzen joined00:15
ben_alman left00:15
mribeirodantas joined00:16
blinkdesign left00:17
boombatower left00:17
el3ctron_ joined00:17
ferreum left00:18
Exancillatus left00:18
Norm_ left00:21
primitive left00:22
aubreypw_ left00:22
guampa_ joined00:22
keyrage joined00:22
aubreypwd joined00:22
guampaGuest6241000:23
guampa_guampa00:23
makubi left00:23
dermoth_dermoth|home00:24
Guest62410 left00:24
skorgon joined00:25
makubi joined00:25
alexlindenlevy joined00:27
hobodave left00:27
hobodave joined00:27
hobodave left00:28
hobodave joined00:28
githogori joined00:28
cads joined00:29
lindenle left00:29
SocalNick_ left00:29
skorgon left00:30
SKYRAN joined00:30
Fandekasp left00:30
EngierkO joined00:30
zz_karupanerurakarupanerura00:31
ambodi joined00:33
standyro1 left00:34
dyng joined00:34
skorgon joined00:34
bhldev joined00:34
SKYRAN left00:34
sohail joined00:34
sohail left00:34
sohail joined00:34
PhearTheCeal joined00:35
PhearTheCeal left00:35
PhearTheCeal joined00:35
amcsi left00:36
thiago left00:36
ojacobson joined00:37
decotii left00:37
madewokherd left00:37
[emmajane]emmajane00:37
ojacobson left00:37
acl_ joined00:37
ambodi left00:39
mikecmpbll joined00:39
skorgon left00:39
hyperair left00:41
skorgon joined00:44
nathancahill_ joined00:46
nathancahill left00:47
nathancahill_nathancahill00:47
PhearTheCeal left00:47
thiago joined00:47
tmcmahon joined00:47
Silmarilion left00:47
mizu_no_oto left00:48
skorgon left00:49
bwjt joined00:51
rpg joined00:52
rpg_ joined00:52
MetalMatze left00:53
bwjt I did agit I'm confused by rebasing. git checkout mychange; git add .; git commit -m "blah"; git rebase master; fix the small conflict; git add .; git rebase --continue;00:53
skorgon joined00:53
bwjt Though when I do git rebase --continue, it just tells me to do git rebase --continue again00:53
# HEAD detached from 607e5fb # You are currently rebasing branch 'angulartimertesting' on '607e5fb'. # (all conflicts fixed: run "git rebase --continue")00:54
I thought 'git rebase --continue' would append these changes to my angulartimertesting ( 'mychange' )00:55
JerryT joined00:55
danecando joined00:56
rpg left00:56
johnkevi_ joined00:58
tmcmahon left00:59
conan left00:59
eli left00:59
bwjt notes it's oddly quiet in here for 1k+ people, this must be LT's botnet00:59
Sabbath joined00:59
johnkevinmbasco left01:00
conan joined01:00
lindenle joined01:00
aberrant joined01:00
skorgon left01:01
alif joined01:02
thekkid left01:03
mellernoia left01:03
bwreilly left01:03
asQuirre_ left01:04
kbouwser joined01:04
becks___ left01:04
becks__ joined01:05
weiyang joined01:05
rq601 left01:07
Not_Whatever left01:07
hellopat left01:07
rafaqueque left01:07
becks__ left01:09
nnyk_ left01:09
alexlindenlevy left01:11
eli joined01:11
alif left01:12
emmajane[emmajane]01:13
starkhalo left01:16
maestrojed left01:17
sykopomp_ joined01:18
alif joined01:18
imachuchu left01:19
freimatz joined01:19
sykopomp_ hi all. I'm trying to figure out what a good workflow could be for an open source project where there's a "stable" version that only receives backwards-compatible patches, and a "next major version" branch, which might be maintained for a longish time before actually being tagged, which would be used to preview new, backwards-incompatible changes, but would still need a backporting of all the maintenance patches01:20
alexlindenlevy joined01:20
nerdfiles joined01:20
joelm left01:20
sykopomp_ or if there's some workflow that achieves something similar that doesn't exactly involve those two branches. What have folks found to be manageable/successful? I'm used to the "gitflow" style of doing things, but it's not very friendly towards long-lived branches that only have some patches in common.01:21
renatow left01:21
redrocket left01:21
Nizumzen left01:21
aberrant left01:22
Kayra joined01:23
cjz left01:23
Diemuzi left01:24
livingstn joined01:24
hahuang65 left01:24
FatDarrel left01:25
mikecmpbll left01:25
alexlindenlevy left01:25
hyperair joined01:26
jade_ joined01:27
woollyams joined01:27
Kayra left01:27
jday_ joined01:27
bgerber left01:28
groglogic joined01:29
jayallen left01:30
cmpera left01:31
SeptDePique left01:32
thekkid joined01:33
solker joined01:34
bwreilly joined01:34
sohail left01:35
panpainter left01:35
bartman` left01:36
mlimaloureiro left01:36
githogori left01:37
jperry left01:37
danecando left01:38
rpg_ left01:38
solker left01:38
dmarkham left01:39
bgerber joined01:39
ColKurtz left01:39
wolfman left01:39
aslaen joined01:40
aslaen left01:40
Watabou joined01:41
wongon joined01:42
nnyk_ joined01:43
gelardi_ joined01:46
Dreadnaught left01:48
halu left01:49
kpreid joined01:49
buzzybron joined01:51
buzzybron how can i list the versions of a file?01:51
gelardi_ left01:51
h0bbit_ joined01:52
cjh` `git log file` will show you every commit from the current branch that touches the file01:52
xjiujiu joined01:52
p4denis joined01:52
CheckDavid left01:52
zxd left01:53
ehmatthes joined01:53
nZac joined01:53
mitin001 joined01:55
jatoben joined01:57
p4denis left01:57
EngierkO left01:57
mitin001 left01:57
nZac left01:58
psyl0n left01:58
MacWinner left02:00
dmarr how are prs that are dependent on other prs usually handled? for example if merge an upstream pr and resolve conflicts, then the upstream pr changes02:01
cads left02:01
Vampire0_ joined02:02
gerard0 left02:02
Vampire0 left02:02
aubreypwd left02:03
milki the downstream pr should be updated either with merges or rebases02:04
githogori joined02:04
psyl0n joined02:04
shruggar left02:05
awakecoding left02:05
v1n left02:06
ErKa left02:06
gerard0 joined02:06
daito joined02:07
teran left02:07
Voting left02:09
dmarr how would a rebase work in that case?02:09
huahax joined02:10
derptacos joined02:10
kbouwser left02:10
arizuka joined02:11
xjiujiu left02:12
derptacos left02:12
xjiujiu joined02:12
z8z joined02:13
z8z left02:14
Exancillatus joined02:14
vkrest left02:14
h0bbit_ left02:15
vkrest joined02:15
nlogn left02:15
cads joined02:16
psyl0n left02:18
Exancillatus left02:19
kim_plausible left02:20
LucasKA left02:22
pheaver left02:23
shotgunblues joined02:23
acharlieh joined02:24
xjiujiu left02:25
xjiujiu joined02:25
shotgunblues left02:26
alif left02:26
alexlindenlevy joined02:26
danecando joined02:27
solker joined02:28
polyzen left02:29
lazers left02:29
xjiujiu left02:31
alexlindenlevy left02:31
xjiujiu joined02:31
yacks joined02:32
liamkeily left02:33
echo-area joined02:33
solker left02:33
solker joined02:33
rouf_ joined02:33
teasherm left02:33
theRealGentleman joined02:35
jgoss joined02:35
james_d_h joined02:35
rouf left02:35
bwjt left02:35
pingupingu left02:36
james_d_h left02:37
insejn left02:37
livingstn left02:37
huahax left02:37
dobby156_ joined02:37
dobby156 left02:37
rouf_ left02:38
Goplat joined02:38
solker left02:38
hellopat joined02:39
livingstn joined02:39
xjiujiu left02:39
bitkid left02:39
dreiss left02:39
bitkid joined02:40
xjiujiu joined02:40
jbarker joined02:40
jbarker left02:40
intripoon_ joined02:40
alif joined02:41
acharlieh left02:41
hellopat left02:43
jade_ left02:43
WaReZ left02:43
droid_ joined02:43
droid_ hello, new to git, i got a problem02:44
intripoon left02:44
fairuz joined02:44
fairuz left02:44
fairuz joined02:44
droid_ remote repository in github already existing and also my local codes but not in sync02:45
munderwo joined02:45
droid_ how can i push my local changes into the remote project ?02:45
droid_ left02:46
luc_ joined02:47
Hello71 git push02:47
[1]JPeterson joined02:48
xjiujiu left02:48
xjiujiu joined02:48
munderwo left02:49
JPeterson left02:49
axl_ joined02:49
alexlindenlevy joined02:50
setmeaway left02:50
githogori left02:53
sykopomp_ left02:53
mribeirodantas left02:54
wbdecker joined02:54
xjiujiu left02:55
yacks left02:55
Walex2 left02:56
xjiujiu joined02:56
xjiujiu left02:56
ariscop left02:56
madewokherd joined02:56
yacks joined02:57
xjiujiu joined02:57
Walex joined02:57
WaReZ joined02:58
digifiv5eguyz02:58
ariscop joined02:58
axl_ left02:59
axl_ joined02:59
alexlindenlevy left03:00
Vampire0 joined03:00
alexlindenlevy joined03:00
lindenle left03:02
Vampire0_ left03:03
aberrant joined03:05
ehmatthes left03:05
alif left03:06
phipes joined03:07
v1n joined03:08
alif joined03:08
pikaren joined03:08
pikaren left03:08
pikaren joined03:09
pikaren left03:09
pikaren joined03:10
pikaren left03:10
xjiujiu left03:10
pikaren joined03:10
Rex357 joined03:10
xjiujiu joined03:11
Rex357 Do you guys lay into noobs?03:11
ncthom91 left03:11
Rex357 I'm having trouble figuring out what the address is for a repository03:11
pikaren left03:11
LucasKA joined03:11
Rex357 Googling not really breaking it down for me03:11
pikaren joined03:12
elle left03:12
pikaren left03:12
pikaren joined03:12
pikaren left03:13
pikaren joined03:13
githogori joined03:13
eletuchy_ joined03:14
eletuchy left03:14
pikaren left03:14
Rex357 I'm trying to figure out the address to git this: https://github.com/archlinuxarm/PKGBUILDs/tree/master/aur/cower03:14
m0ltar joined03:14
wbdeckerwbdecker|away03:14
pikaren joined03:14
Exancillatus joined03:14
wbdecker|awaywbdecker03:14
pikaren left03:15
dglambert left03:15
pikaren joined03:15
pikaren left03:15
pikaren joined03:16
xjiujiu left03:16
SocalNick joined03:16
xjiujiu joined03:16
pikaren left03:17
WaReZ left03:17
lindenle joined03:17
pikaren joined03:17
pikaren left03:18
pikaren joined03:18
JerryT left03:18
pikaren left03:18
cmpera joined03:19
pikaren joined03:19
Exancillatus left03:19
githogori left03:19
AaronMT left03:19
pikaren left03:19
pikaren joined03:20
pikaren left03:20
pikaren joined03:21
pikaren left03:21
pikaren joined03:22
pikaren left03:22
fairuz Rex357: [email@hidden.address]03:22
Starcraftmazter joined03:23
Starcraftmazter hi03:23
pikaren joined03:23
Starcraftmazter i wanted to ignore only a top level directory called media so i put "media/" in my gitignore, but it ignores every media directory anywhere03:23
pikaren left03:23
Starcraftmazter how can i only make it ignore it at the very top levle?03:23
like ./media/ ?03:23
pikaren joined03:23
jday_ left03:24
fairuz Starcraftmazter: I believe it's /media/*03:24
Starts with a slash03:24
pikaren left03:24
Starcraftmazter but not a dot?03:24
mizu_no_oto joined03:24
pikaren joined03:25
Rex357 fairuz: I only wanted one directory in there. Was there any way I could of done that?03:25
pikaren left03:25
xjiujiu left03:25
pikaren joined03:25
fairuz Starcraftmazter: A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". (From the documentation)03:25
xjiujiu joined03:26
pikaren left03:26
fairuz Rex357: YOu need to clone the project03:26
*you03:26
pikaren joined03:26
pikaren left03:27
Rex357 So I had to take the whole thing then?03:27
pikaren joined03:27
pikaren left03:28
fairuz Rex357: Yes03:28
pikaren joined03:28
pikaren left03:28
pikaren joined03:29
pikaren left03:29
el3ctron_ left03:30
pikaren joined03:30
Rex357 fairuz: OK thanks. What is the -b thing for then? (Sorry was just looking at the help and I was trying to do that the whole time thinking I could just get the branch I was after)03:30
pikaren left03:30
pikaren joined03:31
xiong git ignores nested repos. Is it possible to place the same dir under two repos?03:31
WaReZ joined03:31
xjiujiu left03:31
pikaren left03:31
william1 left03:31
xjiujiu joined03:32
pikaren joined03:32
offby1 I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.03:32
pikaren left03:32
xiong Ha ha, it's nasty, eh?03:32
dyng left03:32
githogori joined03:33
dyng joined03:33
starkhalo joined03:33
Starcraftmazter i see, thanks fairuz03:33
m0ltar left03:34
dougsland left03:34
xiong Let's say I have two repos, one nested inside the other; however I have done this, I'm completely happy with that... to a point. Now I want to push the outside repo to a remote, disregarding the fact of the nested repo. Perhaps I'll have a third repo that disregards the first two.03:34
munderwo joined03:34
xiong In any case I want to make the project monolithic.03:34
fairuz Rex357: It's for pointing the HEAD to specified branch name03:35
xiong If you say 'no' then that's quite okay. Obviously I can copy both outside and inside project and trash their repos, leaving me with a monolith.03:36
mr_red left03:36
Devels left03:37
dyng left03:37
alvaro_o left03:38
Destos joined03:38
GT4066 left03:38
alexlindenlevy left03:40
livingstn left03:42
nZac joined03:42
Rex357 fairuz: OK. Thank you for your help. Have a good night.03:42
Rex357 left03:43
JulianGindi joined03:43
johnkevi_ left03:44
aubreypwd joined03:45
nZac left03:47
xiong Ah. $ git add sub/ ..... will add sub/ as a subdir of the outer project, ignoring that it's in its own repo.03:47
nedbat left03:47
xjiujiu left03:48
xjiujiu joined03:48
mr_red joined03:49
thiago left03:49
Devels joined03:50
Devels left03:51
groglogic left03:52
Nikoli joined03:54
zumba_addict joined03:56
theRealGentleman left03:56
danecando left03:58
dmarr git has put me through some tough times03:58
aisbaa left03:58
aisbaa joined03:58
xiong Hope it's helped out out of more rough spots than it's put you in.03:58
jKlaus joined03:59
jKlaus hey guys03:59
Devels_ joined03:59
Devels_Devels04:00
jKlaus Is there a linux git client out there that will allow you to create repositories?04:00
Devels left04:00
Devels joined04:00
pheaver joined04:00
scarabx left04:00
JulianGindi left04:01
xjiujiu left04:01
xjiujiu joined04:01
dmarr i have this state where all these rebased commits are in the history of a branch. i have a dev branch that i'd like to just apply the changes to in one commit. there have been conflicts along the way but i cant seem to get things to work :(04:02
starkhalo jKlaus: all clients can create local repositories04:02
kermit left04:03
craigp joined04:03
jKlaus starkhalo, I want to be able to create the remote repository04:03
kermit joined04:03
jKlaus .. so I don't have to manually remote into the server and create the repo04:03
craigp left04:03
mdub joined04:03
starkhalo jKlaus: something along http://hub.github.com/ for github?04:03
dyng joined04:04
starkhalo I'm sure there are others for other services04:04
woollyams left04:04
jKlaus I'm looking for a graphical UI though04:04
trying to find something so I might be able to talk my company into migrating to git rather than M$'s TFS04:05
saurabh joined04:05
ewnd9 joined04:05
offby1 they're gonna base their decision on the presence or absence of a GUI ?04:05
tsk tsk tsk04:05
saurabhGuest6049404:05
jKlaus offby1.. did I mention the bulk of them are sharepoint developers?04:06
starkhalo jKlaus: then check out https://github.com/gitlabhq/gitlabhq, perhaps that'll help you04:06
jKlaus if you want to call them that04:06
dreiss joined04:07
xjiujiu left04:07
xjiujiu joined04:08
jKlaus starkhalo, that is actually interesting, thanks04:08
dyng left04:09
scarabx joined04:09
starkhalo jKlaus: np04:09
fire joined04:09
mdub left04:11
chrisshattuck left04:12
woollyams joined04:12
sohail joined04:13
sohail left04:13
sohail joined04:13
chrisshattuck joined04:13
dik_dak joined04:15
Exancillatus joined04:15
xjiujiu left04:17
xjiujiu joined04:17
ethlor joined04:18
gittish joined04:18
Exancillatus left04:20
daito left04:21
MattStratton joined04:21
hellopat joined04:21
friesk left04:22
craigp joined04:22
subhojit777 joined04:24
relipse why is git stuck on this: Unpacking objects: 100% (9/9), done04:24
SamB is that really the last thing it shows?04:25
relipse yes then i ctrl+c'd it and did git pull again and now it is stuck on Updating 3255052..7080a0204:25
really odd04:26
oh now it finished, oh well04:26
hellopat left04:26
Dougie187 left04:26
Khisanth left04:26
craigp left04:27
s4nchez joined04:27
arvind_khadri joined04:27
arvind_khadri left04:28
woollyams left04:28
jKlaus anyone have a clue as to why my laptop resolves to my server given the domain I setup via DDNS but my desktop does not?04:29
wbdeckerwbdecker|away04:29
milki spam?04:29
relipse add to hosts file jKlaus l04:30
on your desktop04:30
SocalNick left04:30
relipse wait nevermind i have no idea what i'm talking about04:30
Kayra joined04:30
jKlaus I was going to say..? lol04:30
wbdecker|awaywbdecker04:30
jKlaus hmm04:30
strange.. chrome couldn't resolve it.. I accessed it via fire fox and now chrome can04:31
lol04:31
s4nchez left04:31
jKlaus man I really like gitlab..04:31
seems like extreme overkill to set it up if they don't opt to use it but.. I like it04:32
thiago joined04:32
SocalNick joined04:32
wbdeckerwbdecker|away04:32
kcj joined04:33
xjiujiu left04:33
xjiujiu joined04:34
solker joined04:34
axl_ left04:35
jayrobot joined04:35
wbdecker|awaywbdecker04:35
pawprint joined04:37
thrakcattack left04:37
pawprint how can i ask "git diff" to show me more lines of context?04:37
sunny256 pawprint: The -U option04:37
pawprint thank you04:37
sunny256 git diff -U 2004:37
wbdeckerwbdecker|away04:37
sunny256 np :)04:38
yhager left04:38
kukks left04:38
aubreypwd left04:38
Noldorin left04:38
aubreypwd joined04:39
woollyams joined04:39
thrakcattack joined04:39
solker left04:39
pawprint left04:39
Khisanth joined04:39
WaReZ left04:39
yhager joined04:40
wolfman joined04:42
xjiujiu left04:42
Guest41679rastus_vernon04:43
rastus_vernon left04:43
rastus_vernon joined04:43
xjiujiu joined04:43
wbdecker|awaywbdecker04:43
wbdeckerwbdecker|away04:45
cenuij joined04:46
cenuij left04:46
cenuij joined04:46
wbdecker|awaywbdecker04:46
alester joined04:46
yhager left04:46
DolphinDream joined04:47
aubreypwd left04:47
bl33 joined04:47
LucasKA left04:48
aubreypwd joined04:49
fire left04:49
fire joined04:50
xjiujiu left04:50
xjiujiu joined04:51
danielcompton left04:52
karstensrage joined04:53
Destos left04:54
h0bbit_ joined04:55
WaReZ joined04:55
woollyams left04:55
beautifulmind joined04:56
bwreilly left04:56
takamichi left04:57
koda joined04:57
Kayra left04:57
ariscop left04:58
dyng joined04:58
takamichi joined04:58
fire left04:59
xjiujiu left04:59
aberrant left05:00
donmichelangelo left05:00
urn left05:00
donmichelangelo joined05:00
koda left05:01
woollyams joined05:02
ethlor left05:03
DolphinDream what does SCM stand for ?05:05
source control managmenet?05:05
SamB !SCM05:05
!scm05:05
Starcraftmazter it stands for me name05:05
DolphinDream :)05:05
Starcraftmazter obviously05:05
DolphinDream nice try SamB05:05
ok. kool05:05
SamB how about "scheme"05:05
DolphinDream scheme? hm.. u sure?05:06
SamB probably not what you were looking for, but .scm is a common extension for scheme programs ...05:06
woollyams left05:08
alif left05:08
alester left05:09
nafg_ joined05:09
nafg__ left05:10
daito joined05:11
daito left05:12
ianmcorvidae left05:13
ianmcorvidae joined05:13
daito joined05:13
ahmedelgabri joined05:14
scarabx left05:14
urn joined05:14
CKyle left05:15
Exancillatus joined05:16
johnkevinmbasco joined05:17
koda joined05:19
ariscop joined05:19
Exancillatus left05:20
Tommy[D] joined05:21
vkrest left05:23
cbot joined05:23
marthinal joined05:23
Tommy[D]_ left05:24
mizu_no_oto left05:24
alezost joined05:24
Fandekasp joined05:25
LucasKA joined05:26
nicedice left05:27
bgerber left05:27
bgerber joined05:28
solker joined05:28
wongon left05:30
craigp joined05:31
FatDarrel joined05:32
solker left05:33
hobodave left05:34
solker joined05:34
SocalNick left05:34
thekkid left05:35
luxgeek left05:35
ClientAlive joined05:35
sohail left05:35
ClientAlive stupid question... is it possible to branch a branch?05:35
SamB yes05:36
Eugene ClientAlive - you can branch anything!05:36
It's just a pointer05:36
ClientAlive cool05:36
thx man05:36
pepper_chico joined05:37
solker left05:38
chrisshattuck left05:42
teran joined05:44
Nizumzen joined05:46
cbot left05:47
shingshang joined05:47
madewokherd left05:50
mmcdaris joined05:50
mmcdaris left05:50
pepper_chico left05:50
bl33 left05:53
cads left05:55
bl33 joined05:55
yhager joined05:58
woollyams joined05:58
irqq joined05:59
Nizumzen left05:59
vkrest joined06:01
Freeman42 left06:02
Freeman42 joined06:02
tpollard left06:03
v1n left06:04
Raging_Hog joined06:05
ehmatthes joined06:05
Walex left06:07
Walex joined06:07
ewnd9 left06:08
D9 left06:13
teran left06:14
Nizumzen joined06:15
Exancillatus joined06:17
DolphinDream ClientAlive: branch a branch ? :) that's why it's called a branch ;p06:18
ClientAlive har har06:18
DolphinDream master is a branch.. from which you branch other branches ;006:18
jKlaus left06:18
cehteh left06:18
freestyl3r left06:20
Exancillatus left06:22
Sabbath left06:24
xiong What is this mode 16000006:24
?06:24
Sabbath joined06:25
cehteh joined06:27
hike left06:27
bwreilly joined06:28
midnightmagic left06:28
ClientAlive I've been reading this book and now I'm starting to form a thought lol06:28
j416 xiong: submodule, likely06:28
ClientAlive I have this graaaand idea how to do a repository workflow...06:28
xiong Not only that, ClientAlive; it's highly recommended. I don't like the word 'master' itself; it means too many things. I call the branch suitable for ordinary user download 'trunk'. Then an integration branch is 'devel'; and from that, perhaps, 'feature-foo' branches.06:28
Nizumzen left06:29
j416 xiong: it happens when git finds a .git directory inside a directory you are committing06:29
xiong j416, it is indeed a submodule. I'd like to know what kind of a mode that is -- no read, write, or execute for user, group, or all??06:29
lindenle left06:29
cehteh left06:29
j416 xiong: it doesn't have to be a submodule, but if it isn't, you probably are doing something weird06:29
ClientAlive xiong: Yes, I think I get it.06:29
midnightmagic joined06:29
j416 xiong: not sure, special git-mode afaik06:29
tabeaux left06:30
xiong Is it a fake mode, perhaps? Because the thing pointed to is a directory, which generally has plenty of permissions.06:30
ClientAlive It's late here. Catch ya guys another time06:31
j416 is off to work o/06:31
ClientAlive left06:31
j416 xiong: it didn't point to a directory, it pointed to a commit06:31
j416 off to work fr06:31
the_cybersphinx left06:31
donmichelangelo left06:32
donmichelangelo joined06:32
xiong There's some confusion here, if only in my mind.06:32
takamichi left06:33
hike joined06:34
xiong I need to understand submodules better; I've been reading on them for two weeks. Some authors hate them, other love them. Some say they are broken, others just say, Don't forget to XYZ.06:35
FatDarrel left06:35
ThomasLocke joined06:36
ahmedelgabri left06:36
wbdecker left06:37
xiong I don't think I understand the complaints -- I understand what they're saying but not why the complaints are any more substantial than "You have to do more work and if you forget a step it's bad."06:38
I agree there's more work involved, more decisions to be made; which is why I'm working on a script and some hooks to smooth that along. But the same could be said for nearly any complex task -- once you figure out how *you* want to do it, write a script.06:39
abrkn joined06:41
eslwork joined06:41
vkrest left06:41
daito left06:42
vkrest joined06:42
glebihan left06:43
ewet joined06:44
ewet left06:44
ewet joined06:44
ambodi joined06:45
StarFire joined06:45
ewet left06:46
moritz xiong: one thing that's constantly annoying is that so few git commands are aware of submodules06:47
want to create a tar ball? sorry, git-archive doesn't understand submodules06:47
xiong Agree, moritz. Hence the wrapper script and hooks.06:47
hoschi joined06:47
moritz wnat to work around that by creating a file list with git ls-files? sorry, git ls-files doesn't know about submodules06:47
and the list goes on06:48
xiong Well, I'd actually take that list pretty seriously if you want to link it.06:48
I'm determined to beat these issues down.06:48
moritz by patching the git commandsß06:48
s/ß/?/06:48
pikaren joined06:49
glebihan joined06:49
StarcraftmazterSCM|NotHere06:49
xiong How should it be done?06:49
bl33 left06:50
xiong I'd rather not tamper with git itself; hence the wrapper -- a partial wrapper; I'd like to let the user use git normally whenever possible.06:50
intellix joined06:51
xiong I particularly plan to put in a pre-commit hook so that submodules are scanned. All subs must be clean and pushed before committing the super.06:51
jargon joined06:52
mishok13 joined06:52
xiong Um, I award you bonus points for using a letter (I think) even the Germans have dropped. ;)06:53
Gamecubic left06:53
Mamoru left06:54
dreiss left06:54
xiong If you have suggestions on the fixes, naturally I'll want to hear them. But what I want most is rational and specific complaints -- stuff needing fixing, such as the git-archive and git-ls-files you mentioned, moritz.06:55
ewet joined06:56
woollyams left06:56
EisNerd left06:57
a-l-e joined06:57
kbart joined06:58
misterpink left06:58
woollyams joined06:59
nilg joined07:00
jayallen joined07:00
jaseemabid joined07:00
jaseemabid left07:01
yacks left07:01
koda left07:01
Tatsh left07:01
jaseemabid joined07:02
ewnd9 joined07:02
ThomasLocke left07:03
ThomasLocke joined07:03
moritz xiong: but why not patch git itself?07:04
xiong: it would be the most direct solution with the most benefit for every user07:04
woollyams left07:04
xiong Well, I already worry about my users. Will they be willing to download and install wrapper and hooks?07:04
You are probably thinking in bigger terms; my goals are more humble. For me, this is a special-purpose tool. You are thinking about the general-purpose fix to submodules -- submodules done right. I don't think I have the experience or resources to do that.07:05
moritz which is why patching it seems a much more logical choice07:05
fwiw I'm not proposing a general re-think of submodules, just wider support in core07:06
xiong Well, let me turn it around: People have been complaining about submodules for years. Why has nobody else heeded the complaints and reworked submodules closer to the heart's desire?07:06
mikar joined07:07
hyperair because it's controversial?07:07
xiong Nobody, that is, with much more ability and cred than I have....07:07
?07:07
moritz there *are* other approaches to solve the same problem that submodules tries to solve07:07
or some of the problems07:07
xiong Controversial in that some don't like?07:07
moritz !sub07:07
gitinfo [!subtree] 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_alternatives07:07
yhager left07:08
moritz for example07:08
!subproj07:08
gitinfo [!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 separate. Otherwise your best options are "!submodule", "!gitslave", and "!subtree". Try those commands in this channel, or in a PM to avoid flooding.07:08
xiong I looked hard at alternatives and did not like at all, thanks.07:08
moritz xiong: but it answers your "why did noone tried to fix them?" question with "several people did"07:08
xiong I took about a week to seriously consider either subtrees or gitslave.07:08
gittish left07:09
starkhalo left07:09
xiong Oh, sorry; I see this through other lenses. Both of those handle the issue of subprojects in different basic ways from submodules. I thought we were talking about improving the submodules feature directly.07:09
moritz well, there have been improvements07:10
for example git clone --recursive07:10
which hasn't been there from the start07:10
it just looks to me that submodule development is resource starved07:10
though I'm not on the !list, so I could be wrong07:11
gitinfo [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist07:11
xiong Exactly. Update git to a recent version and some objections are already answered. One difficulty with my kind of catch-up research is that I wallow in objections ten years old.07:11
acl_ left07:11
daito joined07:11
xiong I'm probably the wrong guy, moritz; although it's flattering even to hear the suggestion. My C is so rusty it's peeling off in orange flakes.07:12
jaseemabid left07:15
cbreak-work joined07:15
simesy joined07:16
chepre left07:17
roelmonnens joined07:18
dreiss joined07:18
h_kon joined07:20
longbeach joined07:20
ahmedelgabri joined07:20
xlinkz0 joined07:21
yhager joined07:21
Nizumzen joined07:22
bozek joined07:22
m0viefreak left07:22
ewet left07:24
corgankidd joined07:24
JohnBat26 joined07:24
ambodi left07:26
gitinfo set mode: +v07:26
fire joined07:26
user258467 joined07:26
jaseemabid joined07:27
danielcompton joined07:28
arvind_khadri joined07:28
bozek left07:28
FatDarrel joined07:28
mishok13 left07:30
papegaaij joined07:30
rouf joined07:30
craigp left07:31
ewet joined07:31
ewet left07:31
skorgon joined07:33
fire left07:33
ambodi joined07:33
thevishy joined07:33
macben joined07:34
nilg left07:34
solker joined07:34
donnib joined07:36
donnib Hi07:36
i am doing a git svn fetch every day to have my git repo in sync with the svn but today i got an error and i don't know how to get back on track07:37
i get : Incomplete data: Delta source ended unexpectedly at /usr/lib/perl5/site_perl/Git/SVN/Ra.pm line 29007:37
can somebody help me ?07:37
corgankidd left07:38
_ikke_ donnib: not a usual error07:38
danielcompton left07:38
_ikke_ It's an svn error aparently07:38
donnib i tried searching online but have not been able to figure out what is causing this07:38
_ikke_ https://stackoverflow.com/questions/13137473/tortoise-svn-errordelta-source-ended-unexpectedly07:38
https://stackoverflow.com/questions/211025/git-svn-rebase-incomplete-data-delta-source-ended-unexpectedly07:39
evilbug left07:39
dobalina joined07:39
solker left07:39
donnib _ikke_: i just don't know where to start, the article says top level delete of my local copy but where is that ? What is safe to delete ?07:40
_ikke_ My knowledge about this is fairly limited, so I can't really help07:40
ewet joined07:40
donnib I shold add that that i am in middle of a svn -> git migration and i do this git svn fetch until we are ready so i don't have a copy of the repo (git)07:40
phipes left07:41
donnib oh ok, np maybe somebody else can help07:41
aubreypwd left07:41
simesy left07:41
_ikke_ It's a bit quiet currently07:41
fRAiLtY- joined07:42
donnib :(07:42
vocifer-awayvocifer07:42
nilg joined07:43
Goplat left07:44
hahuang65 joined07:44
thierryp left07:45
rob_w joined07:45
vocifer sorry, don't have any experience with git svn, I assume svn is still working properly with the repository?07:46
thierryp_ joined07:46
donnib vocifer: yup i just did an update on my repo with svn up and it worked fine07:46
ewet so, please help me read this:07:46
koda joined07:46
ewet When the .gitattributes file is missing from the work tree, the path in the index is used as a fall-back. During checkout process, .gitattributes in the index is used and then the file in the working tree is used as a fall-back.07:47
at what time would there be a .gitattributes in the index but not in the work tree?07:47
vocifer ewet, `git add .gitattributes` `rm .gitattributes`07:48
takamichi joined07:48
macben left07:49
MissionCritical left07:50
HelperW joined07:50
zxd joined07:50
ewet vocifer: of course ...07:50
thierryp_ left07:50
chepre joined07:51
jnavila joined07:51
beautifulmind left07:53
eijk_ joined07:53
vocifer donnib, is a fresh `git svn clone` successful? (just curious)07:53
mishok13 joined07:54
olle joined07:54
olle left07:54
olle joined07:55
jnavila_ joined07:56
jnavila left07:56
introom joined07:56
introom hi. I want to only checkout a portion files07:56
sorry, my plan is to not checkout several files, while checking the remaining07:57
Bass10 left07:58
matanya joined07:58
Mission-Critical joined07:58
moritz xiong: much of git is written in shell, not C; also some perl07:58
hellopat joined07:58
rendar joined07:59
s4nchez joined07:59
arizuka left07:59
xiong Well, Perl for me.08:00
I'd better stick to my special project. Perhaps once I'm done with that I'll have some ideas how to generalize it.08:00
ahmedelgabri left08:00
arizuka_ joined08:01
ahmedelg_ joined08:01
zxd left08:01
zxd_ joined08:01
_ikke_ introom: The only way it to checkout each file you want seperately08:01
introom: git checkout <commit> <file>08:01
teran joined08:01
vocifer moritz, 45.2% is c 34.7% is shell08:01
introom _ikke_: there is only one file I don't wanna checkout08:01
vocifer moritz, but i think they do write a lot of test code in sh scripts as well ... so08:02
_ikke_ introom: If it has uncomitted changes, the easiest way is to temporarily move it away, check out the commit, and then put the file back08:02
hellopat left08:03
ahmedelg_ left08:04
simesy joined08:05
thiago left08:05
shruggar joined08:06
tadasZ left08:07
lb1a joined08:09
tvw joined08:10
TomyWork joined08:10
arvind_khadri left08:10
s4nchez left08:11
puppeh joined08:11
puppeh I found the following in a .gitattribute file: "* text=auto !eol"08:12
gitinfo The option/attribute to use when you need to care about different line-endings in your file: http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/08:12
puppeh what does it mean?08:12
Anticom joined08:12
dreiss left08:12
dik_dak left08:12
Mission-CriticalMissionCritical08:13
_ikke_ puppeh: see man gitattributes08:13
gitinfo puppeh: the gitattributes manpage is available at http://jk.gs/gitattributes.html08:13
_ikke_ puppeh: basicaly, it has to do with how git treats the line-endings of files08:13
daedeloth joined08:13
hahuang65 left08:13
daedeloth so, long time subversion user, moving to git.08:13
nnyk_ left08:13
daedeloth I have a project that consists of 2 parts, a website and an api.08:14
in git terminology, I think I should use 2 repositories for that08:14
_ikke_ dean|away: correct08:14
vurma joined08:14
gittish joined08:14
daedeloth but the website also has a "build" folder, which is basically the minified version of the website08:15
and a "builder" folder, containing the script to do the actual minifying08:15
freimatz left08:15
daedeloth however, I think it would be cleanest if the "website" repository would simply contain the website files, not the buildscripts08:15
moritz why?08:15
przemkovv left08:15
moritz is the build script specific to the website?08:16
daedeloth yes08:16
przemkovv joined08:16
moritz then it's probably simplest to leave it in the website repo08:16
daedeloth but in git, you can't just clone part of the project, no?08:16
simesy left08:16
moritz no08:16
but why would you want to?08:16
daedeloth like, I'm a developer, I have set up /var/www/website-part, I want to put the website there08:16
moritz if the builder is specific to the website, you never want the builder without the website08:16
h0bbit_ left08:16
daedeloth indeed08:17
puppeh _ikke_: yes but what does the "!" symbol in front of eol means08:17
CharlesFinley joined08:17
daedeloth but as a developer, in subversion I just just checkout repostiry-url.com/website and I'd end up with /var/www/website-part/index.html08:17
solker joined08:17
daedeloth in git, I can't do that, so I'd end up with /var/www/website-aprt/website/index.html08:18
right?08:18
moritz yes08:18
so move your document root08:18
and all is fine08:18
Exancillatus joined08:18
daedeloth and put the buildscript and build folder in the website root, yea, could work08:18
moritz or have the repository in your home, and use the builder to create /var/www/website-part/ from it08:18
h0bbit_ joined08:19
daedeloth well the builder is not for development, in development the regular source is used08:19
moritz ok08:19
arand__ Or write an appropriate deploy hook that only checks out a subdirectory.08:19
cenuij left08:19
ambodi left08:20
_ikke_ puppeh: According the documentation, it means leave it unspecified08:20
daedeloth I'll just put everything in the root then08:20
_ikke_ puppeh: "Sometimes you would need to override an setting of an attribute for a path to Unspecified state. This can be done by listing the name of the attribute prefixed with an exclamation point !."08:20
ambodi joined08:20
Freeman42 left08:20
daedeloth ok, so next question :) right now I have one subversion repository containing both parts. I'm now using git-svn and this tutorial to convert it to one git repository08:21
http://john.albin.net/git/convert-subversion-to-git08:21
harobed joined08:21
Xiti` joined08:21
Freeman42 joined08:21
_ikke_ puppeh: It basically disables eol08:21
daedeloth then I'm going to push it to 2 remote locations and in both repository remove half of the files08:21
is this extremely stupid?08:21
or just regular stupid08:21
moritz just regular stupid08:22
_ikke_ daedeloth: are the different parts self contained in a single directory or something?08:22
neal__ left08:22
daedeloth yes08:22
joki left08:22
ribasushi left08:22
bipolar left08:22
moritz there once was an svn repo from which I extracted about a half dozen git repositories08:22
arand__ daedeloth: if you have directory boundries you could split it from the beginning.08:22
daedeloth yes but each git repository will contain the history of the whole project08:23
LionKing joined08:23
_ikke_ daedeloth: You can use filter-branch --subdirectory-filter to split them out08:23
or what arand says indeed08:23
Exancillatus left08:23
_ikke_ Just clone the svn project from the subdirectory08:23
daedeloth arand__, yes, but then I lose my tags and branches08:23
_ikke_ yeah, true08:23
andres left08:24
andres joined08:24
potatoe left08:24
gunmuc left08:24
gunmuc joined08:24
Xiti left08:24
potatoe joined08:24
lavong joined08:24
ambodi left08:25
Cork left08:25
ribasushi joined08:25
aard_ joined08:25
neal__ joined08:26
ariscop left08:26
StarFire left08:26
bipolar joined08:26
TomyWork left08:26
skorgon left08:27
TomyWork joined08:27
zz_frobwarefrobware08:27
noname001__ joined08:28
Cork joined08:28
joki joined08:28
puppeh left08:28
zxd_zxd08:29
vince_prignano joined08:29
kadoban left08:29
ehmatthes left08:29
nathancahill left08:30
kossy left08:31
kossy joined08:31
poulson joined08:32
aChatir joined08:33
alorence joined08:34
juril joined08:35
thevishy left08:35
danicampa901 joined08:35
bernalex left08:36
bernalex joined08:36
Exancillatus joined08:36
johnkevinmbasco left08:37
crocket joined08:38
rethus joined08:38
blinkdesign joined08:38
crocket My coworker doesn't know how to resolve git conflicts and refuses to learn it.08:38
Mediocrity rules my workplace.08:38
blinkdesign left08:38
grawity And still has commit rights?08:39
lb1a crocket, slap him with a spoon08:39
crocket To them, anything that they need to take time to learn feels too academic.08:39
lb1a crocket, http://www.youtube.com/watch?v=9VDvgL58h_Y08:39
rst0 joined08:40
crocket He deals with git repositories everyday, but he refuses to learn how to resolve git conflicts.08:40
_ikke_ What does he do when encountering them?08:41
s4nchez joined08:41
aChatir left08:41
Khisanth left08:41
aChatir joined08:42
crocket _ikke_, He asks help from others who know git well.08:42
Khisanth joined08:42
crocket _ikke_, He asks others to resolve git conflicts.08:42
vince_pr_ joined08:42
_ikke_ s/git conflicts/merge conflicts08:43
And as long as you keep helping him, he won't ever bother08:43
FatDarrel left08:43
crocket _ikke_, He doensn't ask my help.08:43
moritz <@Zefram> there's a distinct moral hazard in pandering to people who don't cooperate08:44
_ikke_ you, plural08:44
crocket ok08:44
moritz seen yesterday on #p5p08:44
crocket You didn't tell me "you" were plural.08:44
_ikke_ moritz: What does pandering mean?08:44
akiva left08:44
_ikke_ google translate isn't helping08:44
or does it mean something like connect08:45
vince_prignano left08:45
moritz _ikke_: to favor someone, to adapot to their way of doing things08:45
daedeloth ok, so, now I have: local git with both parts and a working copy of that local git with a commit to remove half of the code08:45
now I want to push this commit to a new remote repository, right?08:45
and hten remove the working copy and do the same for the other part?08:46
s4nchez left08:46
_ikke_ daedeloth: Have you looked into git filter-branch --subdirectory filter?08:46
Novacha left08:46
rst0 left08:46
simesy joined08:46
_ikke_ --subdirectory-filter08:46
daedeloth ah, no, I figured I'd just move & remove...08:47
lb1a if it does the job ....08:47
daedeloth hm but that filter branch is actually going to remove the history of the second part?08:47
well, not remove... filter out?08:47
Novacha joined08:48
lb1a yes08:48
pretty_function joined08:48
_ikke_ daedeloth: it recreates history with the subdirectory as root08:48
daedeloth that's way better.08:48
do I do that in a working copy?08:48
_ikke_ yes08:48
akiva joined08:49
arvind_khadri joined08:49
rue left08:50
arand left08:50
aChatir left08:52
ahmedelgabri joined08:52
shruggar left08:52
vince_pr_ left08:53
_iron joined08:53
ewet so, technically git applies the gitattributes clean filter on git-add, right? it wouldn't make sense to do this on commit ...08:53
ArSn joined08:53
grawity right08:53
vince_prignano joined08:54
grawity commit just makes a tree out of the exact same things that are in the index/cache08:54
h_konhkon_08:54
ewet yeah08:54
simesy left08:55
ghostlines joined08:55
ghostlines left08:55
_ikke_ Those filters work between the index and the working tree08:55
aChatir joined08:55
ghostlines joined08:55
ghostlines left08:56
yuwang^^ left08:56
konadr joined08:56
daedeloth ok, I did that subtree thing and I'm pushing now, but I'm not sure what is happening to the tags and branches now08:56
rue joined08:56
BBonifield left08:56
daedeloth and since my collegues are breathing down my neck, wanting to commit all kinds of stuff... :)08:57
ghostlines joined08:57
armin_w joined08:57
BBonifield joined08:57
stodan joined08:58
daedeloth or, apparently all tags and branches are gone?08:58
p4denis joined08:59
Fandekasp left08:59
Fandekasp joined08:59
s4nchez joined08:59
macben joined09:00
ahmedelgabri left09:01
ewet _ikke_: I know. Here the point in time was of importance to me.09:02
ahmedelgabri joined09:03
_ikke_ ewet: Yes, but knowing where the filters apply say something about when they are applied09:03
s4nchez left09:04
ewet _ikke_: that's why I assumed it wouldn't make sense on commit09:04
_ikke_ And my comment was confirming that ;-)09:05
s4nchez joined09:05
macben left09:05
ewet but I see, I skipped that in the man page, it's right there ;)09:05
Khisanth left09:06
joki left09:06
teran left09:06
midnightmagic left09:06
munderwo left09:06
Kabaka left09:06
veebers left09:06
geomyidae left09:06
cwillu_at_work left09:06
Silmarilion joined09:06
carbon1 joined09:07
salamanderrake left09:07
dsdeiz_ joined09:07
rue left09:07
rue joined09:08
arand joined09:08
dsdeiz left09:08
yuwang joined09:09
Kabaka joined09:09
carbon1 left09:09
munderwo joined09:10
s4nchez1 joined09:10
s4nchez1 left09:10
s4nchez1 joined09:10
s4nchez left09:11
g0bl1n joined09:11
Sonderblade joined09:11
Khisanth joined09:11
teran joined09:11
midnightmagic joined09:11
veebers joined09:11
cwillu_at_work joined09:11
arand_ joined09:11
francisfish joined09:12
rue left09:12
g0bl1n left09:12
dsdeiz_ left09:13
joki joined09:13
cllamas joined09:13
Sonderblade left09:13
Khisanth left09:13
teran left09:13
midnightmagic left09:13
veebers left09:13
cwillu_at_work left09:13
HelperW_ joined09:13
Khisanth joined09:14
Sonderblade joined09:14
HelperW_ left09:14
mlechner joined09:14
Acidnerd joined09:14
HelperW_ joined09:14
teran joined09:14
LeMike joined09:14
veebers joined09:15
midnightmagic joined09:15
LeMike Hello. Some here on work still got it wrong. Is there a global config have `git clone` always checkout the develop instead of master?09:15
HelperW left09:16
grawity `git clone` picks the branch that the remote repo's HEAD points to09:16
DolphinDream left09:17
salamanderrake joined09:18
LeMike so i make a symbolic-ref in the bare repo, grawity ?09:19
grawity yes09:19
LeMike thanks! :)09:19
michael_mbp left09:20
midnightmagic left09:20
arvind_khadri left09:20
ambodi joined09:21
ahmedelgabri left09:21
Not_Whatever joined09:21
michael_mbp joined09:21
kent\n_ joined09:21
rue joined09:22
midnightmagic joined09:22
kent\n left09:23
lazers joined09:23
rath joined09:23
s4nchez1 left09:23
s4nchez joined09:24
shruggar joined09:27
ferreum joined09:27
_Qman joined09:27
kadoban joined09:28
thevishy joined09:29
woollyams joined09:29
Norm_ joined09:29
thierryp joined09:29
bwreilly left09:30
blinkdesign joined09:30
TomyWork the git ls-tree manpage says "When paths are given, show them (note that this isn’t really raw pathnames, but rather a list of patterns to match)." - what kind of pattern?09:31
i tried * and .*09:31
Asenar joined09:32
jaseemabid left09:34
daedeloth does anyone know how I encode an "@" character in a http auth username?09:35
_ikke_ daedeloth: I don't think you need to encode it09:36
daedeloth [email@hidden.address] ?09:36
woollyams left09:36
_ikke_ yes, that should work09:36
If not, try to percent encodfe it09:37
TomyWork i'm sure there are a few url validators that fail that :)09:37
even if it's valid09:37
arvind_khadri joined09:37
_ikke_ I use mc to connect to ftp, and it has no problems with that09:37
grawity daedeloth: standard URL-escaping, '@' → %4009:37
SHyx0rmZ joined09:39
Art44 joined09:39
halu joined09:40
s4nchez left09:40
s4nchez joined09:41
jackneill joined09:41
skorgon joined09:41
cmpera left09:42
pretty_function left09:42
karupanerurazz_karupanerura09:43
sitaram left09:43
thevishy left09:44
ariscop joined09:44
rue left09:44
rue joined09:45
rue left09:45
Guest29396 left09:45
thevishy joined09:46
hellopat joined09:47
jooools joined09:47
Nizumzen left09:48
skorgon left09:48
Spyro joined09:48
SpyroGuest5317309:49
Advocation joined09:49
CharlesFinley left09:50
freimatz joined09:51
hellopat left09:51
jatoben left09:52
sitaram joined09:54
osse TomyWork: the pattern should match directories09:54
ben_alman joined09:54
osse actually, it doesn't seem to like any form of wildcard09:54
jnavila__ joined09:55
SHyx0rmZ left09:56
davividal joined09:56
Guest53173 left09:56
jast ls-tree does use the PATH_GLOB option when parsing the pathspec09:57
I recommend quoting globbing pathspecs so that the shell doesn't sink its teeth into them09:58
jnavila_ left09:58
pretty_function joined09:58
ben_alman left09:58
jast that said, I can't get it to work either ;)09:59
francisfish left10:00
eijk_ left10:00
nafg_ left10:00
daedeloth what's the proper way to maintain a stable branch?10:02
eijk_ joined10:02
ghostlines morning, someone pushed some changed and we now have merge conflict because we edited the same file. After 'fixing' the conflict when I run the a git status I see a bunch of modified files that the other person pushed. Why is this?10:02
HelperW_ left10:02
daedeloth just create a branch" stable"?10:02
ChrisAnn joined10:02
HelperW_ joined10:03
ghostlines I would expect only the the file that has a conflict to be modified10:03
HelperW_ left10:04
kent\n_kent\n10:04
kent\n left10:04
kent\n joined10:04
_ikke_ ghostlines: when a merge conflict happens, the files aren't comitted10:04
HelperW_ joined10:04
grawity your branch didn't have those files at all, and now you're making a merge commit that does have them, so they show up as added10:04
ghostlines grawity, ahh that makes sense10:05
_ikke_ daedeloth: sure10:05
daedeloth: look at something like !gitflow for inspiration10:06
gitinfo daedeloth: The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/ while a tool to help implement this workflow is at https://github.com/petervanderdoes/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references10:06
ghostlines grawity what I also noticed is that the I can't see the changes that the other person added in the file that had the merge conflict10:06
I just moved around some lines of code, how do I know if the conflict is 'really' solved?10:06
teran left10:07
daedeloth _ikke_, hm, that's the opposite of what I had in mind, I thought the master branch was for development10:07
ghostlines and I deleted the HEAD and commit string that showed up in the merge conflict file10:07
Art44 left10:07
_ikke_ daedeloth: It doesn't matter10:07
Silmarilion left10:07
grawity ghostlines: did you delete all the markers though?10:07
ghostlines yeah10:08
_ikke_ daedeloth: The master branch is in no way special (except, that it's created by default, and by default the branch that gets checked out when cloning)10:08
grawity ghostlines: usually it shows up as "<<< HEAD" + your changes + "======" + other guy's changes + ">>> origin/blah"10:08
ghostlines but I could undo that10:08
daedeloth ah, alright.10:08
Guest53173 joined10:08
konadr left10:09
ghostlines grawity, ahh thx, now I understand the format!10:10
should I then just delete the markers, check if the code still runs good then add and commit?10:10
yuwang left10:10
alexandernst joined10:10
dort joined10:11
ahmedelgabri joined10:12
obert left10:12
thevishy left10:12
alexandernst left10:13
lb1a ghostlines, no you should pick or meld the two different versions10:13
Guest53173 left10:13
s4nchez left10:14
bgerber left10:14
msodrew joined10:14
m0ltar joined10:14
lb1a if you just remove the markers you end up with code that have both parts ( your code and the conflicting code from the other person) and most likely will be broken10:14
_ikke_ ghostlines: A mergetool helps greatly with this10:14
s4nchez joined10:14
vince_prignano left10:14
ghostlines ok thanks alot10:14
vince_pr_ joined10:15
lazers left10:15
_ikke_ ghostlines: Use something like meld or kdiff310:15
ghostlines cool10:15
lb1a (git mergetool has some proposals)10:15
cbot joined10:16
s4nchez left10:16
s4nchez joined10:17
Spyro joined10:17
bgerber joined10:17
SpyroGuest5885910:17
vince_pr_ left10:18
machine-x WAIT 200010:18
_ikke_ soo long?10:18
Guest58859 left10:18
Guest58859 joined10:18
Guest58859Spyro10:18
beautifulmind joined10:19
jayallen left10:19
arif-ali joined10:20
introom l;/join ##morse10:20
arizuka_ left10:20
arizuka joined10:21
nilg` joined10:21
Davey joined10:21
s4nchez left10:21
Exancillatus left10:22
xlinkz0 left10:22
hyperair left10:23
dyng left10:23
dyng joined10:24
simesy joined10:24
h0bbit_ left10:25
lb1a :wq10:25
fairuz left10:25
_ikke_ E_NO_VIM10:25
arif-ali left10:25
luc_ left10:26
dwmw2_gonedwmw210:26
acharlieh joined10:28
dyng left10:28
arif-ali joined10:29
echo-area left10:29
jizanthapus-work joined10:29
jayallen joined10:30
francisfish joined10:31
francisfish left10:32
endiruna left10:32
francisfish joined10:32
Silmarilion joined10:32
acharlieh left10:32
vince_prignano joined10:33
arif-ali left10:33
vkrest left10:35
eaj joined10:36
arif-ali joined10:36
hkon_ left10:38
lotsofcode joined10:38
Voyage joined10:39
Voyage I am using intelij idea IDE and github. I made a fork out of a main repo on github. Now I should checkout from the main and commit/push to the fork?10:39
hkon_ joined10:39
jayallen left10:39
arif-ali left10:41
jizanthapus-work Voyage, you should clone from your fork10:41
_ikke_ It doesn't really matter where you clone from10:41
Davey left10:43
jizanthapus-work _ikke_, it does wrt the tracking he'll have set up10:43
_ikke_ jizanthapus-work: You can always adjust tracking if you want10:43
ewet left10:44
eletuchy_ left10:44
_ikke_ You can pull / push from / to many repositories from one repo10:44
eletuchy joined10:44
jizanthapus-work _ikke_, in this case he will only pull and push from his fork10:44
dyng joined10:44
jizanthapus-work hence no need for extra step10:45
_ikke_ Nope, he should also pull from the main repo10:45
If you intend to make pull requests that is10:45
Voyage jizanthapus-work so where to checkout and were to commit? where /how to make pull request10:45
teran joined10:46
jizanthapus-work _ikke_, well ok, but still pushing to the main doesn't make sense10:46
Voyage, clone from your fork, push to it, use github's GUI for pull requests10:46
Exancillatus joined10:46
_ikke_ jizanthapus-work: If you already cloned to repo, you don't need to reclone. If you still need to clone, it's indeed easier to just clone from your fork10:47
lb1a jizanthapus-work, that will make the upstream maintainer angry, if he doesn't pull/merge the upstream prior to starting his PR10:47
Voyage jizanthapus-work I should checkout from fork also? or from main?10:47
Advocation left10:47
lb1a Voyage, doesn't matter, should be the same anyway10:47
_ikke_ Voyage: you use checkout the way svn uses it10:47
Voyage: checkout in git means something different10:47
weiyang left10:48
jnavila__ left10:48
jnavila joined10:48
Voyage _ikke_ I didnt used svn10:48
jizanthapus-work Voyage, checkout is when you already have a clone and want to retrieve a file at a specific revision10:48
what you want here is "clone"10:48
eletuchy left10:49
jizanthapus-work lb1a, noted; Voyage if you want to contribute to the main repository, add it as a remote and pull from it before making a pull request10:49
_ikke_ jizanthapus-work: That was what I was trying to tell ;-)10:49
ciampix joined10:49
bvi joined10:49
jizanthapus-work _ikke_, ok :-)10:50
lb1a all credits belong to _ikke_10:50
dort left10:50
bvi left10:50
eijk joined10:50
abrkn left10:51
eijk_ left10:51
nedbat joined10:52
pantsman joined10:52
jayallen joined10:53
eaj left10:53
huahax joined10:53
eaj joined10:53
dstuxo joined10:55
ambodi left10:55
yhager left10:55
bePolite joined10:56
bePolite How large mus a repo be for gith to hand10:56
handle?10:57
grawity are you asking for the maximum, or the minimum?10:57
Voyage jizanthapus-work _ikke_ lb1a when I will make a pull request to main (from my fork) and the project manager entertaines my pull requests, merges. Will my fork be also updated auto matically and the main will merge to my fork? (the changes of other collaborators / forks all get merged in main. so My fork will get those too?)10:58
bePolite grawity: For a maximum please10:58
s4nchez joined10:59
RichiH bePolite: you mean the maximum git can handle?10:59
jizanthapus-work Voyage, if you've made a pull request with some changes, you will already have the changes in your own repo11:00
ambodi joined11:00
bePolite Yes RichiH11:00
I mean the maximum size of a repository which git can handle11:01
h0bbit_ joined11:01
RichiH there is no clear-cut maximum11:01
bePolite: but unless your use case is _extreme_ you will be fine11:01
bePolite Ok so 500MB is fine11:01
RichiH bePolite: heh11:02
yes11:02
lb1a Voyage, no changes in another remote (main) will not make any changes to your remote (fork) unless you fetch/pull from main and push to fork11:02
diegoviola joined11:02
RichiH bePolite: below a few dozen GB, i would not even think about scalability11:02
s4nchez1 joined11:03
RichiH (and my largest git _annex_ repository is almost 1 TB in size)11:03
s4nchez left11:03
buzzybron left11:04
solker left11:04
murosai how can i check if a file has been added to git repository?11:05
craigp joined11:05
daito left11:05
ben_alman joined11:05
moritz murosai: do you mean 'added' as in 'added to the index'? or committed?11:06
if the latter, git log -- filename11:06
jayallen left11:06
vkrest joined11:06
murosai yeah the latter11:06
Voyage lb1a how can i pull from the main?11:07
vkrest left11:07
dstuxo left11:07
vkrest joined11:08
Voyage lb1a how can i pull from the main in my fork?11:08
s4nchez1 left11:08
correcto joined11:09
robban666 left11:10
ben_alman left11:10
bePolite Voyage: "git pull upstream master"11:11
but you first have to add the upstream11:12
Exancillatus left11:13
lb1a Voyage, not possible to "pull" from "main" into "fork"11:13
Voyage, you always have to clone either of these two, add the other one as remote (which you should have done by now) fetch both of them, merge them together as you like and push to remote if you want to publish your changes/merges/whatever.11:14
sluther left11:14
lb1a i sense a lack of knowledge about git !workflow11:15
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.11:15
bePolite left11:15
eletuchy joined11:15
Voyage thanks11:15
ambodi left11:16
robarelli joined11:16
ambodi joined11:17
veebers left11:17
diegoviola some developer is asking me to rewrite my history and use --force, that's most of the time a bad idea, right?11:18
he said it's not dangerous if it's in my branch11:18
shruggar you mean with git-filter-branch?11:18
_rgn afaik if it's your own branch and other people don't work on it it's probably safe11:19
diegoviola i think he mentioned git commit --amend11:19
ok thanks11:19
lb1a diegoviola, !rewrite11:19
gitinfo diegoviola: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum11:19
shruggar rewriting history for unpublished work is part of regular workflow11:19
Sabbath left11:20
lb1a diegoviola, the git push -f part is the dangerous one11:20
shruggar understand the git reflog. History rewriting is (usually) safe11:20
diegoviola thanks11:20
i mentioned that i'll just keep the history as-is11:20
but they insisted11:20
shruggar rewriting published work is annoying at worst. "safe" to me means "has potential data loss"11:21
err, "does *not* have potential data loss" ;)11:21
_rgn rewriting published work others haven't touched == ?? (safe afaik)11:21
Voyage lb1a jizanthapus-work If I am the project manager, the main repo is on my account. If i make code changes, i should also make another fork or just commit to the main?11:21
lb1a diegoviola, you can rewrite your unpublished history as much as you like, but rewriting published history involves "potential data loss" and "screw other peoples work" and "GTFO" and more ;)11:21
jargon left11:22
lb1a Voyage, your choice.11:22
jizanthapus-work Voyage, up to you11:22
diegoviola thanks11:22
how do i rewrite unpublished history?11:22
like merging few commits into one and such11:22
_rgn git commit --amend, git rebase -i11:23
Voyage lb1a jizanthapus-work whats a better appraoch? 2. if I make another fork, do I need another account?11:23
diegoviola thanks11:23
git commit --amend is only for changing the message of a commit no?11:23
jargon joined11:23
_rgn it will apply what you have staged to the commit also11:23
so not just the message11:23
diegoviola ok thanks11:23
lb1a diegoviola, everything that involves 'modifiying' existing commits is a "rewrite" of history, because in git objects are immutable. so every operation that changes existing commits is a rewrite. e.g. git commit --amend or git rebase (-i)11:23
shruggar git rebase -i @{u} <--- allows you to edit all history not yet published to the upstream11:23
jizanthapus-work Voyage, I'm not sure github allows you to fork your own repos11:24
Voyage, but you can always branch11:24
Voyage jizanthapus-work ya. your a right11:24
oh so, I can do a branch? that will work exactly like the fork?11:24
jizanthapus-work ok, the workers who have to fork the main, must be contributors of main repo too. so they can commit directly too? right?11:25
lb1a diegoviola, a git reset to some older point and contiuing another path of development (and pushing that) is a rewrite of existing history11:25
diegoviola right thanks11:25
Exancillatus joined11:25
shruggar "fork" is just a github word which can be translated into "branch in a way which doesn't show up in the main repository's list of branches"11:25
introom left11:25
lb1a githubs terminology is not the best :/11:25
ohcibi jizanthapus-work: of course it allows you to fork, it just means copy it to another user/organization you have rights for11:26
Voyage jizanthapus-work <shruggar> "fork" is just a github word which can be translated into "branch in a way which doesn't show up in the main repository's list of branches"11:26
true i guess11:26
shruggar I don't know how the internals of github work, but I'd be surprised if it actually did a "git clone" behind the scenes whenever "fork" was clicked11:27
macben joined11:27
Voyage lb1a jizanthapus-work ok, the workers who have to fork the main, must be contributors of main repo too. so they can commit directly too? right?11:27
hellopat joined11:27
lb1a Voyage, no how said that ?11:28
Voyage sorry?11:29
Sly1986 joined11:29
s4nchez joined11:29
TomyWork shruggar it might be on some dedup-capable fs11:29
Voyage if one can fork the main, he can commit to main too.11:29
macben left11:29
jargon left11:29
Voyage how to make a new branch on github site?11:29
lb1a Voyage, the whole point of "forking" in github terms is, that you have no commit rights on the "MAIN" repo. so everyone plays in his little sandbox (fork) and if he done he'll message the projectmanager and creates a Pull request, so the manager can integrate the work of the sandbox into the main repo11:30
TomyWork why else would they take actual time when fork happens?11:30
DoniRS joined11:30
lb1a Voyage, no, forking requires read access, commiting requires write access. 2 seperate things11:30
TomyWork branching, too11:31
skorgon joined11:31
hellopat left11:32
ohcibi TomyWork: no branching only requires write access if you want to push the branches11:32
8-)11:32
actually committing too11:32
TomyWork local branching is not a github operation11:33
i thought we were talking about github11:33
ohcibi oh, i forgot.. you can even branch and commit on github now....11:34
TomyWork yep and then accidentally make a pull request11:34
ohcibi which essentially makes students use github as a gui for git11:34
even confusing their remote repository with their local ones11:34
just because github11:35
TomyWork i once or twice used github as a student11:35
because it's free git hosting and who cares about the source of their homework?11:35
rchavik joined11:35
ohcibi we use it for a course where the students have to work on a project for one semester... proper usage of git is covered by our topic, but I'm mostly fighting against git-guis11:36
donnib left11:36
roxlu left11:37
shruggar I have set up git for several companies, and invariably someone comes in who only has any interest in using the "github client", which doesn't seem to support any basic operation, it feels like dropbox with optional commit messages11:37
skorgon left11:38
ohcibi github client11:38
*shiver*11:38
shruggar I have yet to successfully walk someone through its use in a way which doesn't involve them, two days later, pushing up 20 merge commits and 7 revert commits with no explanation as to why they were done, because the person using it didn't actually intend to do any of that11:39
TomyWork shruggar what's your take on gitlab?11:39
machine-x left11:39
subhojit777 left11:39
mikecmpbll joined11:39
machine-x joined11:40
solker joined11:40
shruggar never used it, but I expect to have an opinion by the end of the weekend. I'm at a client now who is the first to want to use git but not github (most clients just want to switch to using "github", don't know that git is a separate thing)11:40
vector_ joined11:40
TomyWork that's what i set up for the company. setup was quite painless for it being ruby11:40
arvind_khadri left11:41
vkrest left11:41
ohcibi TomyWork: setting up rails apps is quite painless in general nowadays... gitlab is nice11:42
shruggar ah, ruby will likely be a problem. They only have one aging server which they're afraid to install any new packages on (trying to convince them to let me set up some puppet scripts or similar for re-building a server image for disaster recovery and testing...)11:42
hejia joined11:42
ohcibi but I miss proper project management11:42
m0ltar left11:42
ohcibi its great for repositories but nothing beats redmine on projec tmanagement11:42
issues/calendar/wiki/documents and stuff11:42
vector_ left11:43
shruggar I seem to recall trying redmine once, but either I never got it set up, or the company never used it after it was set up, so it was forgotten11:43
ohcibi shruggar: if the server has sufficient packages to build ruby, it is not necessary to install additional packages... rvm ftw.. the deps are not that much11:43
Silmarilion left11:44
shruggar I use rvm locally, never tried it on a server environment (I use rvm to *match* server environments)11:44
ohcibi shruggar: it was intentionally build for managing server environments...11:44
dougsland joined11:45
TomyWork repo management and a bug tracker are two different things11:45
even if you call it project management for some reason :)11:45
ohcibi TomyWork: i know, still a project consists of repos, so its nice to combine them11:45
mvelioglu joined11:45
ohcibi TomyWork: its just that I wouldnt need the issue managment of gitlab just because of that reason11:46
kcj left11:46
TomyWork oh11:46
i dont even use that either11:46
shruggar I hate using multiple package managers, really. I wish they'd all talk to each-other better11:46
ohcibi TomyWork: we use it at work as a full project management suite... but integrating redmine is planned11:46
TomyWork shruggar like rpm and dpkg?11:46
telmich good day11:47
moritz telmich: lies!11:47
:-)11:47
ohcibi shruggar: rvm is not a package manager, it is a version manager that even uses the local package manager to install builddeps11:47
telmich moritz: always11:47
shruggar like rpm and dpkg and ruby gems and CPAN and rvm and composer and puppet modules11:47
setmeaway joined11:47
shruggar if you don't consider rvm to be a package manager, you either have a poor version of the word "package" or a poor version of the word "manager"11:47
ohcibi shruggar: you create a user for your web-app instal rvm for him and then you can bundle install all along, not affecting any other user/packages on the system11:47
Watabou left11:48
ahmedelgabri left11:48
telmich how can I find out, which remote branch I am tracking? i.e. I want git to return only remotes/origin/name/to/11:48
TomyWork for python there is stdeb which makes debian packaged from pip packages11:48
ohcibi shruggar: rvm is not a package manager..11:48
TomyWork maybe there's something like that for the others as well?11:48
vector_ joined11:48
TomyWork packages*11:48
ohcibi shruggar: it does way more than a package manager does11:48
robarelli left11:49
ahmedelgabri joined11:49
ohcibi shruggar: the package manager is rubygems11:49
TomyWork ohcibi it should do what i mean11:49
like install the correct ruby versions for my apps11:50
wbdecker joined11:50
wbdecker left11:50
ohcibi and rvm puts the packages of rubygems into a sandbox, that way you dont have to clutter up the systems packages with the rubygems11:50
arand_ left11:50
pretty_function left11:50
skorgon joined11:50
moritz telmich: git rev-parse --symbolic-full-name '@{u}'11:51
arand_ joined11:51
aard_ left11:51
arand left11:51
bartman` joined11:51
arand_arand11:51
Spyro left11:52
s4nchez left11:53
ohcibi TomyWork: it does exactly that.. you tell it to rvm install ruby-version and it installs the ruby version for the current user (create one for the app, e.g.), all gems will now be installed into the specific environment for that ruby version, bundler will then handle the needed versions of the gems for each app (or you can create specific envs for each app, depends on your needs)11:53
Guest60494 left11:53
shinnya joined11:54
Spyro joined11:54
SpyroGuest6916211:55
s4nchez joined11:56
skorgon left11:57
kriks joined11:58
thierryp left11:58
thierryp joined11:58
arvind_khadri joined11:58
TomyWork ohcibi hmm, the init script of that app seems to ignore it though11:59
Devastator joined11:59
ohcibi TomyWork: you mean there is a shell script that does not respect the current rvm environment?11:59
TomyWork: lets continue this in #rvm and have a look at the manuals on rvm.io, lots of common problems are explained there12:00
TomyWork it's an init.d script12:00
not gitlab's12:00
paulweb515 left12:00
TomyWork i'm working on something else right now though, but thanks for the offer12:00
ohcibi TomyWork: /j #rvm12:01
TomyWork: https://rvm.io/integration/init-d12:01
Devastatr left12:01
intellix left12:01
Devastator left12:02
Devastator joined12:02
zxd left12:03
dean|awaydean12:04
MattMaker left12:04
nedbat left12:05
danicampa901 left12:05
ben_alman joined12:06
intellix joined12:07
arizuka left12:07
diegoviola left12:08
ahmedelgabri left12:08
ben_alman left12:10
Xiti` left12:11
Nizumzen joined12:11
angelsl joined12:12
jooools left12:12
Xiti joined12:12
cmpera joined12:13
zxd joined12:14
vector_ left12:15
jargon joined12:16
angelsl left12:16
pantsman left12:16
Stygia joined12:17
EngierkO joined12:18
EngierkO left12:18
vurma left12:18
ambodi left12:20
irqq_ joined12:20
ambodi joined12:20
konadr joined12:20
konadr left12:21
konadr joined12:21
arvind_khadri left12:22
dfanjul joined12:22
juril left12:22
EngierkO joined12:22
EngierkO left12:23
irqq left12:23
h0bbit_ left12:23
EngierkO joined12:23
irqq_irqq12:23
h0bbit_ joined12:24
lazers joined12:24
CheckDavid joined12:24
ambodi left12:25
h0bbit_ left12:25
dyng left12:25
dyng joined12:26
rudisimo left12:26
machine-x left12:26
vince_prignano left12:27
rudisimo joined12:27
machine-x joined12:27
Advocation joined12:30
dyng left12:31
the_cybersphinx joined12:31
rudisimo left12:31
Nizumzen left12:31
Chais left12:32
diegoviola joined12:33
Voyage lb1a but github normal account has both read / write acces12:33
lb1a if one is a collaborator in a private repo. he gets full acces12:34
vtunka joined12:34
nfroidure left12:34
Voyage lb1a what you said is correct for public repos12:34
ambodi joined12:35
ambodi left12:35
daedeloth left12:35
ambodi joined12:35
netcarver joined12:36
lb1a Voyage, i dont knot about private repos access levels, but i work with a public organisation.12:37
ciampix left12:37
freeed joined12:37
lb1a Voyage, there you can add/edit teams with their members in read/write/admin access levels12:38
vkrest joined12:38
lb1a Voyage, i'd think this is similar to private repos.12:38
(if not, just create an organisation12:38
organization*12:38
poulson left12:38
jxpx777 left12:40
macben joined12:40
poulson joined12:41
vkrest left12:42
_Vi left12:42
ahmedelgabri joined12:43
Exancillatus left12:44
francisfish left12:44
macben left12:46
ZenGeist joined12:46
cannonball joined12:47
ZenGeist Hi all! I attempted to create new remote branch in repo with no changes, just new branch and after pushing it I saw, that git is sending all files to remote12:48
so I get doublesized repo12:48
jnavila left12:49
eslwork left12:52
dobalina left12:52
Exancillatus joined12:52
ohcibi ZenGeist: git actually only pushs the new branch-ref... what did you actually see that makes you think that this repo is double sized now?12:53
ZenGeist ohcibi: too long process of pushing. cca 30min with a lot of files12:54
jnavila joined12:54
ohcibi ZenGeist: maybe you did some commits after you pushed the other branches the last time but before you branched off?12:55
ZenGeist ohcibi: no12:55
tmcmahon joined12:55
ohcibi ZenGeist: then what exactly have you done?12:55
ZenGeist git checkout master12:56
git status12:56
git branch -b live12:56
git push -u origin live12:56
ohcibi if that really pushed new commits then either master wasnt pushed before or you did what I wrote before12:56
or you misinterpreted something and it hasn't actually pushed new commits12:57
Baluse left12:58
ZenGeist ohcibi: there are no new commits just the same repo one more12:58
ahmedelgabri left12:58
ZenGeist it was 2gb and now it's 4gb12:58
Advocation left12:58
ohcibi ZenGeist: have you rebased?12:58
ZenGeist no12:58
nilg left12:58
liuzhoou_ joined12:59
ohcibi again: if master was pushed before and you typed the commands in exactly this order with no commands at all in between, no commits can possibly be pushed12:59
or you pushed master to another remote...12:59
Macaveli joined12:59
ohcibi ZenGeist: can you show the repo, or reproduce an example?12:59
tmcmahon left13:00
lotsofcode left13:00
fire joined13:00
Baluse joined13:01
ZenGeist ohcibi: unf. no =( it was repo only with master branch13:01
Malice joined13:01
intellix left13:03
mlechner left13:03
ohcibi ZenGeist: when git pushes a branch, it checks what commit that branch points to, if that commit is already pushed (like when master was pushed before), then git only creates a new branch object remotely and let it point to the appropriate remote-commit, there is not even something uploaded here13:03
ewnd9 left13:03
ohcibi ZenGeist: this means there *must* have been something else you did, or you misintepreted.. as you cant reproduce it, remember this for the next time 8-))13:03
mlechner joined13:04
ZenGeist ohcibi: ok, thx13:04
simesy left13:06
m0ltar joined13:06
mdpatrick left13:06
boblee left13:07
boblee_ joined13:08
huahax left13:08
zumba_addict left13:08
nnyk_ joined13:09
smashwilson joined13:10
canton7-mac joined13:10
halu left13:10
Kayra joined13:11
Gamecubic joined13:12
vince_prignano joined13:14
makubi left13:14
jxpx777 joined13:15
jxpx777_ joined13:15
m0ltar left13:15
jxpx777_ left13:15
ZenGeist left13:15
Exdaix left13:15
_Vi joined13:15
aberrant joined13:15
CharlesFinley joined13:16
CharlesFinley Hi guys13:16
makubi joined13:16
CharlesFinley 1. I cloned a repo and switched to a new branch13:16
correcto left13:16
CharlesFinley git clone xxx13:16
git checkout -b feature-something-something13:17
bremner 3. profit!13:17
CharlesFinley did some changes13:17
did a git add .13:17
and got a middle finger in return13:17
canton7-mac what exact type of middle finger?13:17
bremner please be more specific.13:17
bah.13:17
dyng joined13:17
CharlesFinley http://hastebin.com/degerucige.vbs13:17
diegoviola left13:18
m0ltar joined13:18
canton7-mac it's not looking like you actually made any changes?13:18
[emmajane]emmajane13:18
CharlesFinley http://hastebin.com/foqemipici.xml13:19
here's what it shows when i do git log13:19
nfroidure joined13:19
CharlesFinley it actually logged my commits13:19
bremner right, so you already committed your changes13:19
mellernoia joined13:19
_ikke_ yes13:19
You have already comitted them13:19
so git says everything is clean13:19
jxpx777 left13:19
CharlesFinley ok then - why can't i push?13:19
_ikke_ CharlesFinley: Don't know13:19
canton7-mac I don't know. why can't you push13:19
?13:19
correcto joined13:20
bremner did you try "git push" ?13:20
CharlesFinley http://hastebin.com/korexugole.vhdl13:20
_ikke_ CharlesFinley: Have you tried reading?13:20
canton7-mac looks like it pushed to me13:20
diegoviola joined13:20
Norm_ left13:20
CharlesFinley and then i go to github and can't see neither my new branch13:20
nor any of my commits13:20
cads joined13:21
canton7-mac git log --graph --oneline --decorate --all13:21
pastie the result of that13:21
_ikke_ canton7-mac: You haven't set push.default13:21
CharlesFinley: *13:21
Norm_ joined13:21
canton7-mac that's just a warning though - the push succeeded with 'everything up to date' at the bottom13:21
_ikke_ CharlesFinley: git push origin master13:21
canton7-mac good point, matching as some odd behaviour, I always forget13:21
_ikke_ canton7-mac: yes, but git is trying to push master13:21
CharlesFinley: git push origin <branch_name> rather13:22
git push by default pushes every branch that the remote also has13:22
canton7-mac yeah, CharlesFinley, by (the current) default, 'git push' pushes all branches where a branch or the same name exists on the remote. since your branch doesn't yet exist on the remote, vanilla 'git push' didn't push it13:22
lindenle joined13:22
skorgon joined13:22
canton7-mac (as that warning says, this behaviour is changing in git 2.0, and you can adopt the new behaviour now)13:22
CharlesFinley _ikke_: thanks, it worked13:22
git push origin branchname worked ;)13:23
_ikke_ CharlesFinley: if you do git push -u origin branchname, it also sets up tracking information (you only have to do that once)13:23
canton7-mac (so that 'git pull' will know what to fetch and merge)13:23
CharlesFinley thanks :)13:24
_ikke_ And also for git status13:24
takamichi left13:24
canton7-mac and some others13:24
Macaveli left13:24
Exdaix joined13:24
Macaveli joined13:24
_ikke_ git branch -vv13:25
canton7-mac yup13:25
Macaveli left13:26
ben_alman joined13:26
Macaveli joined13:26
msodrew left13:27
vurma joined13:27
beautifulmind left13:29
angelsl joined13:30
dyng left13:31
takamichi joined13:31
CKyle joined13:31
tbrock left13:31
skorgon left13:32
tbrock joined13:32
stephCoue joined13:33
diegoviola left13:33
Exancillatus left13:33
alexlindenlevy joined13:35
rudisimo joined13:35
PaddyPatPat joined13:35
Advocation joined13:36
ewnd9 joined13:36
simesy joined13:37
baba joined13:37
takamichi left13:38
fire left13:38
vkrest joined13:38
babafire13:39
mikecmpbll left13:39
takamichi joined13:40
vkrest left13:43
subhojit777 joined13:44
simesy left13:45
arvind_khadri joined13:45
diegoviola joined13:45
nilg` left13:45
solker left13:46
ItSANgo left13:46
paulweb515 joined13:47
paulweb515 left13:47
paulweb515 joined13:48
berzerka joined13:48
thevishy joined13:48
thevishy left13:48
olle left13:48
thevishy joined13:48
berzerka after i cloned a repo, do i need to fetch remote branches (from origin) to see them, or should i already see them with git branch -a?13:48
_ikke_ berzerka: git branch -r (although, git branch -a shows them also)13:49
LionKing berzerka: You have to ¨checkout¨ them13:49
berzerka _ikke_, well then that project seems not to use any branches, was a bit confused. thanks!13:49
LionKing if you want to work on them13:49
_ikke_ Just checking them out is not enough13:49
ehmatthes joined13:50
_ikke_ You have to create 'local' branches for them13:50
v0n joined13:50
dort joined13:50
LionKing _ikke_: But does´t checkout exactly do that?13:50
_ikke_ LionKing: There is some automagic that does that, yeah13:51
berzerka when i do checkout origin/foo, will a local branch foo be created implicityly?13:51
intellix joined13:51
berzerka -y13:51
_ikke_ berzerka: git checkout foo will do that13:51
canton7-mac !local_branch_from_remote13:51
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.13:51
berzerka alright then.13:51
_ikke_ And it only works if there is no ambiguity13:51
canton7-mac ('git checkout origin/foo' will detach the HEAD - so you'll be able to see the files as they are on origin/foo, but any commits you make won't be attached to the branch. make sure you checkout a proper branch again before committing13:51
decotii joined13:52
ItSANgo joined13:53
JerryT joined13:53
mizu_no_oto joined13:54
yacks joined13:54
polyzen joined13:54
solker joined13:54
IrishPrime joined13:55
skorgon joined13:56
lotsofcode joined13:57
bernalex how do I get the behaviour of git rebase -i when I only have my master branch and no upstream?13:58
Diemuzi joined13:58
gitinfo set mode: +v13:58
bernalex what I want to achieve is reordering two commits and then squeezing them together.13:58
_ikke_ bernalex: By manually providing an upstream commit13:58
moritz bernalex: you can do git rebase -i <hash>13:58
bernalex _ikke_: there is no upstream13:58
moritz: oh yes of course13:59
moritz or HEAD~10 or so # for the last 10 commits13:59
sohail joined13:59
liuzhoo__ joined13:59
liuzhoou_ left13:59
bernalex it shows that I have been busy with meetings and planning and crap keeping me away from programming for far too long, considering this is something I do daily (almost hourly) usually :-P13:59
liuzhoo__ left13:59
bernalex doh. how do I sqaush a commit to the initial commit though?14:00
alexlindenlevy left14:00
luxgeek joined14:00
bernalex I know I can checkout and reset and ammend, but is there no way to do it more conveniently á la rebase -i?14:00
_ikke_ bernalex: newer version of git have git rebase --root14:00
alexlindenlevy joined14:00
phile joined14:01
bernalex _ikke_: of course. I have used this before plenty of times as well. :-P thanks.14:01
craigp left14:01
cmpera_ joined14:01
_ikke_ bernalex: Note that rebase calls to commit to base on upstream14:02
cmpera left14:02
cmpera_cmpera14:02
_ikke_ It's not tied to a tracking branch14:02
bernalex _ikke_: yes, that's fine. there's only master in this pet project right now.14:02
hopefully I can write something interesting today and put it on github or whatever.14:02
jerius joined14:03
el3ctron_ joined14:03
skorgon left14:03
nedbat joined14:04
nedbat left14:04
alexlindenlevy left14:05
Exdaix left14:05
takamichi left14:08
fire left14:09
Kayra left14:09
fire joined14:09
m0ltar left14:09
fireGuest3110814:10
hakril left14:10
Guest31108 left14:10
Davey joined14:10
baba joined14:10
takamichi joined14:11
dougsland left14:12
dsdeiz joined14:12
dougsland joined14:12
dobby156_dobby15614:12
g105b joined14:13
teran left14:13
Exdaix joined14:13
githogori left14:13
teran joined14:13
matheus23 joined14:13
deandean|away14:14
g105b When a branch is deleted from my remote (in this case, Github), how do I reflect these deletions in the `git branch -a` list?14:14
_ikke_ git remote prune14:14
aberrant left14:14
liamkeily joined14:15
ojacobson joined14:16
liamkeily left14:17
hejia left14:17
mtk joined14:18
gua_ould left14:18
FortySix2 joined14:19
m0ltar joined14:19
FortySix2 left14:20
dobby156 left14:20
ahmedelgabri joined14:21
BenL joined14:21
ahmedelgabri left14:21
ezekielnoob joined14:21
takamichi left14:22
BenL if I have two git repos, allegedly the same. and I think one might've been tampered with, how would I check?14:22
mizu_no_oto left14:22
Lunatrius left14:22
CKyle left14:22
armin_w BenL: run a diff tool against them14:23
TomyWork what do i do with https://raw.github.com/git/git/v1.7.2.5/contrib/completion/git-completion.bash on squeeze?14:23
(which comes with 1.7.2.5)14:23
FortySix2 joined14:24
BenL armin_w: you mean, check out from each repo and manually diff each branch?14:24
armin_w clone both repos and do a file comparision14:24
lindenle left14:24
calcifea left14:24
liamkeily joined14:24
nszceta joined14:24
BenL oh, on the repo itself?14:25
takamichi joined14:25
armin_w yeah its just files too14:25
cff left14:25
_ikke_ BenL: You can compare refs14:25
BenL: git show-ref14:25
And compare those14:25
BenL armin_w: right, so would work if they were at the same point, but if one is ahead of the other, that's trickier, right?14:26
_ikke_: how do I know the refs have not been doctored?14:26
_ikke_ for each ref, check if the ref in the other repo contains that commit14:27
falconfox joined14:27
francisfish joined14:28
correcto left14:28
chromano joined14:28
Exancillatus joined14:29
Dougie187 joined14:29
liamkeily left14:29
nszceta Alright I have a practical problem... Me and my buddies are working on an application but we are all relatively new to Git and we are using Bitbucket. So far they clone the core repo and submit pull requests back to the core repo from their own repo. However, this is causing me (the maintainer of core) and the pull requests to trash the view of the git log and it is hard to understand WTF is going on anymore. How would you handle a branching14:29
workflow without millions of merges?14:29
wongon joined14:29
AaronMT joined14:30
_ikke_ nszceta: !workflow14:30
gitinfo nszceta: 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.14:30
MattStratton left14:30
chromano I'm trying to generate commit hashes and I'm following this format: commit %d\0%s % (len, body)... but the hash I get never matches the one in git log, any ideas?14:31
skorgon joined14:31
livingstn joined14:33
salamanderrake left14:34
Dougie187 left14:35
_ikke_ http://stackoverflow/com/questions/186988514:35
ojacobson _ikke_: now how did you manage that14:35
_ikke_ manage what?14:35
Advocation left14:36
ojacobson Mangling a URL like that14:36
_ikke_ manually typing it14:36
CharlesFinley best tool for macs to resolve conflicts?14:36
_ikke_ http://stackoverflow.com/questions/186988514:36
chromano _ikke_: yeap, but like I said I didn't forget to wrap inside the header stuff14:37
_ikke_ Are you sure you have the exact same data?14:37
nszceta I'm still trying to wrap my head around ff-only vs rebase14:37
chromano yes, checked twice against git show -s --pretty=raw14:38
skorgon left14:38
strk joined14:38
relipse I have an issue, for some reason my coworker is making a commit and then a push, and it is addign 2 commits "Merging ...." and then the commit he specified, but it is not properly updating the site, is something wrong with his repo or is he not on the latest branch14:38
_ikke_ nszceta: --ff-only is a merge option that aborts the merge if it would result in an actual merge commit14:38
canton7-mac nszceta, if an ff-only merge will work, trying to do a rebase will do an ff-only merge14:38
strk I've changed a remote's name manually and now "git branch -r" contains a lot of references to the old name14:38
marthinal_ joined14:38
hellopat joined14:38
nszceta hmmm14:38
strk prune with the old name doesn't work, how to "clean" that up ?14:39
nszceta thank you - this clears things up14:39
vkrest joined14:39
chromano left14:40
marthinal left14:40
qsuscs left14:40
strk tried: rm -rf .git/refs/remotes/upstream/14:40
strk safe ?14:41
nZac joined14:41
strk (fixed branch -r)14:41
_ikke_ yes, but not comprehensive14:41
Dougie187 joined14:41
nszceta So what I'm seeing is that the best way to minimize the overload of merges in the git log is to rebase14:41
marthinal_marthinal14:41
strk comprehensive ?14:41
clarkfischer left14:41
strk _ikke_: you mean it's not enough to clean all refs to the old name ?14:42
King_Hual joined14:42
cotton left14:42
leakybuckit joined14:43
_ikke_ strk: the refs could also be stored in a pack file14:44
vkrest left14:44
cotton joined14:44
nerdfiles left14:45
alexlindenlevy joined14:45
strk would that affect use of the repository ?14:45
lotsofcode left14:45
strk in any common use ?14:46
dsdeiz left14:47
mikecmpbll joined14:48
lotsofcode joined14:48
pbujok joined14:48
arvind_khadri left14:48
welly joined14:49
welly left14:49
welly joined14:49
skorgon joined14:52
Karpuragauram joined14:52
heroux left14:52
pduin_ joined14:52
pduin_ left14:53
pduin joined14:53
sctt joined14:54
lindenle joined14:55
ahmedelgabri joined14:56
malkomalko joined14:56
Karpuragauram left14:56
ahmedelgabri left14:56
pantsman joined14:56
clarkfischer joined14:57
ruskie left14:57
ahmedelgabri joined14:57
jrobichaud joined14:57
welly left14:58
sctt left14:58
holodoc joined14:58
relipse Does anyone know why this commit is getting packed in with my other commits: Merge branch 'master' of bitbucket.org:...14:59
lindenle left14:59
liamkeily joined14:59
skorgon left14:59
relipse not only is that 2nd commit getting packed in there but the 2 commits are not getting updated14:59
How do i grab the latest and greatest from origin master and discard all local changes14:59
faBimon joined15:00
Usama_ joined15:00
faBimon left15:00
moritz git reset --hard origin/master15:00
faBimon joined15:00
nszceta ^ what he said15:00
ahmedelg_ joined15:01
CKyle joined15:02
prometh joined15:02
ahmedelgabri left15:02
prometh i'm looking to clean up my repo history... i have a bunch of simple readme commits that i'd like to merge15:02
they're way back in history.. not recent15:03
_ikke_ Is this repo shared?15:03
moritz prometh: have you published that history?15:03
prometh it's published, but it's private15:03
i tried doing a rebase -i, but it tried to merge everything15:03
merge/squash15:03
i'm looking to squash the oldest 20 or so commits only15:04
cjsarette left15:04
moritz rebase -i doesn't merge or squash anything, unless you tell it to15:04
oh, and modifying the root commit doesn't work out of the box15:04
prometh yeah, the oldest 20 after root15:04
moritz so leave the first commit alone, and only squash the 3rd into into the 2nd etc.15:05
diegoviola left15:05
hkon_ left15:05
prometh i tried that, but it somehow tried to squash everything15:05
moritz !repro please15:05
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.15:05
nedbat joined15:06
prometh well, i'm using sourcetree15:06
(gui)15:06
i guess i'll have to do this with a text editor, then15:06
moritz !gui applies :-)15:06
gitinfo Graphical user interfaces are not supported here. If you want to get support, it needs to be through the git CLI. Reasons: 1) Because very few people here use the graphical interface. 2) Because giving instructions for GUI's is difficult. 3) The command line gives you a history of what commands you have executed.15:06
tbmiller joined15:07
prometh yeah, i understand.. i just thought that maybe i was doing something obviously wrong and could translate it to the gui myself15:07
cmpera left15:09
m0viefreak joined15:09
welly joined15:09
Silmarilion joined15:10
matanya left15:10
robarelli joined15:11
mizu_no_oto joined15:11
kbart left15:11
Exancillatus left15:11
Macaveli left15:11
Exancillatus joined15:11
chrisshattuck joined15:11
chrisshattuck left15:11
leakybuckit left15:12
Macaveli joined15:12
rchavik left15:12
jasonroyle joined15:12
shawndumas joined15:12
Exancillatus left15:12
cotton left15:13
Rylee joined15:13
Rylee Hey! Question: How would one list all commits on the master branch since a given commit?15:14
wolfman left15:14
godgodgodgo joined15:14
welly left15:14
asQuirre_ joined15:14
mage_ git log givencommit..HEAD ?15:15
offby1 git log GIVEN..master15:15
zumba_addict joined15:16
Rylee That excludes some commits seemingly at random15:16
[VPS] rylai@wisp:~/code/atheme $ git log --oneline cbdb528...HEAD | tail -115:16
85fe039 Atheme 7.0-beta3.15:16
Bass10 joined15:16
Rylee Shouldn't the last commit be cbdb528 and not 85fe039?15:16
stodan left15:17
_ikke_ No, the first one is excluded15:17
A..B is ^A B is everything reachable by B, but everything reachable by A excluded15:17
armin_w left15:17
jwmann Hey _ikke_, did you get my messages before? :315:18
danecando joined15:18
_ikke_ jwmann: which?15:19
Malice left15:19
jwmann Where I figured out the reason why it couldn't my 'secret key' ?15:19
couldn't find*15:19
_ikke_ I haven't seen them15:19
tang^ joined15:19
jwmann I'll just re send ti15:19
_ikke_: I figured out why it wouldn't work.15:19
_ikke_: It's because I put something in the 'Comment' field.15:20
_ikke_ ah ok15:20
And it wants to match that too, right?15:20
jwmann I suppose! :S15:20
_ikke_ I guess so15:20
jwmann But after removing the comment field 'just for fun to see if it might work' and it worked15:20
I'm wondering, is there a way to check my tag to see if it was 'signed' properly?15:21
skorgon joined15:21
jwmann Because when it signed it said "You need a passphrase to unlock the secret key for user: "15:21
prometh moritz: so, to squash old commits, i would not use: git rebase -i HEAD~4 correct?15:21
jwmann Although the tag was still made15:21
becks__ joined15:22
strk left15:22
Rylee Hmm, alright15:22
thanks, mage_, offby1, _ikke_15:22
Exancillatus joined15:22
welly joined15:23
welly left15:23
BenL1 joined15:23
jasonroyle left15:23
aslaen joined15:24
prometh i'm looking to clean up my repo history... i have a bunch of simple readme commits way back in history that i'd like to squash15:24
BenL left15:24
rq60 joined15:24
faBimon left15:24
papegaaij left15:25
_ikke_ jwmann: git tag -v15:25
Bass10 left15:25
ErKa joined15:25
Davey left15:26
aberrant joined15:26
nnyk_ left15:26
jwmann Hmmm nothing showed up :S15:26
_ikke_ You have to pass the tagname iirc15:27
jwmann git describe shows v0.1.015:27
moritz prometh: if HEAD~4 takes you bag far enough, yes15:27
pikaren left15:27
prometh moritz: it only takes me back 4 from current15:27
moritz prometh: yes, that's the 4 in there15:27
_ikke_ yes15:27
prometh i want to go back like 100 to 100515:27
i don't want those 415:27
jargon left15:27
moritz then don't type 4 :-)15:27
_ikke_ prometh: You can also pass in hashes15:27
prometh i don't want HEAD-4... i want ROOT-2015:27
jwmann _ikke_: Oh, now I see more info on the tag. gpg says "Good signarture" so I guess it worked xD15:27
_ikke_ prometh: It doesn't work that way15:27
prometh i have to list all the hashes?15:28
or a hash range ?15:28
moritz no15:28
_ikke_ prometh: The parent of the last hash15:28
you want to change15:28
moritz just the hash from which the rebase is to start15:28
prometh ah, okay thanks15:28
both15:28
skorgon left15:28
_ikke_ prometh: Do you have merges in between?15:28
Because merges can cause problems15:28
prometh nope15:28
_ikke_ ok15:28
prometh thanks for teh heads up though15:28
shinnya left15:28
macben joined15:29
Lunatrius joined15:29
alexlindenlevy left15:30
welly joined15:31
welly left15:31
macben left15:31
facundor left15:35
daivyk joined15:36
mvelioglu left15:36
Guest6850 joined15:37
lotsofcode left15:38
Guest6850 Hi, my group hosts its stuff on GitHub. I had a question about the number of repos. Is it better to have a repo for each project, or one repo with lots of subfolders?15:38
Kayra joined15:38
prometh _ikke_ moritz: sorry for the delay.. i used the has of my root commit... now all commits are listed.. i'd like to pick the 20th oldest commit as the place to commit all older ones into15:39
moritz prometh: so do that15:39
Usama joined15:40
vkrest joined15:40
prometh having a little trouble figuring it out though15:40
Usama left15:40
Usama joined15:41
Usama left15:41
lotsofcode joined15:41
prometh i'll post a screenshot15:41
friesk joined15:42
Usama joined15:42
Usama_ left15:42
Usama left15:43
robarelli left15:43
Usama joined15:43
ruskie joined15:44
Usama left15:44
moritz no need to screen-shot; just copy&paste the text into a nopaste service15:44
Usama joined15:44
ebetancourt joined15:44
vkrest left15:44
axl_ joined15:45
Usama left15:45
Usama joined15:45
Usama left15:45
prometh oh yeah... well, already got a screenshot15:46
http://snag.gy/eBwBl.jpg15:46
Exancillatus left15:46
prometh i'd like to squash all from the top into v0.1.015:46
Usama joined15:47
prometh do i "pick" v0.1.0 ?15:47
_Qman left15:47
obert joined15:47
prometh or do i pick the top "no message" ?15:47
el3ctron2 joined15:48
moritz you pick those on that top that you want to leave unmodified15:48
and then 'squash' or 'fixup' those that you want to combine15:48
prometh oh i see15:49
hakril joined15:49
Norm_ left15:50
liamkeily left15:50
prometh so, fixup will let me set a new commit message?15:50
welly joined15:50
ashooby no, fixup discards the commit message15:50
prometh actaully.. i get the chance to change the commit message afterwards, anyway, right ?15:50
welly left15:50
ashooby if you use squash or edit15:51
karstensrage left15:51
prometh what if i use fixup on all of them ?15:51
it will squash and remove commit messages, making the commit message editing easier, right ?15:51
vurma left15:52
tadasZ joined15:52
thevishy left15:52
YoungFrog you could "edit" the first one, and "fixup" all others ?15:53
moritz you only get a chance to change the commit message if you use 'squash', or 'reword' instead of 'pick' in the baser commit15:53
bwreilly joined15:53
welly joined15:53
prometh "Cannot 'fixup' without a previous commit"15:53
wongon left15:53
prometh "edit" will still do a squash, right?15:54
githogori joined15:54
robarelli joined15:54
prometh so... squash first one, fixup rest ?15:54
ashooby if I were you I would do pick for the topmost, squash for the v0.1.0 commit and fixup for the rest15:54
prometh or edit first one, fixup rest?15:54
YoungFrog I meant "reword", if you only want to reword the commit msg.15:54
prometh: no, "edit" or "reword" the first, fixup rest15:54
prometh ok15:55
heroux joined15:55
chepre left15:55
jrobichaud left15:55
githogori left15:56
prometh taking a long time to --abort15:56
zxd left15:56
FortySix2 left15:56
infynyxx joined15:57
prometh ok, now where will this be placed in history ?15:58
chrisshattuck joined15:58
ambodi_ joined15:58
prometh if i give it a commit message of "v0.1.0", will it appear higher than v0.4.5 ?15:58
or, will it date it where my "edit" was ?15:59
YoungFrog err the order is not dependent on the commit message15:59
prometh i know, but the date15:59
YoungFrog I think the original date is preserved15:59
not sure thoug15:59
prometh i've done this before, but only from head down15:59
not root up15:59
zumba_addict should I run git stash pop first or git merge master into my feature branch?16:00
prometh hmm, actauly i don't think this worked16:00
it says only 1 file was changed16:00
M00sL0gB0t left16:01
M00sL0gB0t joined16:01
ashooby if you used "edit" or "reword" it will only have the files changed in that specific commit16:01
ehmatthes left16:01
skorgon joined16:02
FortySix2 joined16:02
ambodi left16:02
ashooby while you're editing the commit anyway16:02
el3ctron4 joined16:02
FortySix2 left16:02
roelmonnens left16:03
rath left16:03
prometh ashooby: http://pastebin.com/Nevm64YZ16:03
oh, it won't list all changes from all squashed commits ?16:03
Suprano left16:03
chrisshattuck left16:04
zizzl joined16:04
zizzl Hey guys working on the same app on heroku from two different computers.. cloned it on my second one and worked on it, now I'm back at the original one, what's the best method to update it with the new stuff?16:04
ashooby if you do edit, it will stop at that commit and allow you to edit that commit's commit message16:05
prometh yes, that's what i'd like16:05
cmpera joined16:05
ashooby if you do fixup, it will just get rid of the commit message16:05
prometh but it will still squash everything and preserve the date ?16:05
ashooby if you do squash, it will show all the commit messages and allow you to edit them all into one message as you see fit16:05
PerlJam zizzl: you can commit the changes to a common "central" repo like github. You can just add the other repo as a remote and fetch the changes directly.16:05
Silmarilion left16:05
prometh yeah, i'm replacing all messages16:05
bartman` left16:05
prometh the main thing i'm worried about is if it will still squash everything and preserve the date16:06
chrisshattuck joined16:06
PerlJam zizzl: I find it hard to answer "best method" questions because there's always some hidden constraints that no one mentions.16:06
zizzl PerlJam well I'm using heroku as that repo16:06
HelperW_ left16:06
zizzl so should I just clone it back over here?16:06
kukks joined16:06
ashooby it will preserve the date16:07
PerlJam zizzl: do the simplest thing that could possibly work :)16:07
HelperW joined16:07
zizzl PerlJam well I'm new to this so I'm asking16:07
basically easiest way16:07
in your opinion16:07
aChatir left16:07
prometh ashooby: and squash everyting ?16:07
ashooby yes, it should16:07
prometh ok, thank you16:07
Guest6850 left16:07
polyzen left16:08
mishok13 left16:08
cbreak-work left16:08
ashooby anyways, you should just do it, and if it doesn't work then that's what the reflog is for :P16:08
rather, if it doesn't do quite what you want16:08
skorgon left16:09
prometh never heard of reflog :)16:09
i may end up learning.. but i kinda hope not16:09
my tags are interfering with hiding history.. gotta remove them16:09
cbreak-work joined16:09
senj joined16:10
liamkeily joined16:10
LionKing left16:10
dougsland left16:11
john2x left16:11
prometh fuck16:12
Strogg joined16:12
prometh it created a separate branch of some kind that i cannot get back to16:12
Strogg 'lo 'lo16:12
liamkeily left16:12
WaReZ left16:12
prometh because of my tags, it did not rewrite history completely16:12
liamkeily joined16:12
prometh it looked like a branch in sourcetree (used to to picture what was going on)16:12
_tpavel joined16:12
Strogg When you use git log with --pretty:format, %d shows you all of the refnames for each commit. Is there a way to make it not show tags?16:12
konadr left16:13
prometh i switched back to master and removed the tags... now i can't get back to my new squashed shit16:13
Strogg I tried --no-decorate, but that doesn't work16:13
lavaman joined16:13
cbreak-work left16:13
tadasZ left16:13
liamkeily left16:14
prometh ashooby16:14
t0r joined16:14
liamkeily joined16:14
ashooby git reflog16:14
cbreak-work joined16:14
prometh k16:14
Parnic left16:15
tadasZ joined16:15
bdavenport left16:15
dougsland joined16:15
dougsland left16:15
dougsland joined16:15
ashooby you can use the HEAD@{#} annotations to do stuff like git reset HEAD@{3}16:15
liamkeily left16:15
ashooby and that will put you back in the state at that point16:15
though, you might want git reset --hard16:15
liamkeily joined16:15
prometh ugh16:15
malkomalko left16:15
prometh i just did some checkouts n stuff16:15
ashooby i'm actually not sure how reflog deals with tags16:15
prometh trying to find my commit16:15
cbreak-work left16:16
ashooby or if it does16:16
bdavenport joined16:17
ThomasLocke left16:17
liamkeily left16:18
ashooby also, when i rebase it has no problems with blowing away tags16:18
liamkeily joined16:18
prometh so, hwy did mine not work?16:18
AciD` joined16:18
AciD` hi16:18
gitinfo AciD`: 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.16:18
prometh how do i get out of this reflog?16:18
Anticom left16:18
ashooby q16:18
prometh contrl+c won't let me exit16:18
thank you16:18
AciD` !backup16:18
gitinfo Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups16:18
Exancillatus joined16:19
rob_w left16:19
joelm joined16:19
prometh ashooby: reflog only lists 15 heads16:19
ashooby git reflog --all16:20
oh wait16:20
no16:20
prometh http://pastebin.com/J4vj9sTL16:20
Parnic joined16:21
nZac left16:21
ashooby so, if you do something like `git reset --hard HEAD@{15} then it will put you back at the original state of the repo right after you cloned it16:21
this must be a new repo16:21
prometh nope16:22
ngladitz joined16:22
ngladitz left16:22
ngladitz joined16:22
prometh but i'm squashing my initial commits16:22
liamkeily left16:22
prometh from back when the repo was new16:22
oh... i'm working wiht a fresh copy16:22
as my other has changes in it and didn't wanna risk losing a stash16:23
aubreypwd joined16:23
ashooby not a bad idea16:23
prometh why would epxlain why there's only 15 heads i guess... i didn't really know what a head was16:23
h0bbit_ joined16:24
ashooby the HEAD is where you currently are in the tree16:24
prometh whcih*16:24
which*16:24
gittish left16:24
ashooby so HEAD{1} is where the head was 1 step ago16:24
prometh hmm, that's what i originally thought... then why aren't there heads available from before my clone?16:24
what is a "tree" then ?16:24
the whole repo tree, or a local clone16:25
Eugene reflog is a log of the LOCAL state of your refs; it does not have historical information about other repos16:25
prometh local state, yeah, ok16:25
Eugene If you want history-based refs you're looking for ^ ~ and friends - !treeish16:26
gitinfo A tree-ish is something that looks like a tree. Read 'man gitrevisions' and http://git-scm.com/book/en/Git-Tools-Revision-Selection16:26
prometh ok, so i need to reflog to the start of my local state16:26
FleaFlicker joined16:26
FleaFlicker left16:26
prometh hmm16:27
ok, i did: git reset --hard HEAD@{15}16:27
Bass10 joined16:27
prometh then i try to start a new rebase.. but it says that a rebase dir already exists16:27
my tags have not returned16:27
Eugene What are you trying to do/16:28
AciD` noob question : I started working on a project few months ago (located in /old/path/to/proj), using git to manages changes. I now want to totally reorganize my files in a new directory structure like /new/path/to/proj (cherry picking each file to mv it to a specific new directory, then later renaming it). How should I proceed if I want to keep the history for each file ?16:28
ezakimak_work joined16:28
HelperW left16:28
AciD` I only have 5 files in git, so I can do that manually16:28
prometh Eugene: undo a rebase -i that didn't appear to do antyhing at all16:28
Eugene Ahhhh I see.16:29
DolphinDream joined16:29
DolphinDream howdy16:29
prometh it did, but when my tags interferred, i switched to master to remove them... then i couldn't get back to my squash16:29
ashooby if the rebase directory already exists then do git rebase --abort to get rid of it16:29
pheaver left16:29
prometh git rebase -i b08821e5817155be50527e15909b3f8585f1ba7f16:29
warning: refname 'HEAD' is ambiguous.16:29
warning: refname 'HEAD' is ambiguous.16:29
warning: refname 'HEAD' is ambiguous.16:29
wtf is this shit16:30
DolphinDream what is the recommended comment (first line) length ? (following the rule first line:summary, second line: empty, third line and below: details)16:30
osse DolphinDream: 50 chars typically16:30
PerlJam DolphinDream: 60 chars I think.16:30
osse oh16:30
DolphinDream i'll take 5516:30
:)16:30
PerlJam heh16:31
osse 54.9 then16:31
calcifea joined16:31
DolphinDream *sqrt(pi)/phi16:31
prometh ashooby: ok, i aborted it.. but now i get the above weirdness16:31
ashooby if you use vim, it will complain at you when you go past the recommended length16:31
DoniRS left16:31
ashooby though, I don't actually know what it is16:31
PerlJam If you have an appropriate .vimrc or .emacsrc for your git commit messages, it'll color the text different when you hit the "limit"16:31
prometh is my repo fucked ?16:31
nicedice joined16:32
Eugene It sounds like there's something odd going on, yes.16:32
DolphinDream do you have to explicitely break comment lines to 72 or something ? (if you're not using vim;)16:32
Kicer86 joined16:32
osse DolphinDream: you "have to" do that no matter what editor you use16:32
Eugene Have you done any actual work in this repo? Or would a fresh `git clone` be viable?16:32
h0bbit_ left16:32
prometh yes, i have work in it16:32
juliohm joined16:32
prometh err, wait... no, this is a fresh clone16:33
nZac joined16:33
prometh but i've force pushed my rebase16:33
Eugene My advice: rm -rf16:33
Oh. I see.16:33
alan_ joined16:33
Eugene Well hilarity ensues!16:33
DolphinDream osse, i assumed vim does it for u. i sometimes use smartgit16:33
Eugene Do you have any /other/ clones running around?16:33
prometh and now ashooby isn't responding16:33
LucasKA left16:33
alan_Guest3129216:33
ezakimak_work left16:33
ashooby well I was going to say what Eugene did :P16:33
prometh then why did you tell me all would be fine?16:34
ashooby I've never actually seen the head is ambiguous comment so I don't know what to make of it16:34
prometh when it's busted now16:34
Eugene didn't tell you anything :v16:34
prometh seemingly... i mean, my files are intact16:34
ashooby did, though16:34
osse DolphinDream: vim's default setup for commit messages is to automatically insert a linebreak whenver you type and you pass 72 characters. But if you paste something or do other edits then you have to fix it yourself16:34
ashooby well, if you are only doing it in a fresh clone then your original repo will be find16:34
prometh i'm not blaming, i just wanna figur eit out16:34
Guest31292 i'm on ubuntu 12.04 and i have git version 1.7.9.5. according to git's website the latest version is 1.8.5.316:34
is there a reason apt-get doesn't have that version yet16:34
prometh ashooby: i did a force push16:34
ashooby but if you pushed it before you were sure it was right...16:34
DolphinDream osse, gotcha. why this 72 rule exactly ?16:35
prometh i was sure16:35
jnavila left16:35
osse prometh: my guess is that somehow a ref (branch/tag/...) named HEAD was created, and that screws things up16:35
ashooby if the problem is the tags, then I don't really know anything about tags16:35
prometh i asked questions which reassured it16:35
chrisshattuck left16:35
Nevik DolphinDream: 80cars plus tab16:35
chars* even16:35
osse DolphinDream: 80 - a little bit to allow for indentation in the output of git/log and for when you quote stuff in emails16:35
I think16:35
prometh there're no branches16:35
chrisshattuck joined16:35
Nevik DolphinDream: so as to make it displayable in an 80col terminal16:35
prometh just checked on github16:35
ashooby oh wait16:35
Eugene DolphinDream - because there are a lot of people still stuck in the 1970s and don't understand how to have reflowed text. Make your commit message lines as long as you goddamn well please IMO. Try to keep the first line short(treat it as a "Subject" a la email"), but to hell with it on the rest.16:35
ashooby prometh: do you have a branch named HEAD?16:35
DolphinDream Eugene, :) oh boy16:36
prometh locally, yes16:36
ambodi_ left16:36
ashooby ok, get rid of that16:36
or rename it16:36
git branch -m HEAD newname16:36
to rename16:36
thiago joined16:36
ashooby that's why you're getting that warning16:36
ambodi joined16:36
DolphinDream Eugene, i;d vote for you as the presient :)16:36
president16:36
blinkdes_ joined16:36
Eugene \o/16:37
prometh delete it remotely or locally ?16:37
ashooby16:37
ashooby both16:37
swaechter left16:37
osse prometh: you should be able to specify refs/HEAD or refs/heads/HEAD to resolve the ambiguity. But if the error comes from the internals of a git command then there's nothing you can do16:37
DolphinDream Nevik, how many are stuck ? :) can we stash them ?16:37
ashooby HEAD is used by git to refer to your current branch, so having a branch called HEAD is a little screwy16:37
pantsman left16:37
pduin left16:38
Nevik DolphinDream: it's just a convention. many are of Eugene's opinion by now and dont stick to it too much. I personally do because my editor is already set up that way.16:38
DolphinDream Eugene, .. but for the first line what's your vote for the length ?16:38
Raging_Hog left16:38
Eugene DolphinDream - "about a sentence"16:38
ashooby ^16:38
Nevik DolphinDream: i think it's a good idea not to let the lines get too long, so they're easily readable in editors/viewers that dont have line wrapping on. but other than that, it's up to your own judgement16:38
prometh ok, done16:38
DolphinDream Nevik, I do still stick to it but only because i typically split my editor vertically in two.. so each one has about 80 or so16:38
ghostlines left16:39
Eugene Almost all viewers have line wrapping; it's reflowing at word breaks that's the issue.16:39
DolphinDream Eugene, so 3 words :)16:39
ezakimak_work joined16:39
ashooby at my job we use the first line to say somethign like "fix issue xx"16:39
DolphinDream I think short first line is important also for the graph ..16:39
tang^ assume that somebody will read that first line on a phone at some point... short and sweet16:39
ashooby so most of ours actually are only 3 words :D16:40
blinkdesign left16:40
Eugene :Frobnaz the foobar by bazbaring" is fairly typical of me.16:40
rchansen joined16:40
lb1a left16:40
prometh yeah, it's not working correctly ashooby16:40
Guest31292 left16:40
vkrest joined16:41
ashooby what exactly did you push to the remote?16:41
Nizumzen joined16:41
ambodi left16:41
DolphinDream ok.. tweeter style messages :) except only 55 characters16:41
osse I'm a bit skeptical about referencing issue numbers etc in commit messages without any other info. What if you change bug trackers? Stuff like that16:41
ashooby or rather, what is the actual problem, I'm not sure I completely understand16:41
mani2399 joined16:41
LeMike left16:41
ashooby osse: then we'll have to look at the rest of the commit to see what it actually was I guess16:41
and then...16:42
pheaver joined16:42
takamichi left16:42
ashooby refer to them as "<new bugtracker> issue xx" probably16:42
macben joined16:42
prometh ashooby: here's what sourcetree says has happend: http://snag.gy/hFQsD.jpg16:42
tang^ osse: I just ran into that with some bitbucket/jira testing I was doing16:42
noname001__ left16:42
chrisshattuck left16:42
tang^ imported bitbucket issues into a jira project and the numbers changed16:43
RandalSchwartz joined16:43
RandalSchwartz why does git-pull omit the git-fetch --prune switch?16:43
ashooby so, HEAD is a tag?16:43
prometh i guess so... i never added it16:43
RandalSchwartz it has nearly everything else fetch does16:43
prometh but why is it up there... why did it not squash antying ?16:43
RandalSchwartz am I missing something?16:43
Eugene Booze16:44
kesha joined16:44
diegoviola joined16:44
ashooby I'm not entirely sure what is happening in that picture prometh16:44
maybe someone more knowledgable can chime in16:44
it looks like you have a merge commit16:45
that is tagged HEAD and also has no message?16:45
Eugene RandalSchwartz - I'm guessing some historical reason, but I can't be arsed to hunt through the mailing lists for it16:45
vkrest left16:45
user258467 left16:45
chrisshattuck joined16:45
prometh this is what i did: http://pastebin.com/Nevm64YZ16:45
and this is what happend: http://snag.gy/hFQsD.jpg16:45
anyone?16:46
oh yeah, i then amended the commit message to be "v0.1.0" and did a force push16:46
and that screenshot shows me what happend.... looks like nothing.16:46
dreiss joined16:47
subhojit777 left16:47
jrnieder RandalSchwartz: looks like it was documented in an ifndef::git-pull block since day one16:47
mikecmpbll left16:48
thevishy joined16:48
skorgon joined16:48
jrnieder RandalSchwartz: for no obvious reason. probably worth trying a patch to take it out of that block?16:48
heroux left16:48
osse perhaps in case the current branch's tracking branch is removed from the remote?16:48
jrnieder I don't see how that would be harmful16:48
osse oooh, it actually works but isn't present in the docs?16:48
macben left16:48
osse jrnieder: it would be harmful if pull then tries to merge16:48
I guess16:48
prometh Eugene: can you help me ?16:49
jrnieder if I'm on master and origin/master goes missing, 'git pull' should fail whether it wants to remove the remote-tracking branch or not16:49
Eugene prometh - do you have shell access to your remote repo?16:49
prometh maybe, i dunno16:49
it's on github16:49
ashooby prometh it might help if you had a log of what you actually typed into the terminal16:49
Eugene Then no.16:49
Any other clones of it handy at all?16:49
ashooby to get your repo into this state16:49
heroux joined16:49
prometh it rebase -i b08821e5817155be50527e15909b3f8585f1ba7f16:50
git commit --amend16:50
jrnieder s|origin/master|origin's master| in my example16:50
heroux left16:50
prometh then i did a force push to master.. using sourcetree, though16:50
paulweb515 left16:50
blizzow joined16:50
starkhalo joined16:50
misterpink joined16:50
prometh looking at sourcetree's log.. it did this: git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --force origin master:master16:51
ehmatthes joined16:51
g105b left16:51
pheanex joined16:51
blinkdes_ left16:51
huahax joined16:51
ashooby link to the github?16:52
axl_ left16:52
prometh https://github.com/stevenvachon/can-boilerplate16:52
dreiss left16:52
blinkdesign joined16:52
pen joined16:53
wrouesnel joined16:53
cagedwisdom left16:54
bwreilly left16:54
m8 joined16:55
skorgon left16:55
prometh i guess github won't let us rewrite ancient history16:55
axl_ joined16:55
ashooby the github looks fine16:55
prometh yes, the rebase appears to have done nothing at all16:56
how can i rewrite ancient history?16:56
ashooby just a second, let me look at it16:56
axl_ left16:56
lindenle joined16:56
cmpera left16:57
tbrock left16:58
blindingdawn joined16:58
Nizumzen left16:58
pheanex How would you use git log --format to show only the title(first line) of the commit message. "%s" gives me more than that. => further parsing needed. Is there a way to do this in git only?16:58
zumba_addict left16:58
chepre joined16:58
cmpera joined16:59
rchansen left16:59
osse pheanex: strange. %s is supposed to only be the first line. Does it give the same output if you use %B ?16:59
francisfish left17:00
intellix left17:00
calamari joined17:00
LeMike joined17:00
baba left17:00
prometh ashooby: anything?17:01
lindenle left17:01
kukks left17:01
m0ltar left17:01
nathancahill joined17:01
maestrojed joined17:01
pheanex @osse %s seems to be the same like %B withouth the newlines17:02
prometh k, well, i guess that means you don't know17:02
prometh needs lunch17:02
osse prometh: hmm, do you have an empty line between the first line and the rest?17:02
mikecmpbll joined17:03
qsuscs joined17:04
pheanex @osse %s hast no empty lines at all and %B has one at the end but not in between. btw git version 1.8.5.317:04
calamari had a guy that claims he committed his code to his branch. then he pushed the branch to the remote. he then did a pull, and said his commit was gone. I checked and it was found as a dangling commit, and we recovered it. how could this have happened?17:04
zumba_addict joined17:04
pheaver left17:05
calamari (the pul was the next day)17:05
osse pheanex: no I mean the actual log messages themselves (as with a plain git log). Do they have an empty line between the first and the last?17:05
afhammad joined17:05
shruggar calamari, how many people on your team?17:05
gnu-man joined17:05
juliohm left17:06
ErKa left17:06
senj left17:06
dougsland left17:06
rjen joined17:06
pheanex osse: plain "git log" without the pretty/format shows it the right way, meaning commit <id> newline author: <author> newline date: <date> newline newline <title>newline<body>newline newline17:07
imachuchu joined17:07
Nevik calamari: check his reflog to find out? ;)17:07
osse pheanex: usually there's two newlines between the title and the body. Maybe Git thinks everything before the first empty line is the title17:08
jast pheanex: %s and friends rely on the assumption (and common convention in git) that the first line is followed by a blank line17:08
i.e. the first 'paragraph' is the subject17:08
m0ltar joined17:08
calamari shruggar: about 1017:08
Nevik: will do17:09
pheanex osse: i guess that solves the problem, when committing we dont use a blank line to separate title with body17:09
jast and that's all from me. on my way into the internet-free zone... :)17:09
pheanex osse: thanks for your help17:09
SocalNick joined17:09
shruggar calamari, I had the same suggestion as Nevik, but 10 people might be a small enough number to say "have *everyone* check their reflog to find out"17:09
psyl0n joined17:10
shruggar because it could be he pushed, then *someone else* forced a push to clobber it17:10
alorence left17:10
shruggar if you're not enforcing forward-only17:10
cmpera left17:10
Nevik however17:10
a pull would then have told him17:10
nZac left17:10
calamari what will a force push look like?17:10
Nevik that it's non-ff17:10
calamari: what do you mean17:10
mizu_no_oto left17:10
FatDarrel joined17:11
calamari how will I know from looking at reflog output that someone did a force push17:11
devbug joined17:11
RogerWS_ joined17:11
Nevik you wont. you would be able to tell if history-rewriting happened before. you'd most especially probably find the action on $claimant's reflog that shows him skipping away from his commit17:12
shruggar calamari, check not for the presence of a forced push, but for the presence of a command which would move towards one (such as a hard reset)17:12
Nevik probably resetting his branch17:12
calamari: basically, a pull cannot lose his commit17:12
if someone lost his commit by force-pushing, pull would have merged it back in for him17:12
calamari so it will say hard reset?17:12
cmpera joined17:12
shruggar iirc, some git commands dangerously suggest resetting in the event of an unknown problem17:12
Nevik so he did some other operation of his own (probably a hard reset or plumbing commands) that lost his commit17:13
RogerWS left17:13
pheanex left17:13
el3ctron2 left17:13
halu joined17:14
shruggar and if the reflog is empty or short, it may mean he deleted and re-created the branch (I've seen people around here do that when getting changes for branches they hadn't intended to modify)17:14
el3ctron_ left17:14
el3ctron4 left17:14
Nevik calamari: to summarize, there's no 100% sure way to find out what happened17:14
but you might find indications. and it's most probably his own fault17:14
RandalSchwartz left17:15
solker left17:15
Nevik calamari: another thought: if he uses the command-line, check his command history17:15
kwstas joined17:15
bwreilly joined17:15
wongon joined17:15
bwreilly left17:16
mlechner left17:16
bwreilly joined17:16
pen left17:16
calamari "reset to origin" is that anything to worry about?17:16
ncthom91 joined17:17
Nevik calamari: what's the exact line?17:17
kwstas hello there! I'm have a remote branch named 'mybranch' and a local one with the same name and configured to track the remote. I know that the remote has 3 additional commits. Why when i call "git fetch remote mybranch" the origin/mybranch does not update?17:18
Sly1986 left17:18
nZac joined17:18
calamari HEAD@{11}: branch: Reset to origin/ded_v2_addInspector17:18
kwstas instead i need to fetch all remotes 'git fetch origin' to get the new commits17:18
Nevik kwstas: !fetch417:18
gitinfo kwstas: [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).17:18
calamari that was the line right before his commit in the reflog17:18
Voyage left17:18
freimatz left17:18
Vampire0 calamari, origin is just the name of your configured remote in your repository17:19
Nevik calamari: before his commit? so is his commit @12 or @10?17:19
kukks joined17:19
kukks left17:19
kukks joined17:19
kwstas gitinfo: but what if I want to update only a specific branch and not everything?17:19
Nevik kwstas: why do you not want to update everything?17:20
they're just remote branches17:20
zumba_addict left17:20
calamari his commit is 1217:20
mani2399 left17:21
beyondcreed joined17:21
beyondcreed left17:21
beyondcreed joined17:21
Nevik calamari: then the reset came after (the reflog counts from now backward in time), so yes, that reset is probably what lost his commit17:21
kwstas Nevik: For no specific reason :)17:21
m0ltar left17:21
Nevik kwstas: !fetchfourwhy17:21
fire joined17:21
Nevik argh what was that trigger again17:21
kwstas: !fetch4why17:21
gitinfo kwstas: The four-word version of git-fetch doesn't update remote-tracking branches and tags. It fetches into FETCH_HEAD only; you probably don't want to have to deal with that. Pull in four-word form automatically uses FETCH_HEAD, but your remote-tracking will still be outdated. Even updating them manually with 'git fetch origin master:remotes/origin/master' (clunky) still doesn't update tags.17:21
Nevik yay consistency17:21
paulweb515 joined17:22
blinkdesign left17:22
LeMike left17:22
Nevik kwstas: tl;dr, if you want to update only that one branch, you have to use pull or enter the full refspec17:22
TomyWork left17:22
Nevik (of course, pull will merge your local into the remote as well)17:22
kwstas Nevik: :) ok, thanks. I thought that I was doing something wrong, because many online tutorial advertise the command "git fetch <remote> <branch>" as the appropriate to update a branch17:23
Nevik oh wait 4-word pull doesnt update remote tracking either17:24
kwstas: that's why we have a trigger for it :P17:24
you're not the first person to have trouble with this17:24
calamari Nevik: http://pastebin.com/SWeA282P I marked the commit that was later lost with asterisks17:24
vince_prignano left17:25
calamari Nevik: ah so the top line in relog is most recent?17:25
kwstas Nevik: nice! thanks again. I can now finally sleep in peace :)17:25
Nevik calamari: yes17:25
svm_invictvs joined17:25
Nevik kwstas: no problem ;)17:25
svm_invictvs how do you specify the default branch?17:25
calamari Nevik: thanks!!!17:25
MistuhKurtz joined17:25
BenL joined17:25
svm_invictvs is there a configuration option that makes the "master" branch the actual master?17:26
Nevik svm_invictvs: no17:26
git init will create the master branch by default17:26
iirc that's hard-coded into git init17:26
but after initing the repo, you can just treat any branch as the main (you can delete or rename master too, if you want)17:26
nothing is special about the "main" branch17:26
gitinfo set mode: +v17:26
BenL1 left17:27
svm_invictvs Nevik: Ah, I see.17:27
Nevik calamari: what i find odd about that reflog is those lines where he changed from <branch> to <samebranch>17:27
cmpera left17:27
calamari Nevik: we are using a gui tool called GitExtensions, it is probably doing silly things behind the scenes17:28
Nevik hm, it might17:28
svm_invictvs Nevik: I renamed my remote master branch and created a new master branch. Evidently when somebody clonest he repository they get the old master checked out by dfault.17:28
skorgon joined17:28
shruggar left17:29
Nevik calamari: i just found http://git.kaarsemaker.net/git/commit/c512b035556eff4d8f869afeda5fd78bc7a4966d/17:29
mikecmpbll left17:29
ncthom91 left17:29
Nevik calamari: so my guess is that he used git branch -f (intentionally or by suggestion of git extensions), which seems to include a reset operation. that might well have lost his commit17:29
becks__ left17:29
Nevik calamari: the option is probably a rather inconspicuous checkbox in git extensions17:30
blinkdesign joined17:30
donmichelangelo left17:30
becks__ joined17:30
Nevik svm_invictvs: ah, yes. the remote probably has a HEAD symref pointing to that17:30
ecky--ptang-zoob left17:30
calamari Nevik: I suspect you are right, thanks a lot17:30
DolphinDream is there a reason for this difference between log and diff : git diff origin/master...master gives me the changes between the master and the common ancestor of origin/master and master, WHILE git log origin/master...master (gives me the log between the two branches). I have to user the .. notation instead of ... to get the log between master and the common anceestor of origin/master and master17:30
Nevik calamari: sure :)17:30
donmichelangelo joined17:30
ecky--ptang-zoob joined17:30
DolphinDream it's almost like the git log got the .. and ... switched17:31
arietis joined17:32
Nevik DolphinDream: from man git diff:17:32
gitinfo DolphinDream: the git-diff manpage is available at http://jk.gs/git-diff.html17:32
fRAiLtY- left17:32
Nevik git diff [--options] <commit>...<commit> [--] [<path>...]17:32
This form is to view the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>. "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B".17:32
You can omit any one of <commit>, which has the same effect as using HEAD instead.17:32
(tl;dr: dont use commit ranges with git diff)17:32
takamichi joined17:32
arand left17:32
Nevik DolphinDream: a diff is always between two points (commits), not across a commit range17:32
nZac left17:33
DolphinDream Nevik, what's a commit range?17:33
Nevik A...B17:33
and A..B17:33
are both ranges17:33
huahax left17:33
Nevik DolphinDream: see man gitrevisions for what the notations mean exactly17:33
gitinfo DolphinDream: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html17:33
huahax joined17:34
DolphinDream Nevik, if i want to see what changes were introduced by both my local master and the remote/master i do git diff master..origin/master17:34
is that not the way to go ?17:34
atrus i've written up a little script that compares a range to a range. it's.... interesting.17:34
Nevik DolphinDream: that description doesnt make sense. you seem to want a diff of two diffs17:35
"changes introduced by master" is a diff (assuming some arbitrary point from which you diff master's current state)17:35
JohnBat26 left17:35
DolphinDream Nevik, show me the changes between master and origin/master17:35
Nevik DolphinDream: git diff master origin/master17:36
skorgon left17:36
Nevik is the difference between the current state of master and origin/master17:36
ncthom91 joined17:36
DolphinDream and the chagnes on master that are NOT on origin/master ?17:36
p4denis left17:36
Nevik DolphinDream: git diff (that mergebase expression from above) master17:36
DolphinDream Nevik, why not git diff origin/master...master ?17:36
Nevik that's equivalent to what i just said17:37
p4denis joined17:37
Nevik but it's confusing17:37
because it's not interpreted as a commit range17:37
dmarkham joined17:37
lotsofcode left17:37
Nevik because commit ranges don't make sense with a diff17:37
jceb joined17:37
cmpera joined17:37
DolphinDream so.. my question is then.. why doesn't git log origin/master...master do the same thing (except that for logs instead of diffs)17:37
codeforfun joined17:37
nbouscal left17:37
Nevik well, technically, A...B is a commit set, not a pure range17:37
DolphinDream: if you had looked at the man page as i told you, you'll notice that A...B means "everything reachable from A and everything reachable from B, except not everything reachable from both"17:38
which is *not* what you say you want17:38
cllamas left17:38
DolphinDream ok. i'll have to revisit that page. thanks17:39
blinkdesign left17:39
yacks left17:39
mr_red left17:39
dreiss joined17:39
alexlindenlevy joined17:39
Nevik sure17:40
yhager joined17:40
mgolawala joined17:40
SocalNick left17:41
xsbeats joined17:41
p4denis left17:41
nszceta left17:41
vkrest joined17:41
mr_red joined17:42
welly left17:42
nszceta joined17:42
tang^ left17:42
jceb left17:42
nbouscal joined17:43
Sonderblade left17:43
rue joined17:44
PaddyPatPat left17:44
_tpavel left17:44
huahax left17:45
zumba_addict joined17:45
huahax joined17:45
Exancillatus left17:45
edwardly left17:45
craigp joined17:45
vkrest left17:46
ashoobyashooby|lunch17:46
edwardly joined17:46
canton7-mac left17:46
m0ltar joined17:47
koda left17:47
becks__ left17:49
nsfwxnrand17:49
thierryp left17:49
becks__ joined17:49
edwardly left17:50
SocalNick_ joined17:50
m0ltar left17:51
richwestcoast left17:52
richwestcoast joined17:52
becks___ joined17:52
infynyxx left17:53
becks__ left17:53
pepper_chico joined17:53
mmcdaris joined17:54
ulkesh joined17:54
calamari Nevik: I recreated it. then he suddenly remembered what he did. he checked out a remote branch, and he selected the "reset" option17:55
Nevik lol17:55
whack him on the head from me please17:55
huahax left17:55
calamari Nevik: that is why it looked like he was switching from the same branch to itself17:55
Nevik next time he does that, that day's pay goes to me17:55
sluther joined17:55
huahax joined17:55
eaj left17:56
ezrafree joined17:56
becks___ left17:56
ezrafree hello all17:56
becks__ joined17:57
ezrafree so me and a group of other developers all share a user on our dev server, is there any way to specify what my name/email should be set to when i commit? without setting it globally, for everyone, that is...17:57
calamari Nevik: thanks a lot for your help, I understand reflog a tiny bit better!17:57
edwardly joined17:57
Kayra left17:58
DolpheenDream joined17:58
thiago left17:58
mgolawala left17:59
skorgon joined17:59
yhager left17:59
Nevik no problem :)17:59
dougsland joined18:00
a-l-e left18:00
infynyxx_ joined18:00
SocalNick_ left18:00
teran left18:00
lavaman left18:01
lavaman joined18:02
SocalNick joined18:02
prometh is it possible to ammend a very old commit message?18:02
acharlieh joined18:02
prometh or must i rebase first?18:02
m0ltar joined18:02
Malice joined18:02
ojacobson It's *possible*, but it's rarely a good idea.18:02
!xy18:02
gitinfo Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...18:02
prometh ojacobson: it's a private repo18:02
FortySix2 joined18:03
waako joined18:03
prometh hello?18:04
cjsarette joined18:04
frobwarezz_frobware18:05
lov prometh: !filter-branch18:05
robarelli left18:05
milki prometh: if !rewriting doenst matter to do, then you would use interactive rebase to reword the commit message18:05
gitinfo prometh: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum18:05
lov oh ffs :|18:05
SocalNick_ joined18:05
solker joined18:05
ezrafree is it possible to set the "name" and "email" with each commit command?18:05
ahmedelgabri joined18:05
prometh oh, i have to do a rebase- i ?18:05
lov ezrafree: I believe so, check the options for git commit18:05
prometh i can't just rebase then ammend ?18:05
ArSn left18:05
skorgon left18:06
SeptDePique joined18:06
SocalNick left18:06
SocalNick_SocalNick18:06
prometh oh yeah, ammend just does the absolute latest.. not latest relative to head18:06
nZac joined18:06
ezrafree lov: ahh there's an --author option, thanks!18:06
ojacobson if you're only looking for confirmation, why not try it on a copy of your repo and see what happens?18:06
edwardly left18:06
waako left18:06
huahax left18:07
f8l left18:07
robarelli joined18:07
thierryp joined18:07
FortySix2 left18:07
huahax joined18:07
pheaver joined18:08
edwardly joined18:08
kesha left18:08
eletuchy left18:08
yano left18:09
ahmedelg_ left18:09
promethazin_ joined18:09
tuocuggino joined18:09
devbug left18:10
solker left18:10
Kayra joined18:10
m0ltar left18:10
m0ltar joined18:11
rouf_ joined18:11
patrickkettner left18:11
thierryp left18:11
rouf left18:11
tadasZ left18:12
ezrafree one thing "git commit -h" doesn't really explain is the format of the value provided to --author, it should be: --author="Author Name [email@hidden.address]18:12
yano joined18:12
ewnd9 left18:12
mmcdaris left18:12
edwardly left18:13
ChrisAnn left18:14
mgolawala joined18:14
ErKa joined18:14
kermit left18:14
mmcdaris joined18:15
huahax left18:15
m0ltar left18:15
huahax joined18:15
nlogn joined18:15
kukks left18:15
InstaGrams5 joined18:16
prometh fucking godamnit! i just did a rebase -i to squash ancient commits... all teh dates were reset to today18:16
so much for a fucking history18:16
wongon left18:16
ojacobson it's spelled out in the actual man page (git help commit, man git-commit)18:16
gitinfo the git-commit manpage is available at http://jk.gs/git-commit.html18:16
prometh why does git suck so fucking much?18:16
ojacobson prometh: what part of "it's usually not a good idea" wasn't clear to you18:17
kriks left18:17
ojacobson it's not like I say things just to screw with people. Not here, anyways.18:17
prometh the makers of git should have thought about it.18:17
ojacobson (Also, git keeps separate author date and commit date)18:17
Rebasing commits resets the commit date, but usually not the author date18:17
prometh i asked if it reset the date... everyone said that it keeps it18:17
it didn't keep it.18:17
experts do not exist.18:17
cads left18:17
nlogn heh18:17
Shusshu joined18:17
InstaGrams5 Anybody like to play poker online? TRying to get players to sign up.100% match Msg me18:18
Shusshu left18:18
ojacobson prometh: fortunately, you can get back to the pre-rebase state using the reflog18:18
and using git-reset18:18
prometh and if i push it? all dates gone?18:18
ojacobson try not to blow your feet off, I'd rather not tell you more in case you blame me18:18
LBV_User joined18:18
prometh i wish people just knew wtf they were doing, that's all18:18
i like advice... if it's correct18:18
promethazin_ left18:19
ojacobson The part where you ignored my advice determined that that statement was a lie18:19
prometh everyone says it's not a good idea.. i know that part18:19
ojacobson And then you did it.18:19
prometh everyone's reason is always "could mess with ohter devs" ... no ohter devs!18:19
ojacobson Now "experts don't exist".18:19
promethazin_ joined18:19
mmcgrath joined18:19
SocalNick left18:20
prometh i'm not a git expert.... clearly18:20
i wish i was, though18:20
mmcgrath is there any way to force git to not keep history? (Have a user that wants to use git but company policy prevents keeping history)18:20
prometh then i could sleep at night18:20
ojacobson mmcgrath: well, if you never run 'git commit'...18:20
prometh i want to merge history to clean it up18:20
it should be possible18:20
i did and dates fucked.18:20
nZac left18:20
jtrucks I use Xcode with git repos. If I checkout and pull a repo, add it to a workspace, and then edit, commit, and push something, things work great. Then I made another edit, but can't commit and push. I think this is because I may not have done a pull in between, even though there shouldn't be anything different in the repo (I confirmed that nobody else had pushed commits to it).18:20
ojacobson I suspect and hope the policy isn't intended to mean what your user thinks it means...18:20
prometh to me that's an incomplete product18:20
stephCoue left18:21
promethazin__ joined18:21
atrus prometh: are you sure it didn't preserve the author date? i've never seen rebase -i reset the author date. the commit date, sure. did you look at git log --pretty=fuller ?18:21
calamari left18:21
SocalNick joined18:22
InstaGrams5 left18:22
g0bl1n joined18:22
g0bl1n left18:22
g0bl1n joined18:22
jtrucks so, anyone know how to fix this problem? If I now have xocde discard changes and do a pull, my locally committed change to a file is still in place, which means I can't pull a clean copy, manually redo my edits, and commit+push. The only solution I've seen before was to delete the entire local repo tree from disk and start over.18:22
anyone know a better way to do this?18:22
hahuang65 joined18:22
prometh atrus: thank you.. yes author date is preserved18:22
github shows commit date, unfortunately :(18:22
atrus prometh: also, maybe try a modicum of politeness when asking people for free support help.18:22
prometh so the history lookes weird18:22
jtrucks atrus: :)18:23
prometh atrus: i'm polite when i'm not mad and confused18:23
Norm_ joined18:23
prometh which is, probably surprisingly, most often18:23
m0ltar joined18:23
jtrucks most often mad and confused? ;)18:23
promethazin_ left18:23
tadasZ joined18:23
prometh :P18:23
atrus prometh: maybe don't go asking for help when you're in a mental state where you can't control yourself.18:23
prometh maybe18:23
ehmatthes left18:24
braj joined18:24
Strogg When you use git log with --pretty:format, %d shows you all of the refnames for each commit. Is there a way to make it not show tags?18:24
gittish joined18:24
atrus prometh: because seriously, a moment after i posted my suggestion, i regretted it, because (seeing how you've ranted) i assumed you were just trolling.18:24
gittish left18:24
edwardly joined18:24
ashooby|lunchashooby18:25
vtunka left18:25
prometh ok18:25
GeertV joined18:25
mgolawala left18:25
prometh is there any way to change commit date? heh18:25
atrus prometh: to be fair, i've been guilty of that in the past. eventually you learn that it's not in your best interest, or you move on to a career that doesn't involve interacting with people :)18:26
leeN joined18:26
DrShoggoth joined18:26
prometh and... if i do a reflog, and recommit, will it change commit date to today ?18:26
atrus prometh: you mean picking a commit out of the reflog, and doing a reset --hard to it?18:26
prometh yes18:27
will i get my dates back?18:27
atrus i think so, only one way to find out :)18:27
prometh ughh18:27
you don't know? :P18:27
git bothers me with stuff like this... it should be simple18:27
emmajaneejfood18:27
atrus commit-date changes ~ if the commit hash changes. it's the date/time that the commit hash became meaningful. so i believe the reset applies.18:28
l0x3py left18:28
m0ltar left18:28
prometh reset will return original hashes ?18:28
francisfish joined18:28
prometh if i do a reset locally, i have to push it to the server... won't that create a new commit date ?18:28
standyro1 joined18:29
Kayra left18:29
huahax left18:29
guampa left18:29
atrus keeping in mind i don't use github or know much about it, if you're doing a push --force to blast away the history that's already there, you're literally replacing the commits that are there with the commits you have, including their commit-dates.18:30
(all the usual caveats about using push --force apply, and if you don't know them, you may want to read about that )18:30
edwardly left18:30
kriks joined18:32
mgolawala joined18:32
osse prometh: reset doesn't change commits, it only changes which branches point to them18:33
prometh hmm, trying to visualize that18:33
i only have a master branch18:33
axl_ joined18:34
mgolawala left18:34
SocalNick left18:34
atrus you may find http://marklodato.github.io/visual-git-guide/index-en.html and/or http://eagain.net/articles/git-for-computer-scientists/ helpful.18:35
promethazin___ joined18:35
eletuchy joined18:35
SocalNick joined18:35
guampa joined18:35
infynyxx joined18:36
osse prometh: think of it as if you drew the commits as connected dots no a whiteboard and you have a post-it not with 'master' written on it. git-reset moves the post-it from wherever it is now to where you specify it to go18:36
arrgh, *on a whiteboard and *a post-it note with18:36
atrus prometh: git (the implemented tools) really are quite simple, but it does mean you sometimes want to know a bit more about what's going on under the hood than you would with VCS tools.18:37
rath joined18:37
atrus er, "simpler" VCS tools i mean :) VCS tools where you can't do the sorts of things you can do with git18:37
blizzow left18:37
prometh the only reason i have sourcetree is for visualizing branches18:37
vkrest joined18:37
promethazin__ left18:37
prometh all of its commands are named the same as their command line counterparts18:37
so i know a bit about hwat's going on under the hood in git18:38
atrus prometh: i little further "under" :) that is to say, what the actually git commands are doing.18:38
infynyxx_ left18:38
pinage404 joined18:38
jtrucks so, turns out, the only fix I can figure out is to wipe my fork and checkout again and add to xcode again :(18:38
Pullphinger joined18:38
Macaveli left18:39
prometh atrus: yeah, i dunno if i have the time for that, hehe18:39
git is pretty complex18:40
blinkdesign joined18:40
jsilver_ joined18:40
blinkdesign left18:40
jsilver_ woohoo!!! successfully mirrored a svn path with subgit !!!18:40
don't be fooled, no git/svn integration is better than subgit18:40
if you need mirroring, there is no other option18:40
knuth joined18:41
jsilver_ if all you need is import, it does that too but you may also live git2svn18:41
j416 prometh, atrus: git's basic concept is not hard to understand18:41
jsilver_ err, svn2git..18:41
m0ltar joined18:41
pinage404 left18:41
chrisshattuck left18:41
j416 prometh, atrus: but indeed it does some magic to make things work well18:41
blizzow joined18:41
pinage404 joined18:41
atrus prometh: yes/no. there's a few things that, if you spend a little time getting to grok (and i mean a little, it's really not that scary :) ), you'll kind of unlock the secret mysteries of what's going on. super-rewarding, in a "i feel like i just leveled-up as a software developer" kind of way18:41
chrisshattuck joined18:41
prometh cool18:42
ezrafree left18:42
vince_prignano joined18:42
prometh i'll have to try and squeeze it in, then... i just have other stuff i gotta learn too :(18:42
atrus reality will be what it is18:42
prometh while building public tools and doing client work18:42
pinage404 left18:42
promethazin___ left18:42
j416 prometh: spending a few hours or even a few _days_ (yes) really learning git, will save you _a lot_ of time later. I promise.18:42
ezrafree joined18:43
ezrafree left18:43
ezrafree joined18:43
promethazin___ joined18:43
jizanthapus joined18:43
simesy joined18:43
edwardly joined18:43
prometh ok, i'll put it near the top of the list18:43
thank you both18:43
m0ltar left18:43
mmcdaris left18:44
j416 prometh: read all of http://git-scm.com/documentation and if you should get tired of that, watch this http://vimeo.com/46010208 (I think it's a pretty good intro), then continue reading18:44
arif-ali joined18:44
thiago joined18:44
osse \o/ That's the video I got the whiteboard and post-it not analogy from!18:44
arrrgh, note18:45
j416 heh18:45
not sure it's a very good analogy18:45
lol18:45
ashooby and make sure you read this too http://stevelosh.com/blog/2013/04/git-koans/18:45
SHyx0rmZ joined18:45
halu left18:45
j416 nice way to do presentations of git, though18:45
halu joined18:45
osse j416: heh yeah. I guess it's not a good *analogy* but it's effective for visualization18:45
takamichi left18:45
vince_prignano left18:46
j416 :)18:46
vkrest left18:47
prometh 5 long links to study, lol18:47
simesy left18:47
kermit joined18:47
prometh that'll be a weekend18:47
best to get it in before summer18:48
tarkus joined18:48
arand__ One thing about jessitron's talk though is that the presented "changeset" description is mixed up between Git and SVN.18:48
j416 s/summer/monday/18:48
salamanderrake joined18:48
prometh haha18:48
tbmiller left18:48
chepre left18:48
j416 arand__: indeed18:48
osse j416: although I was able to throw in the automatic gc by thinking of it as the cleaning lady coming by after hours and wiping away stuff that doesn't have a post-it note at the tip :P18:48
tarkus When sombody made a pull request, but you as a repo owner, want to make some final changes before merghing it into your repo.. how do you do it?18:48
prometh i say before summer, though, because in the summer i'd be missing sunshine18:48
j416 osse: haha.18:49
osse: would that be the whiteboard eraser?18:49
lol18:49
pinage404 joined18:49
j416 cleaning lady :D18:49
osse Setting: office18:49
She doesn't touch the coffee maker though. That's your problem18:50
ezrafree left18:50
j416 prometh: I say before monday, though, because the longer you go not knowing git, the angrier you will get because 1) git drives you insane 2) you are not as productive18:50
dik_dak joined18:50
j416 speculates18:50
ezrafree joined18:50
ezrafree left18:50
ezrafree joined18:50
prometh as long as i don't do any squashing, i'm fine with git18:50
j416 no you're not18:50
prometh i have been, is what i mean18:51
j416 squashes things _every single day_18:51
prometh well, ancient squashes18:51
j416 ok not so much on weekends.18:51
Nevik ashooby: that link is awesome :D18:51
ashooby isn't it?18:51
j416 lol I'm reading it @ link18:51
aslaen left18:51
ashooby it should be on the bot18:51
prometh very recent squashing works fien for me18:51
ashooby !koans18:51
Kayra joined18:51
pepper_chico left18:52
emacer does anyone know if there's a way to store git repositories within git repositories? I want them to appear hierarchically in the web frontend for my git server.18:53
prometh guys, if i do a hard reset and force push when i'm 43 ahead and 19 behind, will it change commit dates ?18:53
GeertV left18:53
vocifer ashooby, I've never seen that blog with the git-koans but they are amasing18:53
arif-ali left18:53
shruggar joined18:53
aslaen joined18:53
GeertV joined18:53
j416 fun read ashooby. :)18:54
tbmiller joined18:54
godgodgodgo left18:54
j416 prometh: commits are immutable, so their dates never change.18:54
prometh hmm18:54
j416 prometh: you'd understand what I just said if you had read the docs ;)18:54
prometh commit dates, not author dates18:54
that'll take me all day.. at this point, ij ust gotta move forward :(18:55
j416 not meaning to be rude, but, really, read it.18:55
aubreypwd left18:55
j416 prometh: you're mistaken18:55
prometh: the sum of all time you will spend here asking will be much greater than the time it takes for you to read and learn it :)18:55
thiago left18:55
mgolawala joined18:55
Guest69162 left18:55
Guest69162 joined18:55
Nevik indeed18:55
Guest69162Spyro18:55
prometh j416: i understand.. but this is just one task tha ti need to get done for today18:56
if i read docs, i'll be trying to understand for days18:56
j416 prometh: then tell us what result you want and what you have18:56
prometh i'm a visual learner, so i'm a lot slower from words18:56
and even the pics in some of those docs are confusing18:56
j416 prometh: hence, I gave you a video18:56
prometh yes, 40min.. i will watch it later today18:56
looper_ joined18:56
Nevik .trigger_edit koans Looking for some enlightenment? Five koans about Master Git: http://stevelosh.com/blog/2013/04/git-koans/18:57
gitinfo Nevik: Okay.18:57
Nevik ashooby: ^18:57
j416 is off o/18:57
alexlindenlevy left18:57
prometh j416: i did an ancient history squash and force pushed... all my commit dates wre changed to today... so i did a hard reset, dates are restored locally.... if i force push now, what will happen to those commit dates ?18:57
Nevik prometh: the pics are made to be accompanied by text. there are probably pics around the web that go with less text18:57
ashooby yay!18:57
!koans18:57
gitinfo Looking for some enlightenment? Five koans about Master Git: http://stevelosh.com/blog/2013/04/git-koans/18:57
ashooby <318:57
Nevik ;)18:57
alexlindenlevy joined18:57
Nevik prometh: the will be exactly what they are locally18:57
prometh ok, i will try18:58
ezrafree left18:58
ezrafree joined18:58
grampajoe joined18:59
fragamus joined18:59
prometh whew18:59
ok, everything is back to normal now18:59
solker joined18:59
prometh i will never again try to do an ancient history rewrite18:59
Nevik lulz18:59
prometh recent history, sure... ancient, no18:59
vocifer prometh, why not? you got it fixed didn't you?19:00
prometh wow...3.5 hours wasted19:00
yes, but.. ^19:00
Nevik vocifer: he just restored the same state as before19:00
prometh yeah19:00
Nevik as in: chicken19:00
prometh back to the start19:00
vocifer yes the point is even though you feel like you screw up nothing bad happend19:00
diegoviola left19:00
vocifer remember that instead19:00
prometh i like chicken... is that bad?19:00
tbmiller left19:00
salamanderrake left19:00
s0beit left19:00
Nevik prometh: you chickened out instead of pulling it through like a git ;)19:00
tbmiller joined19:01
prometh oh, no, i finished my task.. but what i ultimately wanted was not possible19:01
i wanted to rewrite history and preserve commit dates19:01
Nevik which is what happens when you rewrite19:01
prometh so i reset everything to get my dates back19:01
Annak joined19:01
gitinfo set mode: +v19:01
prometh yeah :(19:01
teran joined19:01
thiago joined19:01
Nevik oh wait, i never remember if it's commit dates or author dates that are updated in the rewritten commits19:01
prometh is it possible, with shell access, to change git commit dates ?19:01
Nevik it doesnt matter because one remains the same19:02
mlimaloureiro joined19:02
prometh commit dates are changed, author dates are preserved19:02
it matters to me because of the github history page19:02
msodrew joined19:02
Nevik prometh: change them? no. set new ones while rewriting commits? yes19:02
kwstas left19:02
prometh it said that all my work was doen in one day, heh19:02
Nevik so?19:02
stats are meaningless19:02
prometh so... public image, man!19:02
i started my project a while ago19:02
Nevik prometh: if your github stats are that important, you have way bigger issues than your commit dates19:02
prometh yeah.. my penis is small.19:03
teran_ joined19:03
Nevik at least you're honest about it19:03
prometh lol19:03
FortySix2 joined19:03
eletuchy left19:04
Nevik prometh: you can manually set the commit date when (re)creating a commit19:04
it just requires some scripting19:04
xsbeats left19:04
Nevik for a certain value of "some"19:04
s0beit|ZNC joined19:04
solker left19:04
s0beit|ZNCs0beit19:04
prometh scripting?19:04
Diemuzi left19:04
prometh like, lots of commands?19:04
Nevik like, commands that are run in a certain automated fashion19:04
prometh hmm19:05
Nevik i would have to look it up myself.19:05
prometh sounds way over my head, then19:05
Nevik i dont know if rebase has appropriate support for custom commands or options19:05
prometh maybe when i'm rtfm'ed19:05
Nevik if it doesnt, filter-branch could probably do it19:05
prometh s/i'm/i've/19:05
Nevik if THAT cant, you can always use plumbing commands and do it the bare metal way19:05
prometh: well, yes :P19:05
prometh i wish there was just a simple GUI program to do all this19:06
Nevik when you finally know why commits are immutable and what rewriting history actually means, this'll be a lot clearer to you19:06
prometh select, merge.. done19:06
preserve commit dates? yes19:06
Nevik prometh: you're not doing easy things19:06
teran left19:06
prometh they could be made easy, for sure19:06
Nevik you're rewriting history. something that no other VCS can actually do19:06
prometh can mercurial ?19:07
Nevik i dont know :D19:07
prometh hehe19:07
i've used it briefly... i kinda liked it more than git, btu was quite similar19:07
Nevik but i know that git can, and it's versatile enough to do just about anything19:07
prometh i've used svn as well... kind of a pin19:07
s/pin/pain19:07
s/pin/pain/19:07
Nevik i dont see why so many coders have trouble with git19:07
git is basically a programmer's dream19:07
thierryp joined19:07
prometh not in our nature, i guess19:07
Nevik if the UI doesnt do it, just script it19:07
edwardly left19:08
Nevik i guess it's more of a linux mentality than a general programmer one19:08
helterscelter joined19:08
prometh it's like those retards in high school that have trouble grasping math19:08
that's me19:08
waako joined19:08
ojacobson Nevik: some people want an SCM system, not all the parts they need to build an SCM system19:08
Nevik prometh: good that you're honest. here, wear this idiot badge whenever you're here :D19:08
prometh i failed gr11 math19:08
ojacobson That's my biggest complaint about Git, really19:09
that and the terribad UI19:09
prometh lol, yeah.. i'm naturally a designer... but learned and learned to love programming19:09
so, git is very unnatural to me19:09
Nevik yes, the UI is terribly inconsistent. but the idea of the git core is ingenius19:09
it's not for everyone19:09
thierryp_ joined19:09
Nevik but it doesnt want to be19:09
thierryp left19:09
Kayra left19:09
prometh it should want to be... they'd have more happy campers19:09
Nevik prometh: not everyone needs others to like them to further their own self-esteem ;D19:10
prometh complicated things are, from my perspective, often unsophisticated things19:10
Nevik git is very self-confident19:10
kukks joined19:10
kukks left19:10
kukks joined19:10
prometh Nevik: it's not about self esteem... it's about being able to walk outside without a bag over your head :P19:10
cmpera left19:10
prometh must have his prada19:10
pinage404 left19:10
Nevik in the case of the git UI, it's more "unplanned and naturally grown" than truly unsophisticated19:10
prometh: git is so self-confident, it walks around naked :P19:11
prometh is it fat?19:11
Nevik no, it's quite slim actually19:11
prometh well... git is stupid!19:11
Nevik yes19:11
by definition19:11
vocifer prometh, and a content tracker19:11
SocalNick left19:12
prometh it's a naked content tracker?19:12
pen joined19:13
vocifer it's a stuped content tracker19:13
prometh oh, i wouldn't know.. i'm pretty basic with git19:13
Nevik so stoopid, it can't spell stoopit correkt19:13
prometh i'm a stupid git user19:13
Nevik prometh: read the top of man git :D19:13
gitinfo prometh: the git manpage is available at http://jk.gs/git.html19:13
prometh oh no.. anohter link to read19:13
there goes TWO weekends!19:13
Nevik prometh: just the first sentence after the headings, lol19:14
thierryp_ left19:14
prometh oh, ok, i'll read that!19:14
SocalNick joined19:14
prometh really... that's their subtitle?19:14
infynyxx left19:14
william1 joined19:14
prometh that's..... angering... i want to call git stupid19:14
and now i cannot19:15
vocifer XD19:15
prometh they have disarmed me19:15
CKyle left19:15
edwardly joined19:15
infynyxx joined19:15
Nevik Linus predicted you19:15
AnnakDiemuzi19:15
prometh skynet exists!19:15
Nevik he put out an email two years ago saying that you would show up here on this day19:15
we were waiting all day for you to show up19:15
prometh i'm john connor's cousin19:15
salamanderrake joined19:15
prometh skynet knew i would come... i'm important n stuff19:16
Nevik lol19:16
promethazin___ left19:16
infynyxx left19:16
prometh git is dumb19:17
Nevik prometh: so yeah. if you're gonna use git a lot/regularly, it's probably worth learning it. and learning git usually works best from the inside out19:17
prometh there... humans win19:17
Nevik because, yes, git is dumb19:17
its core is incredibly simple19:17
promethazin___ joined19:17
pen left19:17
vocifer some might even say elegant19:17
prometh yeah, i gotta spend some time on it19:17
Nevik that, compounded by the UI is terribly inconsistent and can be utterly confusing, makes it much easier to use git when you know what happens on the inside19:17
prometh will they ever make it consistent ?19:18
v2 kinda thing ?19:18
infynyxx joined19:18
Nevik prometh: if you can make yourself read it, the pro-git book (you probably already have the link) is good to give you an overview (chapters 1-3 and 5 are relevant)19:18
prometh: v2 is shrouded in mystery!19:18
prometh mysteries of the sith19:18
Nevik we (=non-git-developers) all hope for improvement19:18
diegoviola joined19:19
luto git is perfect19:19
prometh on the inside... so, it's like an unattractive girl ?19:19
luto lol19:19
prometh git... or should we call her betty?19:19
Nevik prometh: if you feel comfy with the basic everyday commands (possibly after having watched a video or two), i can recommend tackling !gcs and/or !cs19:19
gitinfo prometh: [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs.html19:19
prometh: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup19:19
mlimaloureiro left19:19
prometh git v2... it's not betty anymore!19:20
edwardly left19:20
mfulz joined19:20
luto but I like betty :(19:20
Nevik you'll notice those are relatively slim documents (with lots of pictures)19:20
prometh hmm... git v2: doesn't have to be betty if you don't want it to be betty anymore!19:20
Nevik once you get the graph idea anchored in your head, git is easy peasy19:20
luto DAG!19:21
prometh yeah, i have 5 links to read so far.. one of them a video19:21
Nevik watches prometh read a video19:21
mgolawala left19:21
Nevik prometh: if you find you dont like that one, we have more !talks19:21
gitinfo prometh: Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)19:21
prometh it's the new thing.. haven't you heard ?19:21
video books19:21
promethazin___ left19:21
Nevik lulz19:21
luto gives prometh a DAG to chew on19:21
valgrind joined19:21
jason237 left19:21
Nevik luto: are you crazy, he's a designer! he'll put a cycle into that graph!19:22
luto no cycles allowed!19:22
Nevik prometh: i believe the video you were given before is Jessica's talk19:22
luto prometh: don't put cycles in your DAGs.19:22
Nevik that would make it a DCG19:22
and that's just wrong19:22
prometh how do you chew on a dag?19:23
is a dag something you eat?19:23
hobodave joined19:23
Nevik something just occurred to me19:23
vocifer start from the roots?19:23
prometh you didn't eat lunch?19:23
Nevik it'd be nice if it were a Directed Acyclic Non-reflexive Graph19:23
vocifer It would be?19:23
prometh dang ?19:24
or danrg ?19:24
Nevik DANG19:24
dp joined19:24
Nevik we would be doing operations on the DANG19:24
shawndumas left19:24
Nevik bwahahaha19:24
im nearly rofling here19:24
prometh lol19:24
asedeno left19:25
vocifer what would a it mean for a graph to be reflexive?19:25
dp is there a command that will show me the first time a line of text existed in a commit (from a specific file)?19:25
shawndumas joined19:25
vocifer dp, `git log -G <line>` i think19:25
luto -G = --grep ?19:25
osse luto: no19:25
luto :(19:25
prometh everyone in Nevik's office is wondering why he's laughing so hard19:25
he responds with "DANG!"19:25
luto man git log19:26
gitinfo the git-log manpage is available at http://jk.gs/git-log.html19:26
osse dp: git blame may fit the bill too19:26
prometh they nod in approval19:26
edwardly joined19:26
luto prometh: I don't think that Nevik is in a office right now.19:26
prometh in the assylum ?19:27
Nevik vocifer: as a graph represents a relation, a reflexive graph is one in which every node is related to itself19:27
dp awesome. git log -G worked perfectly19:27
thanks!19:27
dp left19:27
Nevik vocifer: as the simplified git DAG usually represents history, that would mean every commit is its own ancestor19:27
prometh at the funny farm19:27
mellernoia left19:27
lavong left19:27
luto prometh: at home19:27
prometh aye, that's where i am19:27
Nevik luto: stop watching me through my webcam please19:27
luto if I have the right timezone in mind19:27
prometh people look at my funny here too, though.... are they really there?19:28
luto you're UTC+1 or something, right, Nevik?19:28
pen joined19:28
luto wasn't there a command?19:28
.time Nevik19:28
.timezone Nevik19:28
!time Nevik19:28
gitinfo [!reply_time] I only respond to !ECHO-REQUEST19:28
luto wat?19:28
!timezone Nevik19:28
prometh !echo-request nevik19:28
tarkus left19:28
prometh gitinfo has failed us.19:28
Nevik luto: im figuratively breathing down your neck19:28
so yes19:28
luto !ECHO-REQUEST19:29
gitinfo I only respond to !ping19:29
luto lol..19:29
prometh lol19:29
luto !ping19:29
gitinfo I only respond to !reply_time19:29
luto !reply_time19:29
gitinfo I only respond to !ECHO-REQUEST19:29
prometh !fuck-you19:29
luto it's a loop!19:29
prometh yup19:29
Nevik i was gonna check my whois, but my bouncer is not in my own timezone19:29
i was gonna say, check my whois*19:29
tarkus joined19:29
tieTYT joined19:30
Eugene About time somebod figured that out19:30
prometh skynet put it there19:30
eletuchy joined19:30
LBV_User left19:30
Not_Whatever left19:30
tieTYT so @{-1} means the previous branch I was on, right? How do I get the name of that branch?19:30
ChanServ set mode: +o19:30
icarus_ joined19:31
LBV_User joined19:31
GeertV left19:31
prometh left19:31
Eugene changed the topic to: Welcome to #git, the place for git help and stale leftovers | Current stable version: 1.8.5.3 | Start here: http://jk.gs/git | Seeing "Cannot send to channel" or unable to change nick? /msg gitinfo .voice | I bet you thought this was a joke. Nope, git-testa.19:31
Eugene set mode: -o19:31
luto Eugene: lol..19:31
vocifer `git rev-parse --abbrev-ref ${-1}`19:31
Eugene s/$/@19:31
But yes19:31
arietis left19:31
vocifer thank you19:31
Eugene, you are a live saver19:32
tieTYT is that for me?19:32
vocifer XD19:32
tieTYT, yes19:32
tieTYT ok thanks19:32
nice19:32
oh that's confusing... it shows the branch I'm already on19:32
does that mean I checked out a branch I was already on?19:32
devbug joined19:32
vocifer tieTYT, I don't know why do you think it would be a different branch?19:33
tieTYT doesn't -1 mean "the previous branch you were on"?19:33
vocifer tieTYT, no the previious commit19:33
fuck19:33
nop19:33
nvn I'm screwing up19:33
i'm tired19:34
kukks left19:34
tadasZ left19:34
jnavila joined19:34
Nevik yeap19:34
wongon joined19:35
tieTYT is there a way to see a history? So I can see what -2, -3, -4...19:35
tadasZ joined19:35
icarus_ If i git clone a repo, and i later want to update my local clone of changes from the master repo, what would i run?19:35
Nevik tieTYT: git reflog | grep "moving from"19:35
ojacobson tieTYT: man gitrevisions tells you how each is interpreted19:35
gitinfo tieTYT: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html19:35
tieTYT hm, this is an XY problem. My real annoyance is I'm ready to merge and I forget what my branch is called. I have to clear my console and do a 'git branch' which takes me out of my workflow19:35
ojacobson the branch you're on or the branch you're merging from?19:36
CKyle joined19:36
ojacobson ('git branch --contains HEAD' and 'git branch --contains MERGE_HEAD' respectively)19:36
Eugene If you forget your branch name after 30 seconds try writing it down. On paper.19:36
Or just scroll up in your terminal19:36
dfanjul left19:37
Nevik or use a prompt that shows it19:37
vocifer \nick vocifer-away19:37
fuck me19:37
ojacobson Please don't19:37
vocifervocifer-away19:37
ojacobson nobody cares, just set /away :)19:37
Nevik vocifer-away: ojacobson is right19:38
vocifer-away was writing latex19:38
ojacobson Don't tell /counts/ several hundred people you're going away19:38
Nevik dont use away-nicks19:38
vkrest joined19:38
Kayra joined19:38
vocifer-awayvocifer19:38
osse oops. This is my away nick. I'm stuck forever.19:38
Nevik vocifer: good boy19:38
ChanServ set mode: +o19:38
Eugene set mode: +b19:38
ojacobson hah19:38
ahmedelgabri left19:38
Eugene </problem>19:38
vocifer see I real really should get some sleep19:38
Nevik Eugene: that's rather pointless :D19:38
daivyk left19:38
angelsl left19:39
ojacobson Nevik: bans on freenode sometimes also mute matching participants19:39
Nevik not only sometimes19:39
ojacobson I don't know the specifics but we use it on ##java to restore order19:39
edwardly left19:39
Nevik but the annoying thing is the nick change19:39
Eugene And keeps them locked to that nick, forcing them to realize their mistake19:39
ojacobson Oh, sure19:39
Nevik not them saying something19:39
ojacobson Also, the meta-discussion about nicks19:39
Nevik lol19:39
edwardly_ joined19:39
Eugene The real problem here is you gits don't know how to Hide Join/Parts/Nickchanges in your IRC client. In a room of 1000 people it screws the SNR19:40
opc0de joined19:40
Eugene Sure I miss a few ban opportunities for ##fix_your_connection, but it's worth the peace+quiet that it affords my window19:40
rawtaz whats SNR in this context?19:41
opc0de hi, anyone can help me with gitlist, i'm on fedora for test and i get this error message: "cache" folder must be writable for GitList to run19:41
Eugene Signal-Noise Ratio19:41
rawtaz ah19:41
nnyk_ joined19:41
grawity relevant http://wiki.xkcd.com/irc/Hide_join_part_messages19:41
tarkus left19:41
tarkus joined19:42
vkrest left19:42
aubreypwd joined19:42
Not_Whatever joined19:42
Eugene That's the one!19:42
Apocalis_ joined19:43
asedeno joined19:43
jatt joined19:43
grampajoe left19:44
Apocalis_ left19:44
devbug left19:44
Su7 Hello #git19:44
I have a question for you19:44
rawtaz so do we, for you19:44
el3ctron1 joined19:45
Su7 I'd like to set up a cron to git pull from my repo to my testing environment19:45
XndrK joined19:45
el3ctron3 joined19:45
Su7 but I don't want my testing env's changes to be erased at each pull19:45
XndrK Hello19:46
gitinfo XndrK: 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.19:46
thierryp joined19:46
Su7 (let's say I have a config file that would be erased at each pull. I want to keep this file as-is and apply al the other changes from origin)19:46
cmpera joined19:47
XndrK I am using the Git GUI and trying to clone a repository from GitHub.19:47
ehynds joined19:47
mfulz left19:47
ojacobson Su7: !config and !deploy are probably good starting points19:48
gitinfo Su7: [!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:48
Su7: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html19:48
XndrK When I click Browse for folder next to the target folder window and select one, it always says it already exists.19:48
Two questions:19:48
1: Why is it important that it already exists?19:49
_Vi left19:49
Eugene git-gui or the Github application?19:49
XndrK git-gui19:49
2: How can I make it shut up?19:49
Eugene (I'm useless with both, but wanted to make sure you knew they were separate)19:49
XndrK I know they are different.19:49
ojacobson 'git clone' tries not to replace existing directories, ever, in case you have files in them you care about19:49
'mkdir foo && git clone ... foo' will do the same thing, and fail the same way19:50
XndrK so what's the browse for folder button for?19:50
ojacobson (it probably *could* detect the empty-dir case, but to my knowledge it doesn't. Git.)19:50
XndrK I finally solved the problem by going to the folder in the browse for folder thing and then adding the new folder thing19:51
motto joined19:51
opc0de left19:51
XndrK Is that the only option, and if so, what's the New Folder button for?19:51
Su7 ojacobson: awesome, thanks !19:52
devbug joined19:52
el3ctron4 joined19:52
cozby joined19:53
m8 left19:53
narrenschiff joined19:53
jatt left19:53
narrenschiff left19:54
poulson left19:55
XndrK will be doing something else for a minute, so please put his username before your message to alert him.19:55
jatt joined19:55
rawtaz i find it rather silly when ppl write about themselves in third person :P19:57
mfulz joined19:57
thierryp left19:57
Eugene You're puppets.19:57
eletuchy left19:57
jatt left19:58
girishr left19:58
cads joined19:58
ojacobson rawtaz: clearly you've never used IRC for collaborative fiction :)19:59
fire left19:59
rawtaz haha19:59
mgolawala joined20:00
jatt joined20:00
veebers joined20:01
mgolawala left20:01
tvw left20:01
ehyndserichynds20:01
mfulz left20:01
oojacoboo left20:02
milki rawtaz: what about when they speak about themselves in third person?20:02
fragamus left20:02
jerius left20:02
msodrew left20:02
erichynds left20:02
rawtaz milki: what about it? i find it silly :)20:03
jerius joined20:03
g3orge joined20:03
msodrew joined20:03
mgolawala joined20:03
milki i think some languages/cultures have it built in20:03
rawtaz that might be true20:04
i read it one way, other cultures probably read it differently20:04
nZac joined20:05
TeraJL joined20:05
TeraJL hi there, how can i cancel a GIT RM, without reverting the file to my hardrive?(i've already added the file to gitignore20:05
shawndumas left20:06
unreal left20:06
Freeman1337 joined20:06
mgolawala left20:07
afhammad left20:07
XndrK left20:07
bartman` joined20:07
jason237 joined20:08
kevwil joined20:08
unreal joined20:08
rawtaz TeraJL: git add ?20:08
i dont know :D20:08
i'd expect git status to tell me20:08
danielcompton joined20:08
TeraJL i have removed the files , and added them on gitignore, but they still show up on git status20:08
as removed20:08
Freeman42 left20:08
TeraJL i don't want them removed from the repository, i just don't want them locally20:09
rawtaz TeraJL: yeah files that are tracked will still be tracked even if you add them to gitignore. you need to untrack them20:09
nZac left20:09
ZaeDrake joined20:09
rawtaz this took me literally four seconds to find: https://stackoverflow.com/questions/1274057/making-git-forget-about-a-file-that-was-tracked-but-is-now-gitignored20:09
perhaps it is relevant20:09
Freeman42 joined20:09
ciampix joined20:09
rawtaz unless i misunderstood you20:10
LBV_User left20:11
danman joined20:11
edwardly_ left20:12
ZaeDrake left20:12
Freeman1337 left20:12
alvaro_o joined20:13
yhager joined20:13
aChatir joined20:14
jatt left20:14
diegoviola i did a rebase/squash of a few commits that i have in a branch that nobody else has, but i already pushed that branch to my remote20:15
danillonunes joined20:15
Vivekananda left20:15
diegoviola if i push that branch to the remote the commits i squashed will disappear and will show only the single commit i have as a result from the squash, right?20:15
in the remote i mean20:15
Eugene Yes, if you push -f it20:15
dglambert joined20:16
ulkesh left20:17
DynamiteXXL joined20:18
vkrest joined20:18
TeraJL i've cloned again.. how can i remove certain folders from pulling and pushing and delete them locally?20:20
crazedpsyc left20:20
jason237 left20:20
Ardit joined20:21
rawtaz huh?20:21
TeraJL almost all the solutions remove the file from the origin repository20:22
edwardly joined20:22
rawtaz solutions to what problem?20:22
sohail left20:23
TeraJL like git rm -r --cached .20:23
_Vi joined20:23
rawtaz solutions to what problem?20:23
sohail joined20:23
TeraJL i don't want to change anything from the server... i want to remove a folder locally, and work (pull and push) and just forget about that folder from/to this computer20:24
crazedpsyc joined20:24
eletuchy joined20:24
freeed left20:24
diegoviola Eugene: ty20:24
SocalNick left20:25
rawtaz TeraJL: wouldnt you want that folder to be in a .gitignore file in the repo then?20:25
TeraJL yes20:25
rawtaz so do that?20:25
Eugene TeraJL - man git-update-index, see "assume unchanged". Hilarity will likely ensue.20:26
gitinfo TeraJL: the git-update-index manpage is available at http://jk.gs/git-update-index.html20:26
Jurko joined20:26
ezakimak_work left20:26
rawtaz hehe looks like it can get messy in the end :)20:27
MattStratton joined20:27
salamanderrake left20:28
mikar left20:28
jatt joined20:30
veebers left20:30
jackneill left20:30
TeraJL i will try to read it... i'll just try to explain one last time, and thanks.... i want this: on computer A, i work with everything, so i "pull" and "push" as normal to the origin.... but on computer B i don't work with images and static files.. so i wanted to "pull" and "push" evrything but the "static/" folder... but keep it on the server20:30
veebers joined20:31
zizzl left20:31
kukks joined20:31
kukks left20:31
kukks joined20:31
rawtaz interesting.20:32
TeraJL: what is the reason for this. again, what problem are you trying to solve by wanting to do this?20:32
TeraJL space20:32
rawtaz that is way more relevant than how to do the thing you ask about20:32
ok. not bandwidth etc?20:32
TeraJL yes20:32
rawtaz just disk space20:32
ok20:32
mikar joined20:33
rawtaz interesting question anyway20:33
jason237 joined20:33
dougsland left20:34
rawtaz i have no idea if thats doable. telling git to not fetch certain parts of the repo20:34
ben_alman left20:34
bl33_ joined20:34
FortySix_ joined20:34
SocalNick joined20:34
TeraJL left20:35
kermit left20:36
ejfoodemmajane20:36
arif-ali joined20:36
matanya joined20:36
mikar left20:36
wongon left20:37
mikar joined20:37
dougsland joined20:37
dougsland left20:37
dougsland joined20:37
FortySix2 left20:38
mikar left20:38
thierryp joined20:38
Foldager joined20:38
mellernoia joined20:40
joelsmith joined20:40
rafaqueque joined20:41
tiglionabbit joined20:42
bl33_ left20:42
tiglionabbit How can I get a diff of two versions of a binary file in git?20:42
can I get it to use HexFiend as a difftool or something?20:42
thierryp left20:43
arand__ tiglionabbit: you can configure difftools per filetype.20:43
tiglionabbit I don't know how to use difftool20:43
moritz man git-config, look for diff.external20:43
gitinfo the git-config manpage is available at http://jk.gs/git-config.html20:43
imachuchu left20:43
ben_alman joined20:44
tvw joined20:44
moritz ... and the related config options20:44
tiglionabbit moritz: ok but none of the builtin options are going to be meant for binary20:45
how do I set up a binary diff tool?20:45
correcto joined20:45
ngladitz_ joined20:45
ngladitz_ left20:45
ngladitz_ joined20:45
mizu_no_oto joined20:46
daivyk joined20:46
ngladitz left20:47
thierryp joined20:48
g0bl1n left20:48
tvw left20:48
simesy joined20:49
tvw joined20:49
kukks left20:49
prudhvi joined20:49
holodoc left20:49
prudhvi Hi, how can git detect changes to the working directory so quickly?20:49
_ikke_ prudhvi: By using stat information20:50
imachuchu joined20:50
kermit joined20:50
simesy left20:50
simesy_ joined20:50
_ikke_ it caches the stat information in the index, and compares it next time you do a git status20:50
eletuchy left20:50
sohail left20:52
bartman` left20:53
marthinal left20:53
MistuhKurtz left20:54
francisfish left20:54
yhager left20:55
simesy_ left20:55
jatt left20:56
ebetancourt left20:56
mvelioglu joined20:56
promethazin___ joined20:57
robban666 joined20:58
gelardi_ joined20:58
FortySix_ left20:59
revele joined20:59
FortySix2 joined20:59
Not_Whatever2 joined20:59
hoschi left21:00
halu left21:01
robbyoconnor left21:01
Pullphinger left21:02
mgolawala joined21:02
xSmurf joined21:02
mgolawalaKT21:03
tiglionabbit left21:03
promethazin___ left21:04
jizanthapus left21:04
tpollard joined21:04
nedbat left21:04
promethazin___ joined21:05
oojacoboo joined21:05
Kabaka left21:05
thierryp left21:05
solker joined21:05
tiglionabbit joined21:05
davividal left21:06
afhammad joined21:06
robban666 left21:06
Kabaka joined21:08
correcto left21:08
codeforfun left21:08
veebers left21:08
robban666 joined21:08
lsm5 joined21:09
promethazin___ left21:09
eletuchy joined21:09
solker left21:10
shawndumas joined21:10
friesk left21:10
cmpera left21:11
nedbat joined21:11
ngladitz_ left21:12
darius93 left21:12
ngladitz joined21:12
ngladitz left21:12
ngladitz joined21:12
Foldager left21:13
rawtaz is there a way to make git status show renames in the "rename {private/protected/backend => backend}/components/BackendController" format (the {} part) instead of like it does it by default?21:13
relipse how do i get back to the latest and greatest master branch discarding all local changes?21:13
bodom joined21:13
rawtaz relipse: afaik you can do git checkout master && git reset --hard21:14
Rix left21:14
rawtaz im not sure if you should follow up with a git clean -ndf and then git clean -df too though, but its only for getting rid of untracked stuff21:15
nedbat left21:15
irashadul joined21:15
irashadul left21:16
infynyxx left21:16
cmpera joined21:16
GeertV joined21:17
ezekielnoob left21:17
GeertV left21:18
cogitos joined21:18
jason237 left21:18
GeertV joined21:18
_ikke_ rawtaz: I don't think git supports that21:20
sohail joined21:20
cogitos left21:20
infynyxx joined21:21
cogitos joined21:21
bwreilly_ joined21:21
veebers joined21:21
Sabbath joined21:21
ezekielnoob joined21:21
bwreilly_ left21:22
diegoviola left21:22
bwreilly left21:22
bwreilly joined21:22
joke2k joined21:22
joke2k hi21:22
sohail left21:23
joke2k there is some italians?21:23
kcj joined21:23
Noldorin joined21:23
mlimaloureiro joined21:24
Exancillatus joined21:24
holodoc joined21:24
joke2k left21:25
Sabbath left21:26
standyro1 left21:27
veebers left21:29
nDuff joined21:29
SHyx0rmZ left21:29
nDuff Is there a way to retrieve the origin URL for a remote intended for programmatic consumption? Trying to parse the human-readable output of "git remote show [remote-name]" seems pretty unfortunate.21:30
blinkdesign joined21:31
ham1 joined21:31
relipse how do i undo a merge21:32
gitinfo set mode: +v21:32
MistuhKurtz joined21:32
nDuff ahh, git config --get remote.<name>.url21:32
relipse: just reset the branch pointer to where it was beforehand21:32
tbmiller left21:33
tbmiller joined21:34
darius93 joined21:34
Silmarilion joined21:34
SHyx0rmZ joined21:35
iderik joined21:35
teran joined21:35
Rix joined21:36
danielcompton left21:36
Usama left21:36
Macaveli joined21:36
rath relipse: man revert , it's the "-m" option you're looking for21:37
!man revert21:37
tbmiller left21:38
thierryp joined21:38
teran_ left21:38
salamanderrake_ joined21:38
osse nDuff: depending on your setup url might be different from pushurl.21:38
rath needs to learn how to activate the bot21:38
MattStratton left21:39
Freeman42 left21:40
salamanderrake_ left21:41
salamanderrake joined21:41
rawtaz _ikke_: ok. well if it did you'd probably know about it21:41
KT left21:41
IrishPrime left21:41
rawtaz too bad, it's a bit odd that it uses two different formats21:41
Macaveli left21:41
jnavila left21:42
CharlesFinley left21:43
thierryp left21:43
mribeirodantas joined21:43
joke2k joined21:44
SocalNick_ joined21:45
githogori_ joined21:46
githogori_ left21:46
machine-x left21:47
tarkus left21:47
SocalNick left21:47
SocalNick_SocalNick21:47
ezekielnoob left21:47
arif-ali left21:48
mlimaloureiro left21:49
arif-ali joined21:50
rj11 joined21:50
rj11 Is there any easy way to make diff --check include the hash of the commit that introduced a whitespace error?21:51
AciD` noob question : I started working on a project few months ago (located in /old/path/to/proj), using git to manages changes. I now want to totally reorganize my files in a new directory structure like /new/path/to/proj (cherry picking each file to mv it to a specific new directory, then later renaming it). How should I proceed if I want to keep the history for each file ?21:53
veebers joined21:53
AciD` I only have 5 files in git, so I can do that manually21:53
standyro1 joined21:53
osse rj11: I doubt it since git compares two commits directly without looking at the history between them. I think it outputs a line number though. You can do 'git blame <commit2> <file>' and go to that line number21:53
nZac joined21:54
FatDarrel left21:54
primitive joined21:54
cenuij joined21:55
rj11 osse: Yeah, that's what I've been doing. A bit of a pain when more than a few files/commits contain whitespace errors. :)21:56
arif-ali left21:56
osse rj11: they're all probably from the same guy :P21:57
arif-ali joined21:57
nafg joined21:57
oojacoboo left21:57
osse maybe there's a way to script it21:58
nZac left21:59
iderik left21:59
rj11 osse: Most likely. :P Scripting it would be doable.22:00
ham1 left22:00
iderik joined22:00
xMYTHICx joined22:01
oojacoboo joined22:01
standyro1 left22:01
nedbat joined22:02
endiruna joined22:02
nathancahill left22:03
Fandingo joined22:03
danecando left22:03
asQuirre_ left22:04
cannonball left22:04
FatDarrel joined22:04
aChatir left22:04
shruggar left22:04
solker_ joined22:05
Fandingo left22:05
_iron left22:07
xnranda22:07
thierryp joined22:08
arif-ali left22:08
rj11 If anyone knows about an indescribably basic introduction to git I'd appreciate a link.22:09
dsdeiz joined22:09
rawtaz rj11: have you tried the book?22:09
!book22:09
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 !parable22:09
arif-ali joined22:09
kossy left22:09
solker_ left22:09
rj11 Yeah, I've tried *the* book (Pro Git). And git flow. And Google. But getting my coworkers to grasp git is impossible.22:10
kossy joined22:10
simesy joined22:10
rj11 I see merges from develop into master, from master into develop. Hotfixes branched off of feature branches later merged directly into master.22:10
teran_ joined22:10
cmpera left22:10
rawtaz gee22:11
whats wwrong with them22:11
dort left22:11
xMYTHICx left22:11
osse meh, they're all just branches anyway22:11
rawtaz i mean those things are not typing mistakes, it's fundamental lack of understanding22:11
calcifea left22:11
rawtaz or they dont know which branches theyre on22:11
calcifea joined22:12
rawtaz its not like it's a matter of git cli being hard either, theyd probably have the same problems with another branchy VCS22:12
rj11: try making them watch a video about git flow?22:12
thierryp left22:12
rawtaz do you need that workflow model anyway or can you settle on something simpler until they become smarter?22:13
cagedwisdom joined22:13
rj11 No, not really on that project. But I figured learning different workflows for different projects would be even harder.22:13
teran left22:14
simesy_ joined22:14
rudisimo left22:14
bodom left22:14
rj11 But trying the video approach might we a good idea.22:14
rawtaz mebe. i was just thinking perhaps they would find it easier if there was just a master branch and all they do is feature branches (and merging to it from master)22:14
DolphinDream left22:15
DolpheenDreamDolphinDream22:15
rawtaz and you could be the main integrator so they make a PR for their feature branches and you are the only one allowed to merge that into master22:15
osse what's the difference between a hotfix branch and a feature branch? (Except its lifetime)22:15
rawtaz yeah i think so. it might make it clearer how simple it is to use git flow22:15
DolphinDream left22:15
SocalNick_ joined22:15
SCM|NotHereStarcraftmazter22:16
rj11 osse: If the bug is from current production it is a very bad idea to branch off of a feature branch. Merging that bug fix back into master to release a new version would include the partially finished feature.22:16
friesk joined22:16
hellopat left22:16
skorgon joined22:16
Kicer86 left22:17
simesy left22:17
SocalNick left22:17
SocalNick_SocalNick22:17
osse rj11: yeah I get that.22:17
rj11: but by the same reasoning it's basd to branch a feature branch off another feature branch22:17
ben_alman left22:18
rawtaz osse: features go into the next release, while hotfixes are for small patches/whatever that cannot wait for the next release. so you make a hotfix and merge it back to master (and develop). while feature branches is not something that go into the mainline master branch, they go into the next release (and with that into master)22:18
rj11 In the end it comes down to common sense. But there must be some logic behind it.22:18
rawtaz its just a workflow, which is just a set of rules basically22:19
policy22:19
osse then rj11 must come in a position to enforce that policy22:19
shruggar joined22:19
rawtaz yeah22:19
if they dont listen thre's nothing he can do really22:19
zoo.22:20
GeertV left22:20
rj11 Keep in mind I've been working there for a few months. Before that they use Dropbox for "version control". :)22:20
used*22:20
rawtaz hah22:20
are you regretting your choice of working place et? :P22:20
yet*22:20
rj11 Haha, not yet. They're quite interested in learning.22:21
cbreak left22:21
standyro1 joined22:21
kossy left22:21
bernalex left22:21
rawtaz thats good :)22:21
harobed left22:22
eletuchy left22:22
bernalex joined22:22
arif-ali left22:22
kossy joined22:22
eletuchy joined22:23
gnu-man left22:23
hobodave left22:23
cbreak joined22:23
ambodi joined22:23
bernalex left22:23
bernalex joined22:23
rendar left22:24
vkrest left22:24
AciD` nobody ?22:24
rawtaz everyone22:24
AciD` idle22:25
rawtaz no way22:25
never!22:25
sudoman joined22:25
tiglionabbit left22:25
rj11 we're all stale22:25
skorgon left22:25
matheus23 left22:25
AciD` maybe my question wasn't that nooish ?22:25
*noobish22:25
endiruna left22:26
Roots47 joined22:26
craigp left22:26
rawtaz AciD`: im sorry i dont get it. if your repo is in foo/bar/blah and you want to move your project to /star/snar then you can just move it. the .git folder in the repo/project folder will move along with it22:26
thats one of the nice things, that everything is in a .git folder at the root of the repo22:27
Roots47 Hey all, I'm having trouble with rebase -i ... I want to rename a bunch of commits, but there is a merge from master a few commits down which is causing trouble22:27
rawtaz Roots47: what happens/whats the trouble?22:27
eletuchy left22:27
Roots47 I'm running 'git rebase -i HEAD~12' ... selecting reword on the commits i want to rename, but something weird seems to happen with the rebase.. it displays the merge commits as no longer being a merge22:27
ciampix_ joined22:28
ciampix left22:28
AciD` rawtaz > let's say I have my files in /old/proj/disorganized. then if I follow you I should copy paste all those files and folder structure into the new (and cleaner) folder structure, then use `git mv` to move the files where I actually want them to be, then commit -a, then rename my files, then commit all again ?22:29
darklajid joined22:29
Vivekananda joined22:29
AciD` (including the .git folder ofc)22:29
Vivekananda on git commit and it says vi is not installed22:29
AciD` (then delete the empty folders22:29
endiruna joined22:29
rawtaz AciD`: holy shit i have no idea what youre saying. first of all, what is the root folder of your project and what is the root of your repo (i.e. where is the .git folder located)?22:29
Vivekananda how do I choose an editor22:29
osse Vivekananda: git config --global core.editor foo22:30
donmichelangelo left22:30
SocalNick left22:30
Mamoru joined22:30
donmichelangelo joined22:30
sudoman left22:31
darklajid Hi there. Looking at the git datamodel right now. I understand the format for blobs and trees, but commits are still.. unclear. I assummed that commits are just texts in the mandatory tree/parent/author/committer/message form (as in cat-file's output) and stored just like blobs (header: "commit $length\0"), but I fail to verify that in my tests. Any idea what I might be missing?22:31
mvelioglu left22:31
SocalNick joined22:31
ao22:31
BSaboia joined22:32
AciD` rawtaz > my project root folder is /var/www/foobar, I want to move files like /var/www/foobar/index.php into a newly created ~/dev/web/src, and /var/www/foobar/dir1/dir2/foo.php into a newly created ~/dev/web/src/blah/, while retaining the history for those 2 files22:32
aard_ joined22:33
aard_ left22:33
oxnrand22:33
Vivekananda oose. git commit says : cannot start vi no such file or editor but on trying just $: vi the vi starts up. What is wrong here22:33
pheaver left22:33
bernalex can I add a sign-off commit without reseting author date?22:34
AciD` the repo is currently in /var/www/foobar/.git22:34
Vivekananda osse: sorry22:34
rawtaz AciD`: that is two separate repositories, how do you expect them to keep history?22:34
bernalex oh right, amend doesn't reset date by default, I forgot, sorry.22:34
pbujok left22:34
rawtaz it might be doable somehow though. but i dont know how. but there are hits on google22:35
amcsi joined22:35
rawtaz AciD`: you can always just copy the entire repository though, but im not sure if thats what you want22:35
AciD` rawtaz > that's the point of my question, as it's basicly just some move/rename files, I'd like to keep all the changes I made to those files22:35
osse Vivekananda: sounds like an environment issue (weird PATH or something). I don't know sorry22:35
Vivekananda: is vi actually an alias?22:35
darklajid: interestingly I cannot find much documentation on it.22:36
AciD` rawtaz > there are indeed numerous hits on google, but you need to master git to fully understand those (that's why I'm reading git docs for hours now..)22:36
darklajid osse: Neighet can I so far. And reading the C source isn't quite as easy if you're not familiar with the codebase AND the language..22:37
thevishy left22:37
yhager joined22:37
p3lim joined22:37
rawtaz AciD`: well i dont think i understand the problem. do you basically want to copy your entire project, or do you want to just copy a few of the files from one repo/project into another existing one?22:38
osse darklajid: I would make a very simple commit and then open the file in a hex editor22:38
vkrest joined22:38
zumba_addict left22:39
frogonwheels AciD`: Git does nottrack individual file history; it tracks snapshots of all files within the directory structure.. So the only way of doing this would be to start off with a copy of the repo filter-branched down to just those files..22:39
valgrind left22:39
darklajid osse: Well, I cannot even find that file unfortunately :)22:39
osse darklajid: no wait. They're compressed.22:39
darklajid: unless you recently made a commit then it's likely packed22:39
ie. not directly available in .git/object/abcdef123422:39
frogonwheels Vivekananda: what does 'which vi' give you?22:40
AciD` rawtaz > let me explain a bit more ; when I started the project, I never heard of the yeoman tools, and build my directory structure by hand. Now I used `yo` to scaffold a brand new directory/file structure. I now need to 'copy-paste' some of my source code in the right folders (and hoped to be able to keep the history for each file)22:40
darklajid osse: I just created a commit. I don't find a file that corresponds to the commit though22:40
Vivekananda frogonwheels: which is not found but whereis : whereis vi22:41
vital: /usr/share/man/man1/vi.1.gz22:41
AciD` frogonwheels > ok, I'll research filterbranching22:41
craigp joined22:41
osse darklajid: you know about the "two first characters of the SHA is the directory" thing right22:41
Vivekananda: ''type vi''22:41
nZac joined22:41
frogonwheels AciD`: the other option is just to take a copy of what you've got, then make a single commit that switches over to your new structure22:41
Kayra left22:42
AciD` frogonwheels > what do you mean ?22:42
l0x3py joined22:42
chadi left22:42
frogonwheels AciD`:Question - is this new copy like a second go at the same project - with the new tools?22:42
alezost left22:43
CKyle left22:43
darklajid osse: I grepped the whole tree for the commit message. Now I see that the commit file is totally unreadable. Hrm..22:43
afhammad left22:44
aslaen left22:44
AciD` frogonwheels > sorry I'm not sure I understood your question (I'm not a native english speaker) are you asking me if I plan to still modify my file after copying them in the new project ? if yes, then the answer is yes22:44
rawtaz AciD`: i agree with frogonwheels. looka t it this way; your project is still that same project. you want to change the files and contents so it matches yeoman style instad of your manual one. so make those changes, and commit it22:44
nathancahill joined22:45
AciD` ah ok, I guess you can indeed first make the changes, THEN just move the folder elsewhere to the new location22:45
arif-ali joined22:45
frogonwheels AciD`: How about; make a clone of your old repo, then just clear all the working files and copy in the new structure with the old index.php and commit that whole change.22:45
mizu_no_oto left22:46
rath left22:46
AciD` sounds great, I'll try that !22:46
pheaver joined22:46
rawtaz AciD`: move+rename the folder /var/www/foobar so that it becomes ~/dev/web/src (and move all the contents with it of course). then make the edits you want to make in it, e.g. moving dir1/dir2/foo.php into blah/22:47
frogonwheels Vivekananda: ok, then type 'alias vi'22:47
rawtaz or what frogonwheels22:47
said22:47
FortySix2 left22:47
whitby joined22:47
matanya left22:47
leeN left22:48
AciD` rawtaz, frogonwheels > should I use basic `mv` cmds, or the one bundled with git `git mv` ?22:48
bernalex left22:49
Mars__ joined22:49
longbeach left22:49
phracker joined22:49
rawtaz i give up, sorry.22:49
frogonwheels AciD`: Personally, I'd just use standard mv commands and fire up git gui to commit all the changes.22:50
rawtaz to move the repo you just move the base folder as usual22:50
bernalex joined22:50
rawtaz to move files within, you can for simplicity's sake use `git mv`22:50
AciD` ok, thanks22:50
jerius left22:50
rawtaz that will stage the move for you22:50
Mars__Mars`22:51
osse darklajid: they're zcompressed22:51
darklajid: zlib22:51
Finkelmann joined22:52
bernalex left22:52
bernalex joined22:52
darklajid osse: 'file' reports VAX COFF executable not stripped - version 5060 ;-)22:52
kossy left22:52
darklajid Let me see if I can extract that thing22:52
kossy joined22:52
osse darklajid: http://stackoverflow.com/questions/3178566/deflate-command-line-tool22:53
ariscop left22:53
SocalNick left22:53
skorgon joined22:53
osse bed22:54
acharlieh left22:55
ngladitz left22:55
SocalNick joined22:55
kossy left22:56
kossy joined22:56
darklajid osse: Thanks22:57
wongon joined22:59
mizu_no_oto joined22:59
Silmarilion left23:00
Dougie187 left23:00
skorgon left23:01
mizu_no_oto left23:02
nedbat left23:02
jabowering joined23:02
xiong I've heard it said it's bad practice to use tags on anything except released versions. Anybody care to discuss this?23:02
Malice left23:03
danman left23:04
pheaver left23:05
el3ctron3 left23:05
el3ctron1 left23:05
el3ctron4 left23:06
becks__ left23:06
smashwilson left23:06
robban666 left23:06
becks__ joined23:06
BullSherd joined23:07
BullSherd Wow, what a things of google. http://goo.gl/pF3kWN23:07
Google is funny haha23:08
BullSherd left23:08
netcarver left23:08
thierryp joined23:08
rjen left23:09
rawtaz funny guy23:09
cozby left23:09
devbug left23:10
becks__ left23:11
danecando joined23:12
fragamus joined23:12
Norm__ joined23:12
thierryp left23:13
dsdeiz left23:14
Norm_ left23:15
xiong ???23:17
fragamus left23:17
xiong Tags, no tags? No opinion??23:17
helterscelter personally I use tags for a couple different reasons.. but most of those tags never leave my repo23:19
skorgon joined23:19
helterscelter my public tags only refer to commits for which I have delivered "something"23:19
xiong Well... I don't have a dog in the fight yet. What you are saying is what I've heard from others.23:19
helterscelter generally a TAG is supposed to be immutable.. though you can change them -- many many times if you choose --23:20
xiong Agreed.23:20
helterscelter some projects choose to have a "latest" tag that moves along with their dev workflow23:20
so the latest gets updated "every release"23:21
the interesting thing to be about this is "latest" still refers to a delivery23:21
v0n left23:21
xiong Agreed, that is, that one should not alter tags. I think of a tag as a fixed pointer, some sort of promise that the thing is something.23:21
helterscelter that is how I treat them as well -- annotated tags anyway23:21
tiglionabbit joined23:21
calcifea left23:21
xiong Well, what about lightweights?23:21
helterscelter lightweights never make it out of my repo23:22
I use them for internal keeping track of things23:22
mostly they are short lived23:22
especially useful with iterative rebase sessions23:22
with lots of possible reording and merge conflicts23:22
pheaver joined23:23
xiong I don't think I've ever rebased except to fix a mistake in my use of git. Not sure the idea appeals to me.23:23
helterscelter I may choose to throw away a couple iterations of squashed/reordering depending on how the history is turning out.. and having a light tag sitting there for some "I know I'm going to go with this state" is handy23:23
reflogs also give you the same thing.. but not as easy to remember where you were23:24
eqyiel left23:24
xiong If two of us have checked out 'devel' and worked on different features, one of us will have to re-pull devel and rebase; I understand that. Otherwise I don't see it.23:24
helterscelter rebase is a very powerful thing, once you wrap your head around it23:24
not necessarily23:24
Finkelmann left23:24
helterscelter you don't HAVE to rebase.. you could merge23:24
xiong I really do not like the idea of squashing. Anything that alters history worries me.23:25
helterscelter ideally you'd not do your development in your local repo against the actual "devel" branch.. you'd create another branch off of it to keep your "devel" tracking clean23:25
revele left23:25
xiong Exactly. Always.23:25
helterscelter rebase is handy for more than squashing23:25
some times it's handy to pull-apart a commit into several or re-order the history a little23:25
xiong http://imgur.com/7cAou23:25
helterscelter yep23:26
that branching workflow is very handy23:26
hard to get folks used to legacy (svn) workflows to grok it tho23:26
madewokherd joined23:26
xiong I've had some arguments about it. I say, I didn't swallow it whole; I modified it until it worked for me. You can do the same, okay.23:27
helterscelter yep23:27
thats what ended up happening23:27
skorgon left23:27
xiong My primary motive was to minimize the SVG file size; the original looks much better but the fuzzy circles cost more.23:27
helterscelter for my team we ended up being forced to have multiple develop lines concurrently, so that we could align with the business's planned release schedule..23:28
craigp left23:28
helterscelter so we "changed it up" some to make the flow work for us and the "business"23:28
polyzen joined23:28
eqyiel joined23:29
Exancillatus left23:29
dglambert left23:29
bhldev_ joined23:30
bhldev left23:30
xiong Sorry, that was the wrong link: http://imgur.com/EGOzs23:30
bernalex left23:31
bernalex joined23:32
tuocuggino left23:33
aberrant left23:33
motto left23:33
afhammad joined23:33
dougsland left23:34
nZac left23:34
dougsland joined23:34
eletuchy joined23:34
cogitos left23:35
helterscelter the only diff between that and what my team does, is we don't use develop -- our "release" branches are our "develop" branches and we merge-forward periodically between releases to keep future target dates up-to-date with "next release" work23:35
jabowering left23:35
amcsi_ joined23:35
dsdeiz joined23:36
helterscelter we also find it handy to tag on the release branch(es) to designate QC and UAT code drops.. so we can easily tell when a drop was made and what changed between drops23:36
whatever___ joined23:36
xiong Okay, well, so one shortcoming of that image is that all the little balloons don't represent the same things. The balloons along support- and trunk represent actual tags; the others are just annotations from me to you.23:36
helterscelter ya23:36
vince_prignano joined23:36
ojacobson left23:37
sanmarcos joined23:37
sanmarcos is there a quick command to "cat" a file before all my changes, cat whatever is at head?23:37
p4denis joined23:38
xiong My current project is a super/sub tool; I've been studying up and discussing various aspects here. I see a use for tags to mark commits in subs, to identify commits made at the same moment in time.23:38
max_weller left23:38
phile left23:39
max_weller joined23:39
amcsi left23:39
Not_Whatever left23:39
xiong Um, therefore $ rhea tag 'foo' and each sub is so tagged.23:39
pheaver left23:39
xiong I fear to go crosswise with the school that advises against tags -- to one degree or another.23:40
helterscelter for "sub" you mean sub-projects?23:40
or git submodules?23:41
CKyle joined23:41
xiong Same thing, in my case -- I think. The more I look at them, the thinner submodules appear.23:41
berzerka left23:41
ariscop joined23:41
p4denis left23:42
eijk left23:42
amcsi_ left23:43
xiong If I always push --follow-tags then lightweight tags will not be pushed, correct? Then perhaps rhea-tag should limit itself to lightweight and we avoid half the objections at least.23:43
helterscelter for git submodules -- which I'll readily admit I don't use currently -- you don't need to tag submodules if you tag the parent23:43
yes --follow-tags only pushes annotated tags23:44
xiong Well... "need"?23:44
If I'm working in a sub then I'm ignorant of the parent context.23:44
helterscelter the current commit that the submodule is on is recorded as part of the commit in the parent23:44
danecando left23:44
helterscelter so a tag on the parent is effectively a tag on the child23:44
vince_prignano left23:45
helterscelter unless you need to interrogate the state (ie tag) in the child individually, there is no reason to tag both23:45
xiong Um, through a layer of indirection. If I'm in subA and want to know which commit was made in subB at the same time, it's up and down.23:45
vince_prignano joined23:45
vurma joined23:45
helterscelter true.. tho I wonder why you'd need to know that23:45
;]23:45
xiong Well, they wouldn't be in the same super if they weren't related.23:46
helterscelter not necessarily23:46
suppose the super is a project "A" and subs "B" and "C" are libraries that "A" uses.. B and C aren't related in that case23:46
xiong I'm going to have to take a break from actually working on the issue and write it up.23:46
nnyk_ left23:46
xiong I usually do that, if not first then soon; but it's taken awhile just to clarify the matter in my head.23:47
Fizzbot joined23:47
xiong In short, in my particular case, there's at least one change I can picture very sharply that needs to be made in every sub and for the same reason.23:48
plasticle left23:49
Fizzbot Hi all, trying to get git installed onto OSX Mavericks.. but the installer is coming up as damaged and unable to install. what's the way to deal with this?23:49
aubreypwd left23:49
nnyk_ joined23:49
Acidnerd left23:49
tvw left23:49
MacWinner joined23:52
Kayra joined23:52
edwardly left23:53
Fizzbot left23:54
whitby left23:55
Kayra left23:57
SHyx0rmZ left23:57
helterscelter ttyl23:58
helterscelter left23:58
bernalex left23:58
nszceta left23:59
pheaver joined23:59
shruggar left23:59
bernalex joined23:59
g3orge left23:59

Logs Search ←Prev date Next date→ Channels Documentation