IRCloggy #git 2012-05-09

Logs Search ←Prev date Next date→ Channels Documentation

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

2012-05-09

Destos left00:00
Lord_DeathMatch left00:01
Element9 left00:01
Xizor left00:02
RobertLaptop joined00:02
ferdna left00:03
ISF left00:03
yoklov joined00:03
dreiss left00:04
iwoj joined00:04
rgwu joined00:04
theCole joined00:05
kenperkins left00:07
n0tk joined00:07
theCole left00:07
RoboTedd_ joined00:08
TeckniX left00:08
fission6 left00:09
smw left00:12
KWKdesign joined00:14
vervic left00:15
lonewulf` left00:15
Slix` joined00:16
vervic joined00:16
codewrangler left00:16
TeckniX joined00:17
lonewulf` joined00:17
adhawkins left00:17
adhawkins joined00:18
smw joined00:19
AaronMT left00:19
JohnyBaby left00:19
JohnyBaby joined00:19
nrichards joined00:21
MichaelRpdx joined00:21
daaku left00:21
tmcmahon joined00:21
neurodrone left00:22
daaku joined00:22
tmcmahon left00:23
JohnyBaby left00:24
adhawkins left00:24
TeckniX left00:25
daaku left00:26
envi_ joined00:26
rurufufuss joined00:29
tfittsy joined00:29
lonewulf` left00:29
ScottNYC is iterm2 pretty much the standard for terminal use? among heavy terminal users anyway00:31
gavin_huang joined00:31
bremner umm. Were you looking for a mac user channel?00:32
thsd joined00:33
pjn_oz joined00:33
lonewulf` joined00:33
juvenal left00:34
ScottNYC nah00:37
sry for the random question00:37
cccaldas joined00:38
SegFaultAX|work left00:40
fission6 joined00:41
nb left00:42
relurk left00:42
MacGyverNL left00:42
vervic_ joined00:43
JohnyBaby joined00:43
vervic_ left00:43
Adys left00:44
squentin left00:45
vervic left00:45
squentin joined00:46
relurk joined00:46
MacGyverNL joined00:46
MacGyverNL left00:46
MacGyverNL joined00:46
tharkun left00:48
tharkun joined00:48
MacGyverNL left00:49
cccaldas left00:50
nb joined00:50
friskd joined00:51
aristidesfl joined00:52
kenperkins joined00:53
friskd left00:54
Adys joined00:54
WillMarshall joined00:54
MacGyverNL joined00:54
MacGyverNL left00:54
MacGyverNL joined00:54
LucasTizma left00:55
sitaram good lord! is mac becoming so common people will say "standard" instead of "standard on mac"? I think I'll retire and become a blacksmith or something00:55
acl_ joined00:57
sdeboey left00:58
joaoh82 left00:58
kevlarman sitaram: wait what?00:59
k-man joined01:00
theCole joined01:00
maletor left01:01
gitinfo set mode: +v01:02
iwoj left01:04
heptadecagram joined01:04
Macca- joined01:05
wilmoore left01:05
neurodrone joined01:06
cakehero joined01:06
gitinfo set mode: +v01:07
Macca- so, under windows i'm having trouble with ssh-agent.. at work it works fine but at home it won't work. `ssh-add` gives me "Could not connect to authentication agent"01:07
heptadecagram left01:07
Macca- i disabled windows firewall, uninstalled mcafee, but still no dice.01:07
ivan sometimes you can use Process Monitor and hope there's a clue in the flood of output01:08
cmn have you tried starting the agent?01:10
Macca- cmn many times01:12
cmn how?01:12
Macca- i've killed the process and restarted it.. it seems to start fine but `ssh-add` just won't connect01:12
kill PID01:12
cmn what output does it give?01:12
williamcotton left01:12
cmn how do you start it?01:12
Macca- `ssh-agent`01:13
weiyang joined01:13
Macca- https://gist.github.com/264092001:13
cmn and have you tried 'eval $(ssh-agent)'01:13
Macca- is the output from starting ssh-agent01:13
MistuhKurtz left01:13
cmn which is how you should start it?01:13
those variables are what the shell needs to consume so ssh can find the agent01:13
so either type it, or run it with eval01:14
Macca- that doesn't work either.01:14
Eridius left01:14
Slix` left01:14
envi_ left01:14
Macca- https://gist.github.com/264092601:15
the variables are set01:16
Vampire0 left01:16
Macca- echo $SSH_AGENT_PID returns the correct pid01:16
jstout24 left01:16
cmn then that's really something you should talk about with the ssh people01:16
thsd left01:18
TomyLobo left01:18
Lgb left01:20
kaos01_ joined01:21
kaos01_ hi, i like to start a branch called testing in a bare repo, do i need to create amaster branch first ?01:22
Lgb joined01:22
bglusman left01:23
codeM0nK3Y left01:23
frogonwheels kaos01_: I guess you could, but it's not really the normal way of doing it.01:23
iamjarvo joined01:23
frogonwheels kaos01_: presumably you have a non-bare clone somewhere?01:23
kaos01_: !master01:23
gitinfo kaos01_: [!master_branch] Master is the default name for the first branch created by git and is in no way special. You could just delete it if you want (though in a bare repository you'll probably want to change HEAD first).01:23
tharkun left01:25
tharkun joined01:25
kaos01_ well i just want to have a repo sith dev/test/prod brnaches01:26
Bombe left01:26
kaos01_ i guess i could create amster branch woth just a README or something in it ?01:27
so whats the standard way to do this ?01:27
frogonwheels kaos01_: I'm not really sure of the point of creating the branches until there's something there.01:27
QF-MichaelK joined01:27
frogonwheels kaos01_: when you need the branches, you push them up would be more standard...01:27
QF-MichaelK left01:27
frogonwheels kaos01_: but sure, if you want to start somewhere, a README or .gitignore or something could be your base commit01:28
kaos01_: and you could just make your dev/test/prod branches and push them to the remote01:28
kaos01_: but I'd do it from a non-bare clone01:28
kaos01_: if you don't want a master branch (which is fine) just remember to set a new default branch for your bare repo01:29
Vampire0 joined01:29
yorick left01:29
kaos01_ aah so i could just push the master up as a branch with the name deve ?01:29
dev01:29
frogonwheels kaos01_: You could, but I wouldn't. git checkout -b dev && git push origin dev && git branch -d master01:30
kaos01_: master is just a name01:30
acl_ left01:30
zdk joined01:30
frogonwheels kaos01_: or you could rename the branch01:31
kaos01_: actually that would be better, git branch -m master dev01:31
yorick joined01:32
kaos01_ cool, i give that a go thanks01:32
thearthur left01:32
thearthur joined01:32
frogonwheels kaos01_: while you CAN push a local branch to a specified remote branch, I would generally say it's to be avoided unless you really, really, really (really) know what you're doing01:32
Lulzon left01:33
xiangfu joined01:33
kaos01_ mm, im confused now01:33
xian9fu joined01:33
kaos01_ so how would i handle different environmnets like dev/test/prod ?01:34
not branches ?01:34
frogonwheels kaos01_: different environments?01:34
Bombe joined01:34
kaos01_ well versions of code, dev /test/prod01:35
frogonwheels kaos01_: you're best off handling them as branches.01:35
thearthur left01:35
kaos01_ isnt that what i was trying to do ? sorry confused01:36
kadoban_ joined01:36
frogonwheels kaos01_: ok, so start will all the branches pointing to the single base commit.01:37
cccaldas joined01:37
xiangfu left01:38
cespare left01:38
iljakuklic left01:38
glennpratt left01:38
sophacles joined01:39
n0tk left01:39
Chib joined01:44
intripoon joined01:44
sophacles left01:45
kcj left01:46
kcj joined01:46
LucasTizma joined01:47
intripoon_ left01:47
osmosis left01:48
chrisgeorge left01:50
sophacles joined01:52
cyb3r3li0g joined01:53
cyphase left01:54
AaronMT joined01:54
bodom joined01:56
brokenshakles_ left01:56
kadoban_ left01:58
TTSDA left01:58
Chaser left01:59
eletuchy left01:59
wilmoore joined01:59
ymasory joined01:59
_huoxito joined02:01
`Assassin left02:01
Slix` joined02:01
iwoj joined02:02
theCole left02:02
Chaser joined02:02
Sahua joined02:02
sayd left02:03
TTSDA joined02:04
acl_ joined02:07
replore_ joined02:08
localhost joined02:09
weiyang left02:10
cakehero left02:10
daaku joined02:10
jimubao joined02:11
cyphase joined02:13
juanpabloaj left02:18
archdori left02:20
solofight joined02:21
RoboTedd_ left02:22
solofight left02:22
TheShagg if I have 2 branches with a common parent, what is the simplest way to rebase one on top of another02:22
SethRobertson Just do it?02:23
git rebase -p theotherbranch02:23
thearthur joined02:23
tharkun left02:25
tharkun joined02:25
alexim joined02:25
m0ve left02:25
weebs__ joined02:25
mritz joined02:26
bodom left02:26
bodom_ joined02:26
weebs__ left02:26
bitkiller left02:26
wassa joined02:26
gitinfo set mode: +v02:27
wassa anyone have experience getting cruisecontrol to pull from a private repo on github? resources?02:27
SethRobertson There is of course nothing magic about github. Any usage of git would be equivalant02:28
wassa ?02:28
bodom_ left02:29
herdingcat joined02:29
AaronMT left02:29
sporous left02:30
yoklov left02:30
sporous joined02:30
Araxia left02:30
juvenal joined02:31
yoklov joined02:31
dv310p3r joined02:32
weiyang joined02:32
SethRobertson When you are doing google research, don't restrict your queries to github. The problem barely has anything to do with git, let alone github.02:32
harish joined02:32
JoeyJoeJo joined02:33
JoeyJoeJo How can I clone a repo at a specific commit, not the most recent commit/02:34
?02:34
SethRobertson Typically you clone the repo and then `git checkout SHA-1`02:34
frogonwheels JoeyJoeJo: when you clone a repo, you get the whole repo.02:34
dabd left02:34
jackh joined02:34
kcj left02:34
orafu left02:36
orafu joined02:36
maletor joined02:36
cybersphinx joined02:38
igotnolegs joined02:39
sirdancealot joined02:39
dfr|mac joined02:40
the_cybersphinx left02:41
alexim left02:41
hwrd|work left02:41
hwrd|work joined02:42
hwrd|work left02:49
brokenshakles joined02:50
robbyoconnor joined02:50
tharkun left02:50
tharkun joined02:51
alexim joined02:52
kerrick joined02:52
kcj joined02:53
kcj left02:53
kcj joined02:53
rgwu left02:54
mwrosen joined02:55
hwrd|work joined02:57
kadoban_ joined02:57
Yuuhi` joined02:58
rchavik joined02:59
Yuuhi left03:00
brokenshakles left03:01
envi_ joined03:03
dreiss joined03:05
ScottNYC left03:06
tharkun left03:08
jackh left03:08
jackh_ joined03:08
TheShagg left03:12
txomon|nqas left03:13
drup4l_n00b joined03:13
tharkun joined03:13
txomon|nqas joined03:15
cyb3r3li0g left03:15
chrisgeorge joined03:16
jameswarren left03:16
SirFunk joined03:16
jameswarren joined03:17
jameswarren left03:17
tharkun left03:18
irqq joined03:20
neunon joined03:23
Orbitrix left03:24
tharkun joined03:24
edude03 joined03:24
elijah left03:24
Orbitrix joined03:25
replore_ left03:25
cyb3r3li0g joined03:26
subbyyy left03:27
chrisgeorge left03:27
kcj left03:28
tharkun left03:29
davidbanham joined03:29
joshsmith joined03:31
subbyyy joined03:33
brokenshakles joined03:34
tharkun joined03:34
apok left03:35
Sahua left03:36
JohnyBaby left03:36
acl_ left03:37
tharkun left03:38
OOPMan left03:38
sophacles left03:38
Chib left03:42
tharkun joined03:44
alanp_ joined03:44
kcj joined03:46
ToBeFree joined03:46
sophacles joined03:47
acl_ joined03:47
alanp left03:47
theDrumm_ joined03:47
Grunewald joined03:49
theDrumm left03:50
tharkun left03:51
tharkun joined03:54
irqq left03:55
weiyang left03:57
drev1 left03:57
az left03:57
maletor left03:57
apok joined03:59
davidbanham left04:00
az joined04:01
dreiss left04:01
brokenshakles__ joined04:02
dreiss joined04:02
brokenshakles left04:02
ivanoats joined04:03
__class__ joined04:03
ivanoats left04:03
ivanoats joined04:03
tharkun left04:04
leonardotartari left04:04
cccaldas hi guys, how can i show the tag on git log --pretty ?04:06
?04:07
_huoxito left04:09
apok_ joined04:09
dreiss left04:09
tharkun joined04:09
d3vic3 left04:10
apok left04:11
apok_apok04:11
h0bbit joined04:11
d3vic3 joined04:11
mcluskydodallas left04:15
offby1 cccaldas: try --decorate04:15
lonewulf` left04:15
flippo left04:16
bgerber left04:16
JohnyBaby joined04:17
Per4u3e joined04:17
cccaldas offby1: thkx04:17
lonewulf` joined04:18
mritz left04:19
tharkun left04:22
bgerber joined04:22
enigmabomb joined04:22
enigmabomb Hello04:22
gitinfo enigmabomb: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.04:22
iamntz joined04:22
JohnyBaby left04:23
enigmabomb I just switched my repo from being owned by a person to being owned by an organization. Now I can't commit to it. how do I change my information to commit from my personal account?04:23
Athanasius joined04:23
Athanasius left04:23
mcluskydodallas joined04:24
yappy joined04:25
EugeneKay enigmabomb - !github04:25
gitinfo enigmabomb: For support with Github-specific features (Forks, Pull Requests, Wikis, etc) please /join #github and ask them. Feel free to ask us, but there are no guarantees.04:25
Grunewald enigmabomb where did you "switch" that? Git doesn't really have any permission system built in04:25
iwoj left04:25
kershal joined04:25
enigmabomb It's github, many apologies.04:25
Grunewald no worries04:25
kukks left04:25
alexim left04:26
JohnyBaby joined04:26
kershal left04:26
madewokherd left04:27
joeytwiddle left04:27
cccaldas left04:27
iwoj joined04:28
Fandekasp joined04:28
skylamer` joined04:30
apok_ joined04:30
d00d3 joined04:31
jameswarren joined04:31
JohnyBaby left04:32
apok left04:33
apok_apok04:33
tharkun joined04:37
iamjarvo left04:37
acl_ left04:38
yappy left04:39
d00d3 left04:40
maleknet joined04:42
fission6 left04:43
mcluskydodallas left04:44
sangi joined04:44
drev1 joined04:45
subbyyy1 joined04:45
subbyyy left04:45
subbyyy1 left04:45
const left04:45
beautifulmind joined04:46
apok_ joined04:46
Slix` left04:47
thearthur left04:48
EyesIsMine left04:48
neurodrone left04:48
apok left04:49
apok_apok04:49
variable joined04:49
yacc left04:49
yacc joined04:50
SerajewelKS is there an argument to git-log similar to --source but that will show every ref (not just one) and only on the commits that the ref points to?04:50
--source will show exactly one ref that the commit is reachable from. i just want to see where each branch is. (basically, trying to get a visual graph similar to gitk's, but on the terminal. "git log --all --source --graph" is close, but not quite there.)04:51
derp, --decorate04:52
ToBeFree left04:52
SerajewelKS once again, i solve my problem only after asking04:52
harish left04:52
harshpb joined04:52
daniel-s__ left04:53
ivanoats left04:54
ivanoats joined04:57
isao joined04:58
pppaul left04:58
pppaul joined04:59
Ecesis joined05:00
superdmp joined05:01
ivanoats left05:01
michaelmartinez joined05:01
shruggar joined05:02
khmarbaise joined05:02
shruggar left05:02
Maccer left05:03
twisted` left05:03
malex left05:03
JonasF left05:03
JonasF joined05:03
malex joined05:03
antix left05:04
Milossh left05:07
edude03 left05:07
rawtaz left05:08
et left05:09
Milossh joined05:09
iwoj left05:09
neurodrone_ joined05:11
Sigma joined05:11
antix joined05:11
et joined05:12
jimubao left05:12
rawtaz joined05:12
SerajewelKS is there a difference between "git fetch" and "git remote update"?05:14
rchavik left05:14
SerajewelKS rather, "git fetch --all" and "git remote update"05:14
tharkun left05:15
brokenshakles__ left05:15
wassa left05:16
weiyang joined05:17
michaelmartinez left05:17
ivanoats joined05:18
michaelmartinez joined05:18
ivanoats left05:18
ivanoats joined05:18
davidbanham joined05:18
ivanoats left05:19
tharkun joined05:21
kerrick left05:21
khmarbaise left05:22
adamm left05:22
cehteh left05:24
drev1 left05:24
subbyyy joined05:24
subbyyy left05:25
subbyyy joined05:25
iwoj joined05:26
tharkun left05:27
oogatta joined05:29
tharkun joined05:31
jceb joined05:32
brokenshakles joined05:32
Dave^| joined05:33
iwoj left05:33
neurodrone_ left05:35
arietis joined05:36
fission6 joined05:36
airborn joined05:38
mineiro joined05:38
twisted` joined05:39
Maccer joined05:41
tharkun left05:41
rtjure joined05:41
jceb left05:41
davidbanham left05:42
martinjlowm joined05:43
_sundar_ joined05:44
macmartine left05:45
lausi left05:46
lausi joined05:46
tharkun joined05:47
davidbanham joined05:47
Unirgy joined05:47
resmo_ joined05:48
dr0id joined05:48
dr0id left05:48
dr0id joined05:48
Unirgy hi, does anyone use git subtree? how would I push the changes back to the original lib repo?05:48
emptyflask joined05:48
Unirgy is it just as simple as git subtree push?05:48
_ikke_ !subtree05:49
gitinfo The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options05:49
_ikke_ subtree merges aren't really meant to contribute back05:50
twisted` left05:50
hwrd|work left05:50
dfr|mac left05:50
Unirgy _ikke_: thanks but this page looks outdated, doesn't use git subtree * syntax.. so I've seen `git subtree push` which suppose to do what I'm after, but I didn't find any examples in txt05:51
the library is evolving together with the project, that's why i need to push back05:51
LongBeach joined05:51
tharkun left05:52
Unirgy is there anything else that would suite my needs? submodule doesn't do anything beyond just having repo inside copy.05:52
_ikke_ Unirgy: There is also !gitslave05:53
gitinfo Unirgy: gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time.05:53
_ikke_ but I wouldn't have a clue if it's suitable for you05:53
Grunewald left05:53
Unirgy thanks!05:53
looks like exactly what i need05:54
_ikke_ Never used it, so can't help you with it05:55
michaelmartinez left05:55
KWKdesign_ joined05:57
tharkun joined05:57
thursday left06:03
davidbanham left06:03
frogonwheels Unirgy: that's not quite true about submodule.. but up to y ou06:04
skylamer` left06:04
ferdna joined06:04
frogonwheels Unirgy: when you commit a submodule change to the parent module, you commit the sha1 of the submodule into the parent module.06:04
Unirgy frogonwheels: basically i found learning the intricacies/fighting with it not worth the trouble. having (no branch) commits, not updating always, etc06:05
frogonwheels Unirgy: Which means if you checkout an older commit in your main repo, do git submodule update - then the submodule will be in the same state as when you comitted that main repo commit06:05
davidbanham joined06:05
Unirgy frogonwheels: what's the point of (no branch) state?06:06
_ikke_ Unirgy: That you always have the same version in all repositories06:07
alanp_ left06:07
frogonwheels Unirgy: it checks out a commit, not a branch06:07
Unirgy well i guess i just don't have enough brain real estate left to understand this06:08
marthinal joined06:08
martinjlowm left06:08
_ikke_ Unirgy: When you add a submodule to git, you say: "I want this specific version of the submodule"\06:08
frogonwheels Unirgy: when you have a branch checked out, HEAD points to ref:/refs/heads/branch .. if you check out a commit, then HEAD points to SHA106:08
_ikke_ Unirgy: Because you don't want your app to break when upstream adds commits06:09
LucasTizma left06:09
frogonwheels Unirgy: !detached06:09
gitinfo Unirgy: A detached HEAD occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach06:09
ThomasLocke joined06:10
martinjlowm joined06:10
alanp joined06:10
jceb joined06:10
Unirgy thanks for the info. given all the needs i have for managing modules, i think for now i'll work with subtree, and then if i'll have time i'll revisit submodules and/or gitslave06:11
davidbanham left06:11
LucasTizma joined06:12
mishok13 joined06:13
h0bbit left06:13
KWKdesign left06:13
LucasTizma left06:16
ferdna left06:17
cbreak-work joined06:17
papegaaij joined06:19
archdori joined06:19
ThomasLocke left06:20
mishok13 left06:22
Fandekasp left06:23
mwrosen left06:24
subbyyy left06:24
welly left06:25
josefig left06:25
senny joined06:25
ph^ joined06:25
dreiss joined06:27
archdori left06:27
harish joined06:28
EyesIsMine joined06:29
mastro joined06:30
phluks joined06:30
brokenshakles left06:30
Rafusek left06:31
igotnolegs left06:31
anderse_ joined06:32
dc5ala joined06:32
Rafusek joined06:33
Milossh left06:33
flijten joined06:33
Chaser left06:33
kaos01_ left06:36
tharkun left06:36
hwrd|work joined06:36
Chaser joined06:36
rchavik joined06:37
XMLSDK joined06:40
mikepack joined06:40
Milossh joined06:41
giallu joined06:42
tharkun joined06:42
bowarv left06:42
iwoj joined06:44
pppaul left06:45
pppaul joined06:45
airborn left06:45
mikepack left06:45
mishok13 joined06:46
cafaro left06:46
mikepack joined06:46
yoklov left06:46
cafaro joined06:46
cafaro left06:46
cafaro joined06:46
Fandekasp joined06:48
ehsan joined06:50
mikepack left06:51
emptyflask left06:51
tharkun left06:52
pantsman joined06:55
amcsi_work joined06:55
afuentes joined06:55
diegoviola hmm, i can't upload files to github bug tracker?06:56
logs, etc06:56
i could just use markdown i guess?06:56
Silex yes, or create a gist and link to it06:56
diegoviola ok, ty06:57
amcsi_work left06:57
amcsi_work joined06:57
tharkun joined06:57
hwrd|work left06:57
brokenshakles joined06:58
marhaban joined06:59
Nibato left06:59
txomon|n1as joined06:59
txomon|nqas left07:00
Bigcheese left07:01
Bigcheese joined07:01
DofLeFou joined07:04
valtih joined07:06
Nibato joined07:06
txomon|n1as left07:06
txomon|nqas joined07:08
txomon|nqas left07:08
txomon|nqas joined07:08
marhaban left07:08
h0bbit joined07:08
boob00 hello07:09
gitinfo boob00: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.07:09
boob00 is there good document over the net for migrate working SVN to working GIT?07:09
oogatta left07:10
iamheavymetal left07:10
thiago joined07:11
daaku left07:12
_ikke_ boob00: one time conversion?07:13
boob00: Maybe this helps: http://help.github.com/import-from-subversion/07:14
alecm_ joined07:15
thiago_ joined07:15
robbyoconnor left07:15
boob00 _ikke_: Thanks, But I will mention that I want keep the SVN A live :)07:15
thiago left07:15
alecm_ left07:16
thiago_ left07:16
OOPMan1 joined07:16
kcj left07:17
_ikke_ Then just use git svn07:17
sgronblom joined07:17
DofLeFou left07:17
thiago joined07:17
serban is it just me or the git plugin for eclipse is just horrible?07:18
sgronblom How should I do my prepare-commit-msg hook so that I can close the editor without editing the message and have the commit be aborted.07:18
bigkm left07:19
pantsman left07:19
_ikke_ sgronblom: Not07:19
sgronblom: The hook is applied before the editor is invoked07:19
Lgb left07:20
xhr joined07:20
sgronblom _ikke_: yeah but if I overwrite the message file then git will make the commit even if I didn't make any manual changes to the commit file... in some cases you might want that though i guess07:20
_ikke_ sgronblom: So it can only be used to modify the message, not change the behaviour after the editor is closed07:21
sgronblom yeah so if you have a prepare-commit-msg hook that changes the file you will always end up with a commit...07:22
xhr left07:22
irqq joined07:22
Lgb joined07:22
sgronblom well i can always reset07:22
_ikke_ sgronblom: The only way to abort the commit in the editor is to result in an empty commit message (delete everything)07:23
sgronblom ah that works fine too07:24
thiago left07:25
skylamer` joined07:26
brokenshakles left07:26
veyres joined07:26
dvide left07:28
rtuin joined07:29
jameswarren left07:29
boob00 _ikke_: the svn2git utility is ruby script?07:30
_ikke_: the svn2git utility is ruby script?07:30
sorry for twice here :)07:30
tharkun left07:32
tharkun joined07:32
_ikke_ boob00: It's a perl script afaik07:33
Per4u3e left07:34
_ikke_ But it's integrated into git07:34
yacc left07:36
yacc joined07:37
pjn_oz left07:38
drup4l_n00b left07:38
TheHaven joined07:39
dr_lepper left07:40
oogatta joined07:41
WillMarshall left07:42
dreiss left07:46
enigmabomb left07:46
babilen left07:47
dr_lepper joined07:47
snickersnack joined07:48
XMLSDK left07:48
mastro left07:49
BarryCrayon joined07:49
tharkun left07:49
enigmabomb joined07:50
kcj joined07:50
thomas_b left07:52
tharkun joined07:55
adhawkins joined07:56
jds_ joined07:56
enigmabomb left07:57
beautifulmind left07:57
shruggar joined07:58
anderse_ left07:58
jds left07:58
seoaqua joined07:59
Kicer86 left07:59
Rafusek_ joined07:59
seoaqua left07:59
snickersnack left07:59
seoaqua joined07:59
Rafusek left08:00
Czesiu joined08:00
virtuose left08:00
Silex I have a big history that I'd like to cleanup with git rebase -i. However I have merge commits on top of this history that I don't want to lose. What are the suggestions?08:01
git rebase -i -p fails08:01
I was thinking of creating a branch taht points to where before the merge occur, then rebase -i that one, then rebase -p --onto or smth the stuffs with merges08:02
_ikke_ Silex: You basically have to reacreate the merges manually08:02
s/reacreate/recreate/08:02
Silex (what I want to cleanup is like 50+ commits named "Work in progress")08:03
_ikke_ Are there many merges?08:03
Silex _ikke_: it's merge commits that would otherwise be fine with --ff08:03
_ikke_ yeah, but rebasing doesn't work well with merges08:03
Silex they were created with --no-ff following the git successful branching model08:03
I thought rebase -p worked "fine"08:03
except with -i08:03
aspotashev| joined08:03
_ikke_ yeah, that's what I meant08:04
aspotashev left08:04
Silex I think my idea would work08:04
_ikke_ Might, no experience08:04
mastro joined08:04
Silex given A-B-C-D-MERGESHITSTARTSHERE08:04
I create a branch on D08:05
rebase the shit out of it08:05
then rebase -p on D'08:05
xian9fu left08:05
Silex with the range MERGESHIFTSTARTSHERE08:05
I'll try. Thanks anyway :)08:05
_ikke_ Just make a backup and !tias :P08:06
gitinfo Try it and see™. You learn much more by experimentation than by asking without having even tried. http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS.08:06
Kicer86 joined08:06
Silex now I have to go deep in the abyss of --onto08:06
flype joined08:07
changedNicks left08:08
changedNicks joined08:08
changedNickskindHuman08:08
mastro left08:09
sig^ left08:10
isao left08:10
mastro joined08:12
dr_lepper left08:13
LemonBE|work joined08:13
dr_lepper joined08:15
dr_lepper left08:15
dr_lepper joined08:15
ThomasLocke joined08:15
LimeBlast joined08:15
Vert joined08:16
optixx left08:18
Vile left08:18
arvind_khadri joined08:20
tsdh joined08:20
babilen joined08:22
ThunderChicken left08:23
ThunderChicken joined08:27
mineiro left08:27
_ikke_ onto is nothing special08:28
mineiro joined08:28
mineiro left08:28
mineiro joined08:28
_ikke_ you are just explicitly telling where to base onto08:28
flype left08:31
veyres _ikke_: Thank you for all the interesting url you give with gitinfo. I'm a noob with git and it helps a lot.08:33
flype joined08:33
Rafusek_ left08:33
iwoj left08:34
Kicer86 left08:37
marcogmonteiro joined08:37
flype left08:38
zdk left08:39
thomas_b joined08:39
zdk joined08:39
stodan joined08:39
iwoj joined08:39
iwoj left08:40
tatsuya_o joined08:40
_ikke_ That's why it's there. It helps us to give information very easily08:40
Silex damnit, git rebase --onto expects a common parent08:40
apok left08:41
_ikke_ does it?08:41
Might be08:41
Pupeno_W joined08:41
dark_element joined08:41
iwoj joined08:42
stodan left08:42
afuentes how to use git rm -rn path? whats the -r recursive for if git does not track directories?08:43
kadoban_ left08:43
afuentes it gives me an error fatal: pathspec 'test' did not match any files :/08:43
Kicer86 joined08:43
thomas_b left08:44
ThunderChicken left08:44
Silex how do I merge two completely unrelated branches while keeping merges?08:44
thomas_b joined08:45
optixx joined08:45
selckin define merge in that context08:45
iwoj_ joined08:45
lekefly_ left08:46
FauxFaux With "git merge otherbranch"? (Or commit-tree _¬_¬_¬)08:46
iwoj left08:46
tcurdt joined08:46
tcurdt left08:46
keltvek left08:46
harshpb left08:47
anderse_ joined08:47
noisebleed joined08:48
noisebleed left08:48
noisebleed joined08:48
ThunderChicken joined08:48
babilen left08:48
stodan joined08:49
tharkun left08:49
chrischambers joined08:50
yappy joined08:51
zendeavor yurgh, screwed the pooch on a merge08:51
what is the command i'm looking for to revert back to a prior commit/08:51
git reset?08:52
_ikke_ zendeavor: yes08:52
zendeavor: as long as you haven't published (pushed) it yet08:52
Silex FauxFaux: ah right, thanks08:53
zendeavor shit i think i did by reflex08:53
preflex left08:53
Silex btw I found that "git rebase -i -p" works actually fine as long as you only do "fixup" and not reorder commits08:53
zendeavor _ikke_: can i use something else to step back08:53
sporous left08:53
Silex now of course the problem is taht I want to flatten some merge commits but not others08:53
_ikke_ Well, there is git revert, but you have to look out with merges08:53
Silex: I guess that's what's described in the bugs part of the man page08:54
zendeavor yeah i thought i checked my files but i definitely missed some crucial ones08:54
Silex _ikke_: yep08:55
tharkun joined08:55
pro_metedor joined08:55
Silex oh, of course I lost all my tags too08:56
keltvek joined08:56
pro_metedor how can I move a commit from top of my branch to new branch ?08:56
boltbolt_08:56
bolt_bolt08:56
FauxFaux pro_metedor: !fixup08:56
gitinfo pro_metedor: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!08:56
_ikke_ pro_metedor: git checkout -b new_branch08:56
pro_metedor I want to get back actual branch by one commit and push my changes into new branch08:56
zendeavor okay let me get this right. if i want to merge a branch into master with intent to essentially make the branch the new master, what is the proper step?08:57
Textmode left08:57
FauxFaux git branch -f master master~ #!08:57
zendeavor checkout master, merge branch?08:57
FauxFaux zendeavor: Yep.08:57
Desproges joined08:58
pro_metedor how can I move last commit into new branch and delete it form existing branch ?08:58
zendeavor okay looks good now08:58
_ikke_ pro_metedor: You have to think in terms of where the branch points to08:59
zendeavor FauxFaux: _ikke_ thanks guys. git still frightens me with its power ha08:59
dpino joined08:59
_ikke_ pro_metedor: A commit doesn't really 'belong' to a branch08:59
Vile joined08:59
pro_metedor yeah, commit is only a change08:59
_ikke_ not really08:59
Well, not in the meaning that it's a diff09:00
Rafusek joined09:00
_ikke_ It's rather a snapshot09:00
afuentes i untracked some files from master... but i still track them in branches... how to checkout branches now? it says its going to overwrite files if i do checkout :S09:00
pro_metedor ok09:00
Sitethief joined09:00
_ikke_ pro_metedor: git branch <new_branch>; git reset --keep HEAD~; git checkout <new_branch>09:00
afuentes: That's a tough problem09:01
afuentes _ikke_, thanks09:03
Unirgy left09:03
afuentes :) i manage to break stuff often09:03
no matter how rock-solid is the design09:03
_ikke_ afuentes: git can't overwrite those files (because it doesn't track them anymore)09:03
So it doesn't know what to do09:03
afuentes well, neither do i09:04
is there a way to remove those files form the first commit on from the branches without checking out?09:05
that would solve it :)09:06
_ikke_ afuentes: man git filter-branch09:06
gitinfo afuentes: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html09:06
berserkr joined09:08
harish left09:09
NetJunky joined09:09
d0k joined09:10
achadwick joined09:10
Rafusek left09:11
Rafusek joined09:11
linusoleander joined09:12
afuentes _ikke_, that sounds complicated :S what about git rebase branch? wouldnt that put the rm commit to the head without checking out?09:12
LekeFly joined09:14
JohnyBaby joined09:14
francisfish joined09:14
gitinfo set mode: +v09:14
NetJunky Hello!09:14
gitinfo NetJunky: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.09:14
afuentes nah, it tries to rewind, so it does not allow to do each checkout... damn09:15
ill read more about git filter-branch... to try to figure it out what it does09:15
NetJunky @afuentes can I ask you about git-scm?09:15
afuentes NetJunky, wel, you can certanly ask the channgel about git-scm09:16
NetJunky, just what gitinfo told you if you read it :)09:17
NetJunky :)09:17
Okey.09:17
jds_ left09:17
Silex ah, it worked! \o/ git rebase --onto rebased_branch_before_A A~ master09:19
isao joined09:19
archdori joined09:19
arvind_khadri left09:20
TheHaven left09:20
_ikke_ Silex: Nice09:20
iwoj_ left09:20
nenjordi joined09:21
Silex _ikke_: yeah, basically rebase the chunks you want individually each in its own branch then "rebase --onto" the hell out of it09:22
zendeavor man merging branches in git is easy but tedious huh09:22
_ikke_ zendeavor: In what way tedious?09:22
eIf joined09:22
esc http://sprunge.us/aJUU09:23
help?09:23
Fandekasp left09:23
cbreak-work it should not be tedius09:23
linusoleander left09:23
cbreak-work esc: what's up?09:23
zendeavor well i'd setup all these branches something like a month ago, and then redid my sandbag branch from the bottom up and now want to essentially make it the master branch from which to tweak the rest of the other branches.09:23
so there's a month worth of commits, maybe longer, that i'm having to merge around and stuff before i've got clean working branches of everything09:24
cbreak-work just make new branches when you need them09:24
rking joined09:24
esc i have it falling over bad09:24
_ikke_ esc: do you have another repository that might have that object?09:24
cbreak-work making branches long ahead is usually dumb.09:24
esc yeah, but its a different object every time09:24
Vile left09:25
zendeavor cbreak-work: i am still learning git, using my dotfiles as a guinea pig for the process09:25
and i have branches of 3 different machines09:25
eIf hello, can you please help me with this issue? http://pastebin.com/ED4QfR2L thank you a lot09:25
esc now i am getting this one: http://sprunge.us/DdYL09:25
i think the filesystem is goen haywire09:26
Vile joined09:26
FauxFaux Yeah, have fun with that. :)09:26
zendeavor esc: go fsck it right now09:27
angelsl joined09:27
esc lol, its coming in via nfs409:27
TheHaven joined09:27
zendeavor oh no.09:27
eijk joined09:27
esc my sysadmin will have fun09:27
JohnyBaby left09:27
sdeboey joined09:27
esc zendeavor: http://sprunge.us/fiEU09:28
check the end of it09:28
cbreak-work zendeavor: well, merging is easy09:28
zendeavor esc: yeah doesn't look fun09:28
cbreak-work just merge all the things you want into the branch you want them09:28
then you're done.09:28
you can rename branches too if you want09:29
but I recommend you to only make branches for topics, and maybe some very specific other things09:29
diegoviola left09:29
zendeavor cbreak-work: yup it's just that i'm doing the activity in a silly way by keeping all these branches at all09:29
troyt left09:30
TomyLobo joined09:30
zendeavor but i don't have root on one system, so my configs need some tinkering09:30
archdori left09:30
zendeavor i could manage it as a separate repo, but that's too easy. no learning!09:30
iljakuklic joined09:30
alexukf joined09:30
eIf left09:30
JohnyBaby joined09:30
lapistano left09:31
lapistano joined09:31
Silex hum, one last thing: git rebase -p didn't reuse the commiter date09:33
cortana2 joined09:33
andrew293 joined09:33
Silex how do I tell it to reuse it too? (for merge commits)09:33
Element9 joined09:34
mastroWork joined09:37
jast you can't09:37
asakura0 left09:37
esc grrr09:37
jast newly created commits always use the current time for committer date09:37
mastro left09:39
asakura0 joined09:40
AlexanderS left09:40
AlexanderS joined09:41
rtjure left09:42
tharkun left09:43
linusoleander joined09:44
mineiro left09:45
seoaqua left09:46
beautifulmind joined09:46
w09x left09:47
jackh_ left09:47
tharkun joined09:48
iwoj joined09:49
esc i managed to copy my file, just in time09:49
lost the history though09:49
cslcm joined09:50
cslcm Hi folks. I have a problem with git returning a "index-pack abnormal exit" error, on a push. I've established that the git-index-pack process does run - but I can't see what the return code is, or what the error is. Is there any way to force some verbosity in index-pack?09:51
weiyang left09:51
w09x joined09:51
flype joined09:52
_ikke_ cslcm: not sure, but maybe EXPORT GIT_TRACE=109:53
s/EXPORT/export/09:53
export GIT_TRACE=true09:53
theCole joined09:54
Fandekasp joined09:54
_ikke_ If this variable is set to "1", "2" or "true" (comparison is case insensitive), git will print trace: messages on stderr telling about alias expansion,09:54
built-in command execution and external command execution.09:54
FauxFaux It might honour GIT_TRACE=109:54
_ikke_ Yeah, but numeric values refer to an open file descriptor09:54
1 would be STDOUT and 2 would be STDERR then I guess, right?09:55
FauxFaux Oh dear.09:56
_ikke_ FauxFaux: ?09:56
babilen joined09:56
Lord_DeathMatch joined09:56
cslcm unfortunately that appears to have had no effect09:56
FauxFaux cslcm: Is the repo okay? git fsck && git repack # on the remote?09:57
cslcm it's a brand new empty repo09:57
so yes :)09:57
FauxFaux Uh oh.09:57
_ikke_ FauxFaux: Doesn't sounds good09:58
FauxFaux git push file:///a/repo09:58
cslcm pushing locally works fine09:58
pushing to ssh://user@127.0.0.1 works fine09:58
but pushing remotely doesn't09:58
FauxFaux I find that statement hard to believe. What else is different?09:59
cslcm the data being pushed is different09:59
the local tests were just small files09:59
FauxFaux How big is the other stuff? i.e. is index pack running out of memory?10:00
JohnyBaby left10:00
cslcm ah, that is possible, the server doesn't have a lot of memory10:00
the data i'm trying to push is ~200mb10:01
FauxFaux Mmm, things are normally fine up to ram+swap size.10:01
cslcm there's plenty of swap10:01
I strongly suspect a permissions problem (We recently had a sysadmin run a chmod -R 0600 / - needless to say he's gone now)10:02
but I have replaced all the git binaries and checked their perms10:03
and the repo perms10:03
i really need to get some feedback from index-pack10:03
cbreak-work wonder what that guy was thinking10:05
cslcm I suspect it was a typo / great power great responsibility fail etc etc10:05
harish joined10:07
pydonny joined10:07
ph^ left10:07
cslcm alright, so i'm gonna move the data to the remote server and try pushing it locally10:07
et like the thing on github that had rm /usr /share/mylib in the uninstall script10:08
with "-rf" of course10:08
cslcm heh10:09
Fandekasp left10:11
linusoleander left10:11
tatsuya_o left10:13
tatsuya_o joined10:13
Desproges left10:14
Desproges joined10:14
tatsuya__ joined10:14
tatsuya_o left10:14
tatsuya__ left10:14
pjn_oz joined10:15
theCole left10:16
herdingcat left10:17
iwoj left10:17
berserkr left10:17
avar joined10:18
avar left10:18
avar joined10:18
berserkr joined10:19
Yewbacca joined10:19
_ikke_ bumblebee or something like that10:20
gitinfo set mode: +v10:21
fisted left10:22
fisted_ joined10:22
_ikke_ yes, bumblebee, but the repository has been abandoned10:23
Yewbacca Hey. Git keeps track of files by hash, but what if a file is both renamed/moved AND slightly modified; how does Git know it is a modified version of an older tracked file? Does it look at a list of all files that it can no longer find that were there before and does a delta compare? Or maybe it doesn't know, and stores the whole file?10:23
dvide joined10:23
babilen left10:23
Yewbacca I ask because I am implementing something similar to how Git works but for an entirely different purpose10:24
cslcm Yewbacca: in that case you would normally see a delete and an add in the log10:24
Yewbacca Ah, it stores the whole file as if it was new?10:24
canton7 I think git's rename detection will detect a rename if <50% of the files in question are the same?10:24
oops, >50%10:25
cslcm you may be right, but it isn't my experience10:25
Yewbacca Mm, sounds like a delta compare of a list of missing files to all ne, untracked files then, canton. I think that is how I will do it too.10:25
to all new*10:25
canton7 also, -M and -C to git-log10:25
cslcm when i've moved AND changed a file, it's always decided it's a new object. However, this very rarely happens of course.. commit often! :)10:26
xiangfu joined10:26
canton7 also --follow10:26
andrew293 left10:28
Yewbacca Hehe yeah, commit often. I'm actually implementing a space-saving, incremental installer format that delivers application updates as deltas, and am tracking files via hash (and also variable length hashed chunks), and was working on the problem of renamed and modified files, hence why Git came to mind. Thanks a lot for the info, I will do something similar and if the files are mostly the same I'll decide it's a rename+modify.10:28
yappy left10:28
cslcm an sha1 won't cut it for that, a slightly modified file will generate a completely different hash10:29
intripoon left10:30
jast Yewbacca: you may want to look at how rsync works10:30
cslcm will have to use tigertree or something similar10:30
babilen joined10:30
Yewbacca Yep, I use a main hash for the file itself (fast way to verify updates after deltas are applied, as well as tracking moved files) AND variable-length hashed chunks. The latter moves a sliding window over the file and identifies patterns and only stores them once.10:30
jast there are delta libraries you can reuse, in fact10:31
such as xdelta10:31
Yewbacca Thanks for the suggestion jast but rsync uses this principle I just described, even simpler in fact.10:31
Aye10:31
jast I know10:31
Yewbacca Might use xfelta10:31
jast then again xdelta is only good for generating deltas when you have both versions of the file available10:32
cslcm I feel that these packages have failed in not adopting the name "delta skelter"10:32
jast if you deliver update bundles you don't really need the extra abilities of rsync10:32
snearch joined10:32
linusoleander joined10:33
Yewbacca Yeah, my system basically keeps both the latest + newly released versions, and derives the deltas from that info, spits out an updater package, and throws away the previous full installer, so the server keeps only the latest full installer, plus incremental breadcrumb updates for all older versions.10:33
Rofl cslcm10:33
rtuin left10:34
simenbrekken_ joined10:34
snearch left10:34
nrichards left10:35
nrichards joined10:35
pfFredd joined10:35
cagedwisdom_ joined10:35
ihptru left10:36
rtuin joined10:36
intripoon joined10:41
mastro__ joined10:43
pfFred joined10:45
pfFredd left10:45
ronniy joined10:46
rtuin left10:46
mastroWork left10:46
MissionCritical left10:47
tharkun left10:49
tharkun joined10:49
rtuin joined10:50
hexa2k9 left10:55
xiangfu left10:56
gjoseph joined10:56
hexa2k9 joined10:57
blacktulip joined10:57
marhaban joined10:58
Mission-Critical joined10:58
gjoseph hi. i'm running this git svn clone command with 2 —branches and 2 —tags flags. it sits there for a few minutes, no output, stops, and the result git repo is empty or broken (git log says "fatal: bad default revision 'HEAD'", for example). Now, if I only pass the first of each —branch and —tags, it works fine (except it obviously doesnt fetch the other tags/branches). if i only pass the second ones, it "doesn't work". What's strange is that i have anot10:59
splitting init and fetch has the same results btw11:00
nonuby joined11:00
juvenal left11:00
linusoleander left11:04
j0ran left11:04
linusoleander joined11:05
linusoleander left11:06
linusoleander_ joined11:06
Mission-CriticalMissionCritical11:09
gjoseph ho well in fact, that doesn't work for that other project either. it used to, with git 1.7.9.4, we've upgraded to 1.7.10 since. does that ring a bell ?11:09
jvasak joined11:10
ben_alman left11:10
ben_alman joined11:12
gjoseph (it says nothing after "Initialized empty Git repository in" — while the working ones output a lot, going through each and every revision etc)11:13
ph^ joined11:15
troyt joined11:17
oogatta left11:19
j0ran joined11:20
amitz left11:21
amitz joined11:21
pydonny left11:22
squentin left11:23
marhaban left11:24
squentin joined11:24
mikaelj left11:24
Silex "git filter-branch" also rewrite tags... is there such an option for git rebase?11:25
tharkun left11:25
mikaelj joined11:26
Silex (filter-branch does it with the option --tag-name-filter cat)11:26
sangi left11:27
teotwaki joined11:27
Yewbacca left11:27
tvw joined11:31
tharkun joined11:31
Peste_Bubonica joined11:31
Per4u3e joined11:33
syamata joined11:35
b00b00 joined11:36
buttsies joined11:36
edude03 joined11:36
chayin_ joined11:36
tomex left11:36
w09x_ joined11:37
Droggl_ joined11:37
Doobie_ joined11:37
pjn_oz left11:37
roland_ joined11:37
Yuuhi`` joined11:37
dv310p3r left11:39
Shanacha1 joined11:39
shabble_ joined11:39
PerlPilot joined11:39
eno_ joined11:39
shabble_ left11:39
shabble_ joined11:39
Silex ahah! I'd use the post-rewrite hook apparently11:39
rook2paw1 joined11:39
doki_pen_ joined11:39
Serajewe1KS joined11:39
Nom-_ joined11:39
heptadecagram joined11:39
Smirnov joined11:39
Milossh_ joined11:39
heptadecagram left11:39
nick_h_ joined11:39
cmn if you need automated tag rewrite, you shouldn't be using tags for that11:39
hanneso_ joined11:39
Weiss joined11:39
MattRich1rdson joined11:39
FabTG joined11:39
noqqe joined11:39
chihiro_ joined11:39
asoltys_ joined11:39
anildigital_ joined11:40
ppr joined11:40
sophacle1 joined11:40
xxtjaxx_ joined11:40
tommyvyo_ joined11:40
Silex cmn: context is I removed binary files from the repo, and now I want to rebase -i to clean the mess11:40
tabakhase_ joined11:40
anoob joined11:40
Silex existing tags don't get automatically transfered to the rebased commits11:41
stodan_ joined11:41
cmn and why not filter-branch?11:41
which is the tool made for that?11:41
Silex I already used filter branch to remove teh big binaries11:41
iOPK joined11:41
Silex now I want to reword commits and squash a lot of them together etc11:41
the history is really messy11:41
Element9 left11:42
butts left11:42
hwrdprkns left11:42
beautifulmind left11:42
cslcm left11:42
boob00 left11:42
chayin left11:42
w09x left11:42
Milossh left11:42
OPK left11:42
tabakhase left11:42
roland left11:42
Doobie left11:42
Vert left11:42
tommyvyo left11:42
SeySayux left11:42
maxorator left11:42
anildigital left11:42
teotwaki left11:42
SerajewelKS left11:42
BrainFreak__ left11:42
eno left11:42
thorbjornDX left11:42
Shanachan left11:42
PerlJam left11:42
stodan left11:42
TTSDA left11:42
daethorian left11:42
syamata0 left11:42
Nom- left11:42
et left11:42
sophacles left11:42
FabTG_ left11:42
unreal left11:42
hanneso left11:42
noqqe__ left11:42
MattRichardson left11:42
OOPMan1 left11:42
Yuuhi` left11:42
Vert joined11:42
thorbjornDX joined11:42
unreal joined11:42
maxorator joined11:42
unreal left11:42
unreal joined11:42
tommyvyo_tommyvyo11:42
Element9 joined11:42
Zyrkon_ joined11:42
et joined11:42
hwrdprkns joined11:42
cslcm joined11:42
teotwaki joined11:42
TheDudeKnows joined11:43
arvind_khadri joined11:43
OOPMan joined11:43
arvind_khadri left11:43
arvind_khadri joined11:43
markatto joined11:43
chihiro_ left11:44
maxb joined11:44
aristidesfl left11:45
chihiro joined11:45
didi joined11:45
TTSDA joined11:46
tharkun left11:46
tatsuya_o joined11:47
chihiro left11:47
nonuby left11:47
LimeBlast left11:47
LimeBlast joined11:47
linusoleander_ left11:48
didi I have a branch called `foo' that has a file called `bar'. I'm at `master' and I want to patch master's `bar' with the changes from the foo's `bar', but only for testing. I'm not ready to create a new commit. Is it possible?11:48
chihiro joined11:48
SeySayux_ joined11:48
_ikke_ What do you mean with patch it with foo's bar11:49
Orbitrix left11:50
linusoleander joined11:50
lukus left11:51
didi _ikke_: I mean, the `bar' file from the `foo' branch has some differences from the `bar' file from the `master' branch. I want those differences merged at the `master' branch.11:51
lukus joined11:51
Silex btw for my problem before I found this: http://blog.nilsjonsson.com/post/4421450571/rebasing-tags-in-git-repositories11:51
tharkun joined11:52
NimeshNeema joined11:52
FauxFaux Which has a man page reference and an admission that he's silly at the top?11:52
flype left11:52
PrinceAMD joined11:52
zdk left11:52
_ikke_ FauxFaux: wat?11:53
Droggl_Droggl11:53
linusoleander left11:55
didi `git checkout foo bar'11:55
That will do.11:56
Sigma left11:56
nevyn so I'm trying to track multiple patch sets on the kernel11:56
linusoleander joined11:56
nevyn so from some kernel base there's then the rt quilt patches (using quiltimport)11:56
didi left11:57
nevyn then a particular topic branch from sound/usb-audio which I'm cherrypicking11:57
then a manual patch to fix some hardware stuff.11:57
Chibby_ joined11:57
squeakytoy joined11:57
nevyn is there a sane way to move that last set of stuff to a new -rt without re-doing all the above.11:58
Desproges left11:58
OOPMan left11:59
tharkun left12:00
_class_ joined12:01
__class__ left12:01
Silex --committer-date-is-author-date doesn't work for git rebase -p12:01
any idea around this?12:01
edude03 left12:01
Desproges joined12:02
sgncfl joined12:03
freeed joined12:04
MacGyverNL left12:05
dvide left12:05
tharkun joined12:05
Silex ah, filter-branch should be able to (http://stackoverflow.com/questions/5520425/how-can-i-rebase-a-commit-made-by-another-author-without-adding-myself-as-the-co)12:05
_class___class__12:06
anoob I've added "website/config.php" to my .gitignore file and then commit the changes and pushed. My changes in this files are not ignored at all, they are still marked. My friend tried in his repo but the same happens...12:07
wilmoore left12:07
_ikke_ anoob: Git doesn't ignore tracked files12:08
!config12:08
gitinfo [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem.12:08
dv310p3r joined12:10
anoob left12:11
d3c joined12:11
krz left12:12
shabble_shabble12:13
Vinnie_win how do I discard all my untracked files and just reset index and working to HEAD ?12:14
krz joined12:14
FernandoBasso joined12:15
iamjarvo joined12:16
cmn clean && reset --hard HEAD12:16
Orbitrix joined12:17
arvind_khadri left12:18
edude03 joined12:18
jackh joined12:19
Vinnie_win clean12:19
cccaldas joined12:19
Vinnie_win that's the ticket. thanks12:19
t4nkd`workin joined12:20
asakura0 left12:20
Serajewe1KSSerajewelKS12:21
jsoa joined12:24
ph^ left12:25
camdenx left12:26
cehteh joined12:27
camdenx joined12:27
MichaelRpdx left12:28
nenjordi left12:29
daethorian joined12:29
alexukf left12:30
asakura0 joined12:30
eli joined12:30
ehsan left12:30
camdenx left12:31
sgncfl left12:32
plasticboy joined12:33
Sigma joined12:34
t4nkd`workint4nkd`12:35
linusoleander left12:36
dv310p3r left12:37
bartek joined12:37
davv3 joined12:38
sirdancealot left12:38
rurufufuss left12:39
kaen left12:39
ph^ joined12:39
davidbanham joined12:39
ph^ left12:41
Chibby_ left12:42
AaronMT joined12:42
nrichards left12:44
sgncfl joined12:47
amigojapan joined12:47
martinjlowm-lptp joined12:48
pfFred left12:49
revagomes joined12:50
glennpratt joined12:51
subbyyy joined12:51
sgncfl left12:51
bodom joined12:52
cccaldas left12:55
dr0id left12:56
glosoli joined12:56
glosoli how to check status of pull ? I mean to check if there is any updates available ?12:56
RaceCondition joined12:56
anoob joined12:57
vitor-br joined12:57
cmn git remote show tells you about that12:57
or you can just fetch and get the new data directl12:57
glosoli git remote show sounds fairly12:58
thanks cmn wish you a good day12:58
PerlPilot left12:58
kcj left12:58
TeckniX joined12:58
bglusman joined13:00
PerlJam joined13:00
glosoli left13:00
Per4u3e left13:01
macabre joined13:01
cslcm so i've established that the "unpack error" seems to be caused by a certain file being checked in / pushed. I haven't been able to work out which one yet, or why.13:02
davidbanham left13:04
b00b00 If I ran git svn clone on SVN repo, and it build new git repo, during this time new commits appended to the SVN, is there a command to update the cloned git repo?13:05
oriba joined13:05
sq-one joined13:05
bremner b00b00: man git-svn fetch13:05
gitinfo b00b00: the git-svn manpage is available at http://jk.gs/git-svn.html13:05
bremner also git-svn rebase iirc13:06
b00b00 Thanks13:06
kermit left13:06
juvenal joined13:07
krz left13:08
kermit joined13:08
edude03 left13:08
juanfer joined13:09
ocharles left13:09
maleknet left13:10
glennpratt left13:10
neurodrone joined13:10
glennpratt joined13:11
envi_|2 joined13:11
mastroWork joined13:12
subbyyy left13:12
leonardotartari joined13:12
envi_ left13:13
edude03 joined13:13
sgncfl joined13:15
mastro__ left13:15
malex k13:16
harish left13:16
Rickardo1 joined13:17
ehsan joined13:18
barrbrain joined13:18
Rickardo1 I am new to git and now I am fighting with a merge conflict.. when I open the file I see <<<<<<<<< HEAD and some hash ... How am I supposed to handle this? Is there any tool?13:18
Lgb left13:20
FauxFaux git mergetool # will launch vimdiff if you know how to operate that. Or, you can just make the file look like you want, save, git add, and declare victory.13:20
kodie joined13:20
cannonball joined13:20
barrbrain_ joined13:21
localhost left13:21
kodie left13:22
mastroWork left13:22
Lgb joined13:22
linusoleander joined13:24
barrbrain left13:24
barrbrain_barrbrain13:24
dpino left13:24
Rickardo1 left13:26
ocharles joined13:27
nrichards joined13:27
tyatpi joined13:29
pmatthews joined13:30
nadavoid joined13:30
elijah joined13:30
mischat joined13:31
ocharles left13:31
_ikke_ I can recommend kdiff313:31
I find it easy to use, and quite clear13:31
mritz joined13:33
ocharles joined13:33
lcpfnvcy left13:33
et p4merge is also quite nice13:33
erichynds joined13:34
mritz left13:36
Mowsh joined13:37
joeytwiddle joined13:37
Chib joined13:38
mastroWork joined13:40
petershaw joined13:41
w0m joined13:41
oriba left13:41
tharkun left13:41
tharkun joined13:41
w0m .13:42
isao left13:42
gjoseph left13:42
LekeFly left13:43
ToBeFree joined13:43
isao joined13:44
luka12345 left13:44
__class__ left13:45
__class__ joined13:46
luka12345 joined13:46
twisted` joined13:47
yoklov joined13:49
Nom-_Nom-13:49
ph^ joined13:49
hendry joined13:50
hendry is there a way to print the location of origin without doing a `cat .git/config`?13:50
isao git remote -v13:51
jkal joined13:51
phluks left13:51
mritz joined13:53
hendry isao: thanks!13:53
rstory-work joined13:53
isao left13:54
rstory-work hi.. quick bisect question... what do you do when a bisect point won't build due to somone else's bug somewhere else? e.g. bisect chose a commit in a series of N commits, and the project won't build at that point..13:55
_ikke_ skip13:55
man git bisecr13:55
man git bisect13:56
gitinfo the git-bisect manpage is available at http://jk.gs/git-bisect.html13:56
cbreak-work so... we had quite a weird problem on windows with git just now13:56
git clone of a new repository failed13:56
it worked fine on my mac13:56
Dave^| left13:56
rstory-work perfect, thanks! sorry, i should have checked the man page instead of relying on a blog post. :-(13:56
cbreak-work but cloning on windows always aborted during the checkout phase13:56
cmn are you using non-ASCII chars?13:57
cbreak-work no13:57
cehteh always? .. i had some transitent bugs in win2000 running under virtualbox13:57
cbreak-work on windows 7 64 bit13:57
every single one13:57
Shanacha1 left13:57
cbreak-work turns out, the folder had an illegal name.13:57
cehteh as usual with windows .. trying the same thing again worked13:57
camdenx joined13:58
cehteh proof: windows is nondeterministic :)13:58
cbreak-work the name was "aux"13:58
(without the quotes)13:58
cmn ah, yes13:58
ugi left13:58
cbreak-work I mean, what the hell13:58
et it's more likely that you don't remember what you did the first time and did something differently now13:58
cbreak-work how's that name illegal?13:58
cehteh and irregular :)13:58
cmn I believe you'll have to thank Mr. DOS for that13:58
bartman` left13:58
cbreak-work this is windows 713:58
_ikke_ is aux forbidden in windows?13:58
cbreak-work based on NT13:58
_ikke_: yes.13:58
it seems that way13:58
cehteh backwards compatibility cows :)13:59
bug for bug13:59
harish joined13:59
OOPMan joined14:00
_ikke_ cbreak-work: How did you find out?14:00
tbird72 joined14:00
cbreak-work _ikke_: I tried to make the folder in explorer14:00
rstory-work left14:01
_ikke_ http://www.blindedbytech.com/2006/11/16/forbidden-file-and-folder-names-on-windows/14:01
cmn yeah, Wikpedia says so too: AUX COM1 … COM9 CON LPT1 … LPT9 NUL PRN14:01
FauxFaux http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx is the official spec.14:02
drev1 joined14:02
cehteh on unix only 'core' sux :)14:02
t4nkd` left14:02
FauxFaux Used to be called "Naming a file", which is a much cuter title. ("John.").14:02
newbie999|3 joined14:02
gavin_huang left14:03
t4nkd`workin joined14:03
newbie999 left14:03
oriba joined14:04
joeytwiddle left14:04
_ikke_ cehteh: I can create a dir called core on linux14:04
cehteh yes14:04
blacktulip left14:05
bartman` joined14:05
oriba left14:05
cehteh but some (few/many/whatever) tools do ugly things :)14:06
mischat left14:06
cmn you can create a file as well14:06
but if your program dumps core, it might get overwritten14:06
pppaul left14:08
OOPMan left14:08
joeytwiddle joined14:09
pppaul joined14:09
_ikke_ ah ok14:09
Ecesis left14:10
popcorn joined14:10
Sahua joined14:10
kpreid left14:10
FernandoBasso left14:11
valtih_ joined14:11
intransit[work] joined14:11
intransit[work] left14:12
pro_metedor left14:12
linusoleander left14:12
Sonja joined14:12
Sonja is it possible to compare git commits to instances of "saving", and if so, what is the equivalent of "undo", i.e. return to a specific "save"14:13
_ikke_ Sonja: Instances of saving?14:14
bob2 ado you mean stash?14:14
valtih left14:14
mastroWork left14:14
pro_metedor joined14:14
valtih_valtih14:14
cbreak-work Sonja: no. Why?14:14
Sonja i.e. "ok my app works, and i just added a feature. i'll commit this."14:14
PerlJam Sonja: you can checkout any commit you want. That's not quite "undo" though.14:14
FernandoBasso joined14:14
Sonja then i dabble and try to add a new feature, but i mess up14:14
and i want to roll back to the last functioning version, i.e. the most recent commit14:14
oriba joined14:14
cbreak-work git checkout -p14:14
PerlJam Sonja: so checkout that version14:14
Sonja thanks14:15
_ikke_ Sonja: Also: commit often, commit early14:15
cbreak-work and always commit running code14:15
(or rewrite history to make it appear that way)14:16
otherwise bisecting will suck.14:16
Sahua_ joined14:16
Sahua left14:16
w09x_ left14:17
sdeboey left14:17
j0ran left14:17
kpreid joined14:18
Sonja committing feels like clicking Control-S in LIbreOffice Writer14:18
i.e. I'm saving my work14:18
cmn but you're not overwriting it14:18
cbreak-work also, it's not saving it14:19
Sonja maybe a better analogy is edit history of an article in wikipedia14:19
you can go and rollback to a particular version of the article14:19
cmn for some values of "rollback"14:19
Lord_DeathMatch left14:19
Sonja :-S14:20
whitman joined14:20
cmn rollback isn't something that's well-defined in the context of igt14:20
bitkiller joined14:20
cmn and it means something different for different people14:20
cbreak-work it's more like copying all files that you track into a new directory14:20
somewhere away from your normal files14:21
shondm joined14:21
cmn what's the trigger for the parable? !parable14:21
gitinfo 'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html14:21
Sonja what's the word for "hmm let's make everything look like git commit "version 3" again, let's restore to back then and undo what i currently have"14:21
cmn it's the undo part14:21
intransit joined14:21
_ikke_ git checkout -f <version 3>14:21
cmn you don't undo it, you split off a new line14:21
cbreak-work git reset --hard kills history14:21
git checkout visits history14:21
cmn eventually, yeah14:21
cbreak-work I recommend doing the latter14:21
Sonja thank you for the parable14:21
and <version 3> here would be that long string that uniquely identifies the commit?14:22
cmn the problem with speaking about rolling back when you don't like a particular way the code is progressing, is that it sounds like braches don't exist14:22
eicto joined14:22
sirdancealot2 joined14:22
cmn and they're a central part of git14:22
Sonja i guess i'm not using the branching feature, or somehow i don't intend to14:23
_ikke_ Sonja: Yet14:23
Sonja i'm using git as a way for me to go forward and backward in time when i mess up14:23
does branching become relevant when i work in a team?14:23
_ikke_ Sonja: Even if you don't14:23
cmn no, it becomes relevant when you have more than a simple script14:24
cbreak-work you have at least one branch14:24
Wooga xsl-трансформеры ( http://git.neverb.net/mine/aloe.git/tree/sufd-files/src/main/xslt?id=4ed59d8783a09bb912b75c00b14242cd4602f687 ) берут такие вот файлы: http://git.neverb.net/mine/aloe.git/tree/sufd-files/src/main/generators?id=4ed59d8783a09bb912b75c00b14242cd4602f687 и генерят вот этого монстра :14:24
http://git.neverb.net/mine/aloe.git/tree/sufd-files/src/main/resources/aloe/sufdfiles/layer.xml?id=4ed59d8783a09bb912b75c00b14242cd4602f68714:24
oops14:24
sorry, wrong channel14:24
chrisgeorge joined14:25
Wooga and network...14:25
shondm left14:25
shondm joined14:25
shondm :)14:25
harshpb joined14:25
Sonja if i'm developing a web app by myself, what is an example of why i would want to use branches in my project?14:25
_ikke_ Sonja: Developing different features in paralel for example14:26
building a feature and in the meantime fix something14:26
cmn or experimentation14:26
Wooga or refactoring14:26
Sonja thanks for your wisdom :)14:26
yoklov left14:26
cmn and also for clarity14:26
mastroWork joined14:27
_ikke_ Sonja: You master branch for example, could be defined as always deployable14:27
consumerism joined14:27
_ikke_ So any development happens on a different branch14:27
Sonja my current programming methodology is. add one tiny feature. check if it works. save. if not, then undo.14:27
_ikke_ (topic branches as they are called)14:27
cmn if you always develop all features linearly, you'll have a harder time figuring out where particular commits come from14:27
shondm Anyone know how I could use Tower (or any UI) with a git repo on another computer over lan? The working copy needs to be on the remote (it's a web server), but I'm getting massive lag on NFS, SMB, SSH14:27
shondm left14:27
shondm joined14:27
shondm left14:27
shondm joined14:28
Sonja i'm always living on the edge of things breaking14:28
cmn shondm: the working directory is local, see !deploy14:28
gitinfo shondm: Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh14:28
k-man when i do a git pull to my branch, it askes me for a commit message, as i have some local changes commited - is there a way to prevent it prompting me for the message and just use the default message?14:28
cmn Sanja: that's why VCS exists14:28
Sonja, I mean14:28
shondm I don't want to deploy, I want to use a git UI tool locally, and dev on the remote, push from the remote, etc14:28
cmn so you don't have to worry about breaking things14:28
shondm Using a UI through the network14:28
_ikke_ k-man: No, it's designed this way14:28
cmn shondm: then mount14:28
_ikke_ k-man: merges should be meaningful14:29
Sonja thanks for the guidance, everyone14:29
cmn and use that repo as though it were local14:29
shondm Tried that, everything is horribly slow14:29
thiago joined14:29
cmn there's no other way14:29
glennpratt left14:29
_ikke_ k-man: You might want to rebase instead14:29
consumerism i have a master branch and a testing branch. a lot of people have been making commits on testing for a while, some have bothered to merge master from time to time but most have not. master also contains cherry-picked commits from testing. i just merged master into testing with -s recusive -X theirs. (i wanted to simply make sure any code that is on testing is working with everything that's on master).14:29
now git status says i am 84 commits ahead of origin/testing. this seems wrong to me. any idea what i did wrong here? i expected 1 commit ahead: my merge i just did.14:29
cmn either you run the software on the other computer or you put a repo on yours14:29
_ikke_ consumerism: !repro14:29
gitinfo consumerism: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session, or at least explain exactly what you did that led up to the problem. This will help immensely with troubleshooting.14:29
k-man _ikke_, --no-edit?14:29
glennpratt joined14:29
k-man _ikke_, whats the advantage of rebasing instead?14:30
_ikke_ k-man: cleaner history14:30
k-man: No unnecessary merges14:30
k-man _ikke_, sounds good14:30
shondm @cmn I even tried setting --git-dir locally and --work-tree as the remote, but it's slow. Still no other way?14:30
k-man so i just do a git-rebase rather than a git-pull?14:30
consumerism _ikke_: literally, while on testing with a clean tree, 'git merge master -s recursive -X theirs'14:30
KWKdesign_ left14:30
cmn shondm: your problem is with the speed of our file access14:30
nothing git can do about that14:31
consumerism not sure what else you're looking for14:31
cmn s/our//14:31
mikegerwitz consumerism: Every commit that was in master but not in testing has been merged, in addition to a merge commit. So if you had 84 commits in master that were not in testing, then that is correct.14:31
83*14:31
shondm @cmn Is there a recommended lower limit? Something like 100kb/s?14:31
kenperkins left14:32
consumerism mikegerwitz: ok, in that case i guess everything is ok. i wish my fellow coders would merge more frequently. :)14:32
cmn shondm: that's something that your FS does14:32
shondm: you might get some advantage by repacking14:32
but the main problem probably isn't speed, but latency14:32
any network FS is going to have horrible latency14:32
shondm Alright so the short answer is find out how fast git needs to be, for me, and then find a network protocol that can do at least that, plus very low latency14:32
cmn you can't change that14:32
there is no need for it to be any speed14:33
it's whatever you feel isn't too slow14:33
Sonja 'git add --all' is the same as 'git add .' ?14:33
code joined14:33
cbreak-work shondm: latency is not an issue for git14:34
shondm Well, status through ssh on the remote takes ~1 second, from local through sshfs takes ~1 minute14:34
After a repack14:34
cbreak-work it works fine with extremely high latency protocols14:34
like hours or days14:34
if you use the appropriate transport14:34
cmn right, that's all just your FS14:34
git usually does small reads14:34
shondm Interesting14:34
ShooterMG left14:35
drev1 left14:35
shondm The remote is ext4, local is Mac OS Extended (journaled)14:35
cmn just clone the damn repo14:35
oriba left14:35
NetJunky left14:35
cmn it's going to be faster than trying to figure out how to do magic with physics14:36
shondm You suggest a post-commit push on the local and a post-receive push on the remote then?14:36
cmn no14:36
linusoleander joined14:36
code left14:36
cmn I suggest you work on your computer and push out changes whenever you need to14:37
shondm Well there's 3 machines. My local dev (mac), remote web (ubuntu), and then a cloud (production)14:37
code joined14:37
code left14:37
code joined14:37
cmn and?14:37
shondm I'd like to write code locally and use a git UI, where the git repo/work tree it on the remote web, and I push, using the UI, to the cloud14:37
PerlJam shondm: are you concerned that you can't test your changes locally?14:38
shondm Basically yes14:38
cmn then push to a temp branch14:38
and run the tests there14:38
shondm Specifically, PHPUnit takes a very, very long time and I'm not allowed to push to production without running it14:38
cmn and why is five seconds that takes you to push so important then?14:38
shondm I'm trying to find a way not to add steps to my workflow14:38
cmn then what you need is to figure out how to test locally14:39
shondm I run tests / push maybe ~20 times a day (urgent client requests, fixes, etc)14:39
PerlJam shondm: not quite the right optimization I would think.14:39
LemonBE|work left14:39
PerlJam shondm: you want to only add *simple* steps to your workflow14:39
cmn use a VM locally or whatever14:39
PerlJam shondm: and then hopefully you can figure out how to automate them :)14:39
cbreak-work work via x1114:39
LemonBE|work joined14:39
cmn trying to use a very slow link for the FS is going to cost you more time14:39
cbreak-work: tower is OSX, remote is Linux14:40
cbreak-work who cares14:40
shondm I guess I'll change the short answer to "no-go"14:40
cbreak-work if he wants to work remote14:40
he can use a linux git client14:40
beatak joined14:40
cmn what he wants is to use tower, from what I see14:40
cbreak-work then he wants to work locally14:40
cmn right14:40
cbreak-work because that is a local program14:40
that works on local repositories14:41
cmn indeed14:41
shondm That's why mounting was the first idea14:41
cbreak-work you could try to somehow mount the remote filesystem14:41
but I'd doubt you'd be happy with the performance :)14:41
cmn except that's way too laggy14:41
PerlJam shondm: you could always run ubuntu in a VM on your mac for testing.14:41
cmn and the real problem is that testing takes long, so figure out how to test faster14:41
shondm It's not the ubuntu OS I'm looking for, it's the dedicated hardware14:41
cmn huh?14:42
PerlJam shondm: either way you want to separate development from deployment (even if it's just to a testing box)14:42
cmn you have your own computer, no?14:42
barrbrain_ joined14:42
shondm Believe me, I've optimized the tests (40% reduction), and I'm on a 2011 Pro with all the upgrades including RAID 0 SSD's, and still it drags14:42
cbreak-work git does not need dedicated hardware14:42
it works fine on the side14:43
cmn shondm: then make the tests on push14:43
shondm So back to adding steps. Dang.14:43
linusoleander left14:43
cmn then go sit on that computer14:43
you're adding computers to the mix, so you need more steps14:43
shondm I'll do a commit hook locally that pushes to the test PC, a post-receive hook that runs tests, and a post-test-pass hook that pushes to production14:44
cbreak-work shondm: you should remove steps14:44
remove the step of communicating to the remote host uselessly14:44
and work locally14:44
it'll be much faster14:44
shondm Non-option14:44
ThomasLocke left14:44
cbreak-work believe me:14:44
a mac is capable to edit text without trouble14:44
PerlJam shondm: why is that a non-option exactly?14:44
shondm You both missed the first parts of the conversation I think14:45
_huoxito joined14:45
cmn shondm: the step you should remove is the NFS mount14:45
that's adding a gazillion steps to every edit you make14:45
shondm Yes, I'm about to14:45
cbreak-work yeah, as I said: work locally14:45
FauxFaux giggles.14:45
cbreak-work all those useless steps just cost you time14:45
sitaram shondm: git config core.preloadindex true #... might help14:45
bob2 you want a CI server to manage this14:45
shondm @sitaram Will try14:45
barrbrain left14:46
barrbrain_barrbrain14:46
airborn joined14:46
shondm @bob2 have one, but it's on the cloud, twice as slow, and runs tests from 10 other devs14:46
bob2 lolz14:46
also, not twitter14:46
frogonwheels left14:47
shondm Impossibly request is impossible I guess14:47
drev1 joined14:47
linusoleander joined14:48
cmn yes, quite14:48
barrbrain_ joined14:48
frogonwheels joined14:48
drev1 left14:48
cmn why is this computer somewhere on the Internet instead of the office?14:49
barrbrain_ left14:49
linusoleander left14:49
Per4u3e joined14:50
cbreak-work cmn: the cloud is the new paradigm14:50
sitaram and it costs a pair of dimes now too14:51
cmn and that's all fine for background jobs14:51
barrbrain left14:51
klj613 joined14:54
shondm @cmn CI server is in the cloud because the team is all remote (9 countries, 10 devs)14:55
Tinti joined14:55
nj3ma joined14:55
cmn then there's no way anything other than pushing is going to work14:56
shondm Well, again I mis-explained myself14:56
xiangfu joined14:57
jackh left14:57
shruggar left14:57
FauxFaux left14:57
dv310p3r joined14:58
h0bbit left14:59
Sigma left14:59
PerlJam shondm: un-mis-explain yourself :)15:00
Sigma joined15:00
PerlJam shondm: I still don't understand your constraints. They seem arbitrary to me. Why can't you develop and test locally? Why do you need the 3rd machine?15:00
shondm There's only 2 machines in my problem, and 4 total15:01
cmn it sounds like it's clear. You want to edit text on your computer and have another computer do the tests, because they apparently need high-end software to even run15:01
shondm I would like to write code and use Tower (git ui) locally, but have the working tree on a remote (which is in my house) because it's a web app, where I also run tests15:01
PerlJam shondm: yeah, all that is arbitrary.15:01
xiangfu left15:01
cmn then where on earth are you?15:01
why aren't you at home?15:02
shondm I'm at home15:02
Me, my laptop, and my desktop are all here15:02
cmn but you said the test server is somewhere in the cloud15:02
shondm That's the CI server, can ignore15:02
core. preloadindex didn't help15:02
SethRobertson I think you need to step back and re-explain your problem.15:03
sitaram shondm: let me get this straight:15:03
cmn why is that repo in that other computer that isn't even running the tests?15:03
why is that location magic?15:03
shondm Sublime Text 2 to write the code, Tower to manage the repo, and it's all hosted on another machine in my home15:03
sitaram shondm: everything is on LAN, no WAN involved. You want to use a UI on one machine while keeping the work tree on another15:03
shondm ^15:03
sitaram oh good lord; what the heck is sublime text -- poetry writing software?15:04
cmn hihi15:04
sitaram the names people come up with15:04
shondm Just a text editor I like15:04
PerlJam sitaram: it's a textmat-like editor15:04
Jackneill joined15:04
Jackneill left15:04
Jackneill joined15:04
PerlJam er, textmate-like even15:04
cmn but why must the code be on this other computer?15:04
sitaram PerlJam: I know nothing about textmate either, honestly :) But have at least heard of it :)15:04
cmn if it's not running the tests, it just adds complexity15:04
shondm It's dedicated to this application, my macbook isn't15:04
PerlJam shondm: and why do you keep talking about "the repo" as if there's only one sacred repo?15:04
cmn dedicated how?15:05
glcrazy joined15:05
glcrazy left15:05
cmn if it needs Linux, why not a VM?15:05
shondm It's running ubuntu server 11.10, and configured to be a web server, with just one web app, so minimal resources used for anything but this lone app15:05
cmn and why can't you run this on your mac?15:05
glcrazy joined15:05
cmn it can run web servers as well15:06
PerlJam yeah, I do stuff like that all the time.15:06
shondm Yes, that was my original incantation15:06
PerlJam but ... ?15:06
cmn and you decided to add this other computer why?15:06
shondm After the app got larger and larger, my macbook is no longer able to run the tests within 10 minutes15:06
10 minutes per push x 20 pushes per day = 200 minutes of tests15:06
cmn so this other computer /is/ running tests?15:06
t4nkd`workin left15:07
shondm On the desktop it is only 30 minutes total15:07
sdaone joined15:07
PerlJam shondm: so you still develop locally (have a clone of the repo on your mac) and deploy to the testing machine whenever you want to run tests (it has it's own clone too)15:07
shondm I don't have a clone on my mac, I'd like to keep only one copy of the app on one computer (the desktop)15:08
cmn you keep contradicting yourself15:08
alexukf joined15:08
PerlJam shondm: why only one copy? that's the crazy part for me.15:08
SethRobertson And why do you care how many repos you have?15:08
FauxFaux joined15:08
shondm Reducing the total steps to production15:08
cmn but you're adding time15:09
sitaram shondm: *why* dont you have a clone on your mac?15:09
SethRobertson "Doctor doctor, it hurts when I do this!" "Don't do that."15:09
yoklov joined15:09
PerlJam shondm: so ... back to the beginning. Having another clone reduces the steps. *NOT* having another clone increases the number of steps15:09
glennpratt left15:09
sporous joined15:09
shondm I basically want to dev, test, and sync as if my macbook is my desktop15:10
PerlJam shondm: not having another clone increases the steps because of all the hoops you have to jump through to maintain that arbitrary constraint.15:10
glennpratt joined15:10
preflex joined15:10
cbreak-work shondm: you can clone the repository15:10
shondm It was simple at first, when I was using the terminal for repo management15:10
cbreak-work then you can work locally as if your macbook is your desktop15:10
because it has the repository local15:10
shondm It's a web app, that's the catch. I have to refresh the page / do whatever between changes, then commit those changes15:11
I guess it's hard to understand when you're not actively doing it15:11
PerlJam shondm: what it sounds like is this: you're creating a whole bunch of other work because you're trying to avoid having to type "git push"15:11
flijten left15:12
shondm That's not the case15:12
cmn just work on your desktop15:12
shondm There's additional factors15:12
cmn it reduces even more steps15:12
PerlJam shondm: is there some part of the app that you can't run on your mac?15:12
shondm Tests15:12
PerlJam tests aren't part of the app15:12
cmn but you don't need to run tests after every keystroke15:12
shondm No but I do before committing15:12
Sitethief left15:12
shondm Well, pushing15:12
cmn no you don't15:12
but you don't15:13
PerlJam shondm: so stop doing that15:13
shondm I must test before I push15:13
xiangfu joined15:13
cbreak-work no15:13
PerlJam shondm: you said you have the ubuntu box for testing. Let the tests run there.15:13
cmn no you don't15:13
cbreak-work don't be stupid15:13
shondm I push directly to production with important fixes15:13
SethRobertson You must test before you share your work with others15:13
cmn you have to test before you deploy to production15:13
cbreak-work don't push to production!15:13
cmn shondm: then don't push directly to production15:13
shondm It's my job to do so15:13
cbreak-work push to the test server that does the testing15:13
then push from there to where ever you want15:14
after testing15:14
got it?15:14
simple.15:14
sporous left15:14
sitaram he won't15:14
cbreak-work even a web dev should get that :)15:14
cmn huh? it's your job to do what?15:14
sitaram (get it I mean)15:14
cbreak-work cmn: probably "push directly to production"15:14
ah well...15:14
work end! :D15:14
cbreak-work left15:14
PerlJam sitaram: don't be disparaging; some people need more help than others and that's okay :)15:14
tvw left15:15
xiangfu left15:15
cmn I'm pretty sure the job isn't "the push to production must happen directly to production without pushing to a third computer to run tets"15:15
that just doesn't make sense15:15
xiangfu joined15:15
shondm I don't see how this is a complex workflow; I dev on my laptop, the app runs on the desktop, where the git repo is, and through ssh I tell the desktop to test, then push to production15:15
sitaram PerlJam: I agree, but the amount of traffic, and the number of people who have said essentially the same thing for the past few minutes... *shrug*15:15
PerlJam shondm: it's not complex except that you make it so by requiring only one repo15:16
cmn shondm: it's not complex15:16
you're making it complicated15:16
instead of pushing directly to production, push to a computer that runs tets fast15:16
shondm That's the goal15:16
cmn then why aren't you doing it?15:16
shondm I feel like I need a diagram at this point15:17
Porpado joined15:17
PerlJam shondm: for us or for you? ;)15:17
sitaram PerlJam: join the club!15:17
shondm It's just the UI tripping me, so I'll just switch back to using the terminal15:17
SethRobertson Let us try again. You make changes on mac-repo. You commit. You push to test-repo. Test run. If all is good, you push to production-repo. Done!15:17
shondm Problem solved15:17
PerlJam shondm: what SethRobertson said15:18
sporous joined15:18
sporous left15:18
sporous joined15:18
shondm I don't do anything with mac-repo because I don't have one, I only have test-repo15:18
SethRobertson GAAAAAAAAA!15:18
Porpado left15:18
PerlJam shondm: and that's the problem.15:18
sitaram shondm: (laptop, local clone, edit, save, commit, push) -> (desktop, ubuntu, post-receive hook runs test suite and reports errors to STDERR)15:18
dark_element left15:18
PerlJam shondm: clone the repo on your mac15:18
shondm Sillyness15:19
FernandoBasso left15:19
cmn there is no reason why you can't have your repo on the mac15:19
sporous left15:19
cmn it will solve your problem with latency15:19
shondm Between edits (before commit) I'd like to load the app and see what it's doing15:19
sporous joined15:19
PerlJam shondm: and you can do that on your mac15:19
SethRobertson Commit early and often. !best15:19
gitinfo [!best_practices] There is no one right answer for git best practices, but a consensus from #git is available at http://sethrobertson.github.com/GitBestPractices/15:19
cmn then do that15:20
popcorn left15:20
cmn you can run a simple web server on your laptop15:20
shondm The desktop is loads faster15:20
350ms laptop, 120ms desktop on average15:20
PerlJam shondm: you aren't a recent svn user are you?15:20
shondm No, git was my first cvs15:20
PerlJam okay, just checking15:21
Vert left15:21
phishy joined15:21
cmn but you're suffering more latency with the file system15:21
PerlJam shondm: wait ... how do you know the desktop loads it faster?15:21
cmn and you're suffering it more often15:21
shondm Because I switched from laptop to desktop this morning15:21
Fullmoon joined15:22
PerlJam shondm: okay, so you actually had a local copy on your laptop at one point15:22
Fullmoon left15:22
shondm Still have one, yes15:22
PerlJam shondm: oh, just not a clone of the repo15:22
Dave^| joined15:22
sitaram shondm: /ll before15:22
oops15:22
sporous left15:23
shondm Right, not a clone, a copy-paste15:23
sitaram shondm: http://dpaste.org/qqQwX/15:23
sporous joined15:23
shondm The edit/save/commit part needs to happen on the desktop to maintain productivity15:23
emptyflask joined15:23
thiago left15:24
cmn then why are you doing it on your laptop?15:24
shondm There are n edits before save and n saves before commit, between save and commit there is loading in a browser15:24
My desktop is a server15:24
PerlJam shondm: how often will you incur the extra 230 ms latency if you were to use your laptop?15:24
shondm About 45 minutes / day15:24
Fullmoon joined15:24
shondm The whole reason I'm switching is because it's more than twice as fast over an entire day to get fixes live15:25
shondm left15:25
stkrzysiak joined15:25
rtjure joined15:25
PerlJam *sigh*15:25
linusoleander joined15:25
PerlJam oh well15:25
SethRobertson You just can't help some people15:25
shondm joined15:25
shondm And network drop-offs are annoying in the countryside15:26
neurodrone left15:26
dc5ala left15:26
PerlJam shondm: so, the real bottle neck was your edit/commit cycles, not running your tests?15:26
sq-one left15:27
stfn left15:27
shondm That's the next thing to be addressed, but unfortunately relies on more factors than software/network15:27
envi_|2 left15:27
kevwil joined15:27
PerlJam isn't sure if that's a "yes" or not15:27
envi_ joined15:27
shondm It's "yes, but not now"15:28
amcsi_work left15:28
shondm Well, this has opened my eyes to certain limitations in the workflow I desire15:28
kevwil left15:29
shondm Thanks everyone (PerlJam, cmn, sitaram)15:29
kenperkins joined15:29
shondm Have a swell day all of you15:29
shondm left15:29
wilmoore joined15:29
kevwil joined15:30
simenbrekken_ left15:30
linusoleander left15:30
superdmp is it possible to checkout a file from a different branch (upstream)?15:31
PerlJam superdmp: sure.15:31
amigojapan left15:31
superdmp git checkout remote_branch file15:32
tsdh left15:32
superdmp that's correct, isn't it?15:32
harshpb left15:33
_sundar_ left15:33
snearch joined15:34
xiangfu left15:36
shruggar joined15:37
linusoleander joined15:37
FauxFaux Wish git add -p could split a single hunk containing the replace of a line.15:37
linusoleander left15:37
sporous left15:37
senny left15:37
cmn how would it get split?15:38
sporous joined15:38
sporous left15:38
sporous joined15:38
flype joined15:38
OOPMan joined15:39
preflex left15:39
FernandoBasso joined15:39
TheHaven left15:39
iflista joined15:40
jceb left15:40
t4nkd`workin joined15:40
localhost joined15:40
anderse_ left15:40
fukushima left15:41
preflex joined15:41
papegaaij left15:41
berserkr left15:42
rtuin left15:43
enigmabomb joined15:43
t4nkd`workint4nkd`15:44
lapistano left15:45
berserkr joined15:45
shwaiil joined15:45
shwaiil hi15:45
gitinfo shwaiil: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.15:45
lapistano joined15:45
tvw joined15:45
mastroWork left15:46
shruggar left15:46
Sonja left15:46
click joined15:47
hwrd|work joined15:48
stkrzysiak left15:48
babilen left15:48
stkrzysiak joined15:49
nj3ma left15:49
raatiniemi joined15:50
Fullmoon left15:51
t4nkd` left15:51
Nibato left15:51
pl0sh joined15:52
sgncfl left15:52
isao joined15:52
stfn joined15:52
newbie999 joined15:53
ehsan left15:53
sitaram FauxFaux: git gui manages to do line-by-line adds15:53
tonebender joined15:54
ceez joined15:54
squeakytoy left15:54
sgncfl joined15:55
jkal left15:55
angelsl left15:55
newbie999|3 left15:55
shruggar joined15:55
_iron joined15:57
arvind_khadri joined15:58
newbie999|3 joined15:59
just0x41man joined15:59
newbie999 left15:59
thelazydeveloper joined16:00
mishok13 left16:00
Per4u3e left16:00
FauxFaux cmn: I wanted to commit the delete, then the add. (i.e. remove feature one and add feature two, method ended up in the same place).16:01
Nibato joined16:01
drev1 joined16:01
cmn oh, I see16:01
editing that diff shouldn't be hard, just delete the + line16:01
umc joined16:01
cmn but it's certainly annoying16:02
dwmw2_gonedwmw2_HIO16:02
theDrumm_ left16:02
whitman left16:02
ddelrio1986 joined16:02
neurodrone joined16:04
ruskie left16:06
spyro sometimes I even diff the diffs16:06
and once it even came in handy16:06
phishy left16:06
shruggar left16:06
cslcm smells a "yo, dawg" coming up16:06
theDrumm joined16:06
cslcm oh, it's already been done http://cdn.memegenerator.net/instances/400x/11462942.jpg16:07
jameswarren joined16:07
weebs_ left16:07
snearch left16:08
hwrd|work left16:08
giallu left16:10
calimocho left16:11
maletor joined16:13
mikepack joined16:13
drev1 left16:14
SegFaultAX|work joined16:15
ruskie joined16:15
shruggar joined16:16
kadoban_ joined16:16
shruggar left16:17
fission6 left16:18
rtjure left16:19
variabletrout16:20
michaelmartinez joined16:20
maletor left16:20
rrn left16:20
francisfish left16:20
ehsan joined16:21
maletor joined16:21
Vert joined16:21
cagedwisdom_ left16:21
cagedwisdom left16:21
LekeFly joined16:21
fly9 joined16:23
williamcotton joined16:24
juvenal left16:24
alexim joined16:24
dfr|mac joined16:25
juvenal joined16:26
alvaro_o joined16:26
rath joined16:26
alvaro_o left16:27
anderse_ joined16:28
h0bbit joined16:30
LimeBlast left16:30
jceb joined16:31
enigmabomb left16:31
adhawkins left16:32
Err404NotFound joined16:32
intransition joined16:32
afuentes left16:32
intransit left16:32
stkrzysiak left16:33
chrischambers left16:34
tatsuya_o left16:34
ShooterMG joined16:34
hwrd|work joined16:34
tatsuya_o joined16:34
noisebleed left16:35
cslcm left16:35
Desproges left16:35
enigmabomb joined16:37
tyatpi left16:38
notVert joined16:38
Vert left16:38
stkrzysiak joined16:40
Chib left16:41
sporous left16:42
Marchitos joined16:42
enigmabomb left16:42
irqq left16:43
ronniy left16:43
valtih left16:45
kadoban_ left16:45
pfFredd joined16:46
jason237 left16:46
Fullmoon joined16:46
Synthead joined16:46
Fullmoon left16:46
diegoviola joined16:46
tvw left16:47
jave left16:47
LekeFly left16:49
LemonBE|work left16:49
kerrick joined16:49
Err404NotFound left16:49
dfr|mac left16:49
t4nkd`workin joined16:52
Marchitos left16:53
John_Preston joined16:53
thiago joined16:54
MistuhKurtz joined16:57
tystr joined16:57
achadwick left16:58
code left16:58
thiago left16:58
thiago joined16:58
John_Preston left17:00
enigmabomb joined17:00
kevwil left17:00
preflex left17:00
sdeboey joined17:00
michaelmartinez left17:01
smoge joined17:01
rchavik left17:01
veyres left17:03
calimocho joined17:03
khmarbaise joined17:03
EgS left17:04
fission6 joined17:04
jameswarren left17:04
dsantiago joined17:05
kukks joined17:06
jstout24 joined17:06
dwmw2_HIOdwmw2_gone17:07
Twey left17:07
fisted_ left17:08
notVert left17:09
dr_lepper left17:09
QF-MichaelK joined17:09
darkmethod joined17:10
Twey joined17:10
shirish joined17:11
btree_ joined17:12
preflex joined17:13
lonewulf` left17:13
dreiss joined17:14
QF-MichaelK left17:15
alberto56 joined17:15
jsoa_ joined17:15
BiggFREE left17:16
jsoa_ left17:16
lonewulf` joined17:16
jsoa_ joined17:16
ThunderChicken left17:17
az left17:17
tonis_ joined17:17
ThunderChicken joined17:17
fisted joined17:17
rtuin joined17:18
tonis_ left17:19
jsoa left17:19
jsoa_jsoa17:19
theCole joined17:19
jason237 joined17:20
sureaint joined17:21
rrn joined17:22
IchGuckLive joined17:23
shoerain left17:23
gitinfo set mode: +v17:24
codeshah joined17:24
EugeneKay !refund17:25
gitinfo If you are not satisfied with git for whatever reason, you are entitled to a full refund of the purchase price, and are invited to use another VCS. Elsewhere.17:25
IchGuckLive hi all i did a fetsch and checkout to someone elses branch it says im in the branch how i do now get the updatet files there are 5 updatet inside17:25
SJS But I paid in sweat and blood! That'll be a biohazard by now!17:25
EugeneKay Shush, it was so I could steal the factoid for another channel.17:26
drev1 joined17:27
EugeneKay IchGuckLive - what are youtrying to do, exactly? Merge somebody else's branch into yours?17:27
cortana2 left17:27
IchGuckLive yes i guess i put a patch to the head and maild it to the devels and they put it in there personel branch for testing17:28
Ryback_ joined17:29
Ryback_ left17:29
Ryback_ joined17:29
IchGuckLive so im now trying to get this 5 files back from there edit17:29
calimocho left17:29
ISF joined17:29
EugeneKay IchGuckLive - OK. 'checkout' the branch you want the merge to be on, and then 'git merge PersonalBranch' to bring it to the currently-checked-out-branch.17:29
Have you read the !book yet, by chance?17:30
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable17:30
IchGuckLive i will idid this on some like fetsch17:30
jason237 left17:30
lonewulf` testing.17:31
jcrotty joined17:31
IchGuckLive i think i made it as git pull gives uptodate17:31
i will compile and see the results17:31
EugeneKay lonewulf` - !hi17:32
gitinfo lonewulf`: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.17:32
pppaul left17:32
lonewulf` EugeneKay: hi, and tnx.17:32
gitinfo set mode: +v17:32
marcogmonteiro left17:33
jcrotty how to see which commit sha1 the super project points to for a particular submodule?17:33
pppaul joined17:33
IchGuckLive left17:33
iwoj joined17:34
calimocho joined17:35
MistuhKurtz hm17:37
cmn status submodule should give you that17:37
submodule status, rather17:37
MistuhKurtz If I have an application that's built, and I want to re-build it mostly from scratch, on a totally new/different frameworks & everything, should I build it as a branch of my current repo?17:37
just0x41man left17:37
MistuhKurtz or make a new repo?17:38
az joined17:38
flype left17:38
Goplat left17:38
ronniy joined17:39
raek or something in between perhaps? git checkout --orphan17:39
diago joined17:39
lacrymology joined17:39
diago if I did a git reset <rev> --hard, can I get those changes back?17:40
raek you could then merge over any shared files17:40
EugeneKay MistuhKurtz - I would say that it depends upon how you're gonna present it, version wise. New Foo, or Foo 2.0?17:40
raek diago: committed or uncommitted?17:40
diago I have not commit17:40
I just messed up17:40
FernandoBasso left17:40
EugeneKay MistuhKurtz - and how long will you be keeping 1.0 around / supporting it?17:41
MistuhKurtz the first version is sort of a proof of concept kind of17:41
it's really roughly done.17:41
kevwil joined17:41
tatsuya_o left17:42
EugeneKay If it's a TOTAL rewrite I would just init a new repo and name it -new, -future, or something like that.17:42
blacktulip joined17:43
cbreak diago: you can only get committed changes back, sorry17:43
jave joined17:43
diago oh sorry, they were commited locally17:43
cbreak (if you staged but not committed them, you might be able to get them back if you're prepared to invest a few hours)17:43
then type git reflog and find the commit just before you reset17:44
and then reset --hard to that commit17:44
diago ok cool. Thanks17:44
consumerism left17:44
jceb left17:45
superdmp i'm on a new branch called pageflags-testing; it's only a local branch, but now I want to put my work into my pageflags branch locally, and then push it to the pageflags branch at github17:46
what's the best way to proceed?17:46
cbreak check out the branch, commit17:46
then git push remotename branchname17:47
drev1_ joined17:47
dwmw2_gonedwmw2_HIO17:47
jceb joined17:47
superdmp cbreak: checkout which branch?17:47
cbreak the one you want the changes to be in17:47
drev1 left17:47
drev1_drev117:47
cbreak just make one branch look like you want it, by merging, committing, rebasing, what ever17:47
(maybe merge the testing branch, or rename it?)17:47
and then push17:47
jameswarren joined17:47
jcrotty left17:47
rtjure joined17:48
superdmp cbreak: so why will that bring my changes from pageflags-testing with it, rather than replacing them with what was in pageflags before?17:48
eletuchy joined17:48
cbreak because you do that.17:48
you have a branch. you can change it how ever you like.17:49
do you like merges? Then git merge17:49
Spedge joined17:49
cbreak Or do you like linear history? Then you could cherry-pick all the stuff. Or do something with rebases.17:49
or did you not even commit your changes? Then commit them in that branch.17:49
jceb left17:49
EugeneKay superdmp - !sausage17:49
gitinfo superdmp: [!sausage_making] Some developers like to hide the sausage making (pretend to the outside world that their commits sprung full-formed in utter perfection into their git repository). `git rebase -i`, `git add -p`, and `git reset -p` can fix commits up in post-production by splitting different concepts, merging fixes to older commits, etc. See also http://sethrobertson.github.com/GitBestPractices/#sausage17:49
n1x joined17:49
jceb joined17:50
superdmp cbreak: ok, so now I am back in pageflags, so I can to merge pageflags-testing into it17:50
i have no need to hide my sausages17:50
jceb left17:50
psoo joined17:50
jceb joined17:50
cbreak then git merge the other branch17:50
isao left17:50
enigmabomb left17:50
notjohn joined17:51
superdmp thanks17:52
alexukf left17:53
pfFredd left17:55
pfFredd joined17:55
pfFredd left17:56
EgS joined17:56
thiago left17:56
raek plans to suggest people to paste the output (possibly censored) of "git log --all --graph --decorate --oneline --abbrev-commit" to aid communication17:58
eucalyptus joined17:59
d3c left18:00
smoge left18:00
osmosis joined18:01
iwoj left18:01
adhawkins joined18:01
Vile left18:02
Milossh_ left18:04
drev1_ joined18:04
srcerer joined18:04
JohnyBaby joined18:04
drev1 left18:05
drev1_drev118:05
theCole left18:07
robbyoconnor joined18:08
Spedge- joined18:09
cakehero joined18:09
Spedge left18:09
shruggar joined18:09
iwoj joined18:10
arietis left18:10
iwoj left18:11
iwoj joined18:12
tsdh joined18:12
metalfan_ joined18:13
j416 joined18:13
shwaiil Q: Not sure where to ask this, but when we push, is it possible to run minifications of JS and CSS files ? How to people do that stuff ? I'm using Ubuntu at home and Mac Osx at work. I guess there's command line programs that do the minifcation and maybe we have a script we run instead of git push ?! Tks for looking18:14
pppaul left18:14
tango_ shwaiil: you can do that when DEPLOYING, not when pushing18:14
!deploy18:15
gitinfo Git is not a deployment tool, but you can build one around it for simple environments. Here is an example hook to get you started: https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh18:15
tystr I'm using this to create a repository from a subdirectory within another repository…. git filter-branch --subdirectory-filter ./src/path/to/directory -- --all18:15
but I don't end up with all the contents of that folder….18:15
_huoxito left18:16
shwaiil tango_: oh right, tks for looking. I'll read that tks. Tango, but by the way, we could use hooks to run other programs or something ?!18:16
tango_ yes18:16
dr_lepper joined18:17
dr_lepper left18:17
dr_lepper joined18:17
cmn hooks are executable files18:17
you can do whatever you want, just remember that git isn't a deployment tool and that the hooks block the push ending18:17
Spedge- left18:17
HyperNerdV2 joined18:17
shwaiil cmn: I see. I think for now, I'll do something basic. Because I usually do push from master on production server, not sure if its a good practice, but it works fine. So I could, let's say, run a script to do this and after he finishes minify the original files or something18:18
bolt left18:19
cmn the problem is that the minification could take a long time, and it's really the deploy system's jbo18:19
bolt joined18:19
diegoviola left18:19
cmn you should probably make the post-receive hook signal or enqueue something that tells the deployment system to run18:19
Spedge joined18:20
tystr nvm im tripping18:20
BartlomiejB joined18:21
linguini joined18:21
cespare joined18:21
khmarbaise left18:21
ben225 joined18:21
thiago joined18:22
sporous joined18:23
kadoban_ joined18:23
dwmw2_HIOdwmw2_gone18:23
shwaiil cmn: ok thanks for your sugestions, I'll try to learn a deployment tools. I got that one from tango_ but I dont think I can use that now, don't have enough knowledge18:23
rtjure left18:23
tewecske joined18:23
tewecske left18:23
blacktulip left18:24
flijten joined18:24
blacktulip joined18:25
cmn it's quite simple reall, it just needs to make sure there are not odd edge cases; the basic idea is to use git-archive to generate a tarball of the files we want and then use rsync to send them to the right place18:25
pppaul joined18:25
cbreak you don't even need rsync18:26
you can just untar them to a directory and then atomically swap it18:26
pmatthews left18:26
cbreak well, "atomically"18:26
thiago atomic objects are neither active nor radioactive18:26
shwaiil cmn: can you give a example of its usage ? Like the commands you'd use on production server ?18:27
I mean..if you have the time18:27
cbreak atomically means undividable. Ironically, one of the most potent energy sources comes from dividing atoms...18:27
shwaiil anyway, i'm searching google, many of the articles they're basicly doing what i'm doing right now.. git pull origin master :P18:28
cmn it's mostly just git archive | tar xf - -C /var/www/some.dir.$RANDOM; ln -s /var/www/mysite.com /var/www/some.dir.$RANDOM18:28
where $RANDOM is the same in both uses18:28
that's what cbreak is talking about18:28
kerrick left18:28
cbreak shwaiil: there are a lot of morons on the internet.18:29
morons that do stuff like merging in a script18:29
cvprog joined18:29
cmn with rsync, you'd unpack to /tmp/something.$RANDOM and then rsync -r --delete /tmp/something.$RANDOM/ /var/www/mysite.com/18:29
cvprog one question, i just pulled from origin master how do i merge does changes into my branch while keeping my changes ?18:29
cbreak if you pull, that means you merged18:30
pull is fetch + merge18:30
Spedge left18:30
Spedge joined18:30
jcrotty joined18:30
shwaiil cmn: to start I think I should use rsync18:30
this doesn't look that easy, I'll plan some reading on this18:31
cmn that works mostly for static sites; if you need DB config or somesuch, it gets a bit more complicated18:31
this is why places like heroku exist; they do the annoying deploying steps for you18:32
shwaiil cmn: oh nice :)18:32
right now, for DB and stuff I do it manually, but configuration params are set based on server name18:32
cmn: to be clear to me. the commands you showed to me, is what https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh does for me, or is this the commands I should use with it ? I didn't read git-deploy-hook.sh yet, I only got it a few moments ago18:33
cmn it's the basic steps18:34
that script does more18:34
and lets you configure what to give to rsync18:34
and makes sure you don't accidentally try to deploy a deleted brach, that kind of thing18:34
shwaiil I guess I'm starting to understand18:34
Thank you cmn18:34
raatiniemi left18:35
duckxx joined18:35
sdaone left18:35
tyatpi joined18:35
eephillip joined18:36
duckxx im trying to do a pull.. but getting "please commit your changes before you can merge... but i dont want to commit my changes, cuz its my config file for my local environment.... screenshot: http://img513.imageshack.us/img513/1361/croppercapture166.jpg18:36
Spedge left18:37
cmn !config18:37
gitinfo [!configfiles] the recommended way is to change your application so that you can (perhaps optionally) store site-specific configuration/data in separate files, then keep those files out of version control. Still, see https://gist.github.com/1423106 for ways people have worked around the problem.18:37
cmn you can stash those changes18:37
but you're going to run into this issue a lot18:38
eephillip left18:38
whitman joined18:39
eephillip joined18:39
mcluskydodallas joined18:39
eno_ left18:39
gitinfo set mode: +v18:39
eno joined18:40
eno left18:40
eno joined18:40
duckxx omg.. how do i just do a full reset to the last sucessful pull i had18:40
MattLo_SWX joined18:40
MattLo_SWX hey18:40
Eridius joined18:40
Spedge joined18:40
cmn reset --hard will get you back to whatever commit you wish18:40
MattLo_SWX question to anyone: I'm pulling from Github and its showing a different Author name, I changed all my configs but its still showing a different author name when I pull down18:40
cmn but be aware that it will destroy all changes18:40
MattLo_SWX Has anyone had this issue before?18:40
tatsuya_o joined18:41
cmn MattLo_SWX: the author information is in the commit18:41
rath duckxx: we use .gitignore in that case18:41
thiago left18:41
MattLo_SWX its possible to change that right18:41
?18:41
cmn rath: the file is tracked, otherwise git wouldn't have complained18:41
MattLo_SWX: only by !rewriting the history18:41
gitinfo MattLo_SWX: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)18:41
MattLo_SWX gotcha18:42
yeah I dont want to do anything problematic, the pull merge just happened to be configured to the wrong account, I just realized thats what is in the logs.18:42
marthinal left18:42
rath cmn: i mean that "settings.php" .. there is an example in the repo ..18:42
duckxx git reset hard ?18:43
is that how u reset it fully to original ?18:43
rath in our case at work it's enough to track that sample, not a specific version18:43
cmn but ignore rules won't affect that file18:43
jcrotty left18:44
drev1 left18:44
drev1_ joined18:44
j416 left18:44
cafaro left18:45
rath at work we don't track such a file...that's what i want to say18:45
irqq joined18:45
iamntz left18:45
cafaro joined18:45
cafaro left18:45
cafaro joined18:45
mishok13 joined18:45
cmn defaults or explanations are a good thing to track, but not the dev environment18:45
rath +118:46
JohnyBaby left18:46
giallu joined18:46
cvprog left18:47
cbreak I've heard that in other companies, they'd track the whole toolchain including compilers and all libraries18:49
not with git though :)18:49
JohnyBaby joined18:49
SerajewelKS cbreak: whenever i have to track a compiled, third-party blob i always die a bit inside... but what else can you do18:50
raek I can see the value of doing that (in a repo distinct from the source repo)18:50
lapistano left18:51
tabakhase_ left18:51
tabakhase_ joined18:51
tabakhase_tabakhase18:52
thiago joined18:52
lapistano joined18:52
thiago left18:52
cmn sometimes you have to because all they give you is some binary blob18:52
thiago joined18:52
cmn but IIRC android does track some build results, because they take hours to build18:52
MattLo_SWX left18:53
Spedge left18:53
rtuin left18:53
tsdh left18:54
DofLeFou joined18:55
shwaiil left18:55
DofLeFou left18:56
Shusshu joined18:56
DofLeFou joined18:56
pppaul left18:56
rtuin joined18:56
pppaul joined18:57
anoob left18:57
ISF left18:57
ben225 left18:58
beatak left18:59
diegoviola joined19:00
stodan_ left19:00
arietis joined19:00
beatak joined19:01
pppaul left19:01
bnjmn left19:02
beatak_m joined19:02
pppaul joined19:02
rath left19:04
tvw joined19:04
drev1_ left19:05
beatak left19:05
EugeneKay A dual hex-core buildbox with 8GB of RAM and a 128GB SSD will put Android together in about 15-20 minutes19:06
My desktop with a 8GB ramdisk for out/ will do it in about 3019:06
FauxFaux Distcc.19:07
pandeiro joined19:08
infogulch how does git know the change was in "class DataBase"? @@ -143,6 +143,10 @@ class DataBase19:08
indentation?19:08
FauxFaux infogulch: ctags19:10
infogulch ah19:11
glphvgacs joined19:11
n1x left19:11
infogulch but it's an obscure little scripting language o_O19:11
glphvgacs so there is a patch i wanna apply to a git repo and then i need to "rebase" apparently. what's rebasing?19:11
intransit joined19:12
cmn man git rebase has diagrams19:12
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html19:12
FauxFaux glphvgacs: man git rebase19:12
gitinfo glphvgacs: the git-rebase manpage is available at http://jk.gs/git-rebase.html19:12
FauxFaux infogulch: It generally assumes it's like C if it looks like C, i.e. the first thing before the top-level { is a method name19:13
t4nkd`workin left19:13
infogulch oh ok. cool19:13
intransition left19:13
cmn there are regexes for a few popular languages19:13
neurodrone left19:14
neurodrone joined19:15
glphvgacs left19:15
ohcibi i have extracted almost any content of a file A to a file B. after git add i have renamed A->B plus modified A oO. how to force git to put it as 'new file B' and 'modfied A'?19:16
cmn ohcibi: that's not how git works19:17
git doesn't store that information, it's calculating it at runtime19:17
ohcibi hm..19:17
CaptainKnots left19:17
ohcibi it clashs with svn dcommit19:17
cmn there's -M and friends to limit the similarity at which git will consider something renamed19:17
t4nkd`workin joined19:17
cmn well, svn is a different beast19:17
SethRobertson You can always create the file B in a different commit if git-svn is causing problems.19:17
Radium joined19:18
jvasak left19:18
ohcibi hm, not nice but possible.... well its svn, so who asks for nice19:18
codeM0nK3Y joined19:19
ohcibi cmn: which command has -M?19:19
cmn the log family19:19
tizzo joined19:19
Lgb left19:20
cmn though it's probably handled by the diff code19:20
osX64 left19:20
ceez left19:20
cakehero left19:21
tizzo anyone have any idea why git-filter-branch would refuse to remove submodules?19:21
bibi23 joined19:21
ben225 joined19:22
gitinfo set mode: +v19:22
bibi23 hi, what is the proper to move a bare repository from a server to another? thanks19:22
jason237 joined19:22
cbreak tizzo: it's not filter-branch that refuses it. It's probably your script19:22
bibi23: you can just clone them over19:22
or rsync I guess19:22
cmn bibi23: either clone --mirror; or rsync19:22
Lgb joined19:23
envi_ left19:23
pppaul left19:23
cmn or copying it to an external medium and copying it over19:23
or anything that will transfer files from one place to another19:23
Sigma left19:23
milki aka, nothing special19:23
bibi23 ah ok great, so basically just copying it, then it will be ok there is no reference to the current server in git internal file for example right?19:23
milki right19:24
pppaul joined19:24
bibi23 ok thanks guys ;)19:24
milki only existing repos pointing to it as a remote19:24
tizzo cbreak: git filter-branch -f --tree-filter 'rm -rf folder_containing_submods' HE AD19:24
cbreak: that kills everything *but* the submodule folders19:24
bibi23 left19:25
cbreak tizzo: that's not the way to remove submodules19:25
you should use git rm --cached on them19:25
tizzo cbreak: hrm, tried that too but nuked the .gitmodules folder first19:25
syphar joined19:25
tizzo so maybe I need to start over and go in a different order?19:26
cbreak .gitmodules is a file not a folder19:26
SerajewelKS the directory where the submodules get cloned into shouldn't even be tracked in the parent repo19:26
cbreak you can delete it if you want to remove all submodules I guess19:26
SerajewelKS the only thing that gets tracked when you add a submodule is .gitmodules19:26
the submodule working directory should be ignored19:26
cbreak no19:26
the main thing is the commit entry in the tree19:27
.gitmodules is just some meta data to get the remotes up and running19:27
tizzo cbreak: yeah, I know, misspoke19:27
SerajewelKS cbreak: .gitmodules contains the remote repo url as well as the commit to check out19:27
cbreak no19:27
the tree contains the commit to check out19:27
drev1 joined19:27
LekeFly joined19:28
tizzo right, the tree contains a blob where the submodule goes (I think with a special permission) that contains the hash19:28
SerajewelKS ah, right. forgot that detail.19:28
tizzo: not a blob, if i'm reading cbreak right19:28
tizzo thought it was a blob..19:28
but that entry isn't getting deleted by a filter-branch19:29
cbreak git cat-file -p HEAD:path/to/dir19:29
tizzo with git rm -r --cached19:29
SerajewelKS tizzo: the object referenced in the tree will be a commit object in the submodule repo. right, cbreak/19:29
cbreak where dir is the folder that contains the submodule folder19:29
tizzo ah19:29
dig it, I was wrong19:29
cbreak so HEAD: if the submodules are in root19:29
that'll show you how they are stored19:29
tizzo: git rm --cached will delete it19:29
tizzo: filter-branch could not care less19:29
you should see entries like 160000 commit a8eb8b16c34bc6b240e471c8efc7f7d14b0a6563 tinyxml19:30
tizzo cbreakso are you saying this should work? - `git filter-branch -f --tree-filter 'git rm --cached folderContainingSubmods' HEAD`19:31
preflex_ joined19:31
cbreak I'd use --index-filter19:32
moltar_net1 joined19:32
preflex left19:32
cbreak and it depends on what you mean with your path19:32
is it a folder that contains submodules?19:32
or is it the actual submodule directory?19:32
preflex_preflex19:32
SerajewelKS tizzo: --tree-filter requires the tree to be checked out before you can mess with it... --index-filter will let you tweak the index tree directly19:32
tizzo cbreak: contains submods19:33
everything else got blown away19:33
osX64 joined19:33
cbreak hmm?19:33
throw in an -r for recursive then19:33
SerajewelKS tizzo: therefore --tree-filter will take longer, since it has to check out the tree, while --index-filter does not.19:33
tizzo I keep getting `did not match any files`19:33
it's there, if I clone it I have them19:34
cbreak your path might be wrong19:34
cmn have you checked every single revision and checked?19:34
teweWORK joined19:34
cbreak but you can also throw in an --ignore-unmatched to not get that19:34
tizzo ah19:35
that'll help19:35
it might not be in the early commits19:35
anderse_ left19:36
tizzo ah ha!19:37
cmn cbreak SerajewelKS: you are my saviors19:37
that did it19:37
you guys rock, thanks19:37
cakehero joined19:37
vervic joined19:37
SerajewelKS glad my half-truth was helpful :)19:37
tizzo so is there any automated way to squash commits that don't have changes after a filter-branch?19:38
SerajewelKS tizzo: --prune-empty19:39
tizzo: (add that to the filter-branch invocation)19:39
tizzo SerajewelKS: AWESOME! thanks :)19:39
SerajewelKS \o/19:39
thiago left19:40
sq-one joined19:40
JohnyBaby left19:40
GreekFreak joined19:40
codeM0nK3Y left19:42
GreekFreak Hey all. I would like to back up my code, with the git repos, but not on github. Do I simply copy my code's folder, paste it and it's fine, or just the .git folder?19:42
codeM0nK3Y joined19:42
SerajewelKS GreekFreak: either will work19:42
GreekFreak: if you copy just the .git folder you technically won't have a "proper" repo unless you change the repo config to indicate that it is bare19:43
tizzo GreekFreak: if you have ssh access to a server it's easy to host your own repos too19:43
SerajewelKS GreekFreak: but if your goal is just to have your crap in case the worst happens, a plain copy is more than sufficient19:43
thearthur joined19:43
sdeboey left19:43
SerajewelKS GreekFreak: and what tizzo said19:43
GreekFreak: taking just the .git will take less space and will still contain the entire repo (obviously, it won't back up changes to your working directory though, if that is important to you)19:44
GreekFreak SerajewelKS: thanks. All I want is to basically backup for the worst. So I'll just do a straight copy19:45
tizzo: I don't have one yet, but soon19:45
Would I be able to have that whole folder in a flash drive (as an example) load it on another machine and carry on working, and back to the original? Like basically carrying the repo with me?19:46
codeM0nK3Y left19:46
yoklov left19:46
cmn yes19:46
you can copy and carry it however you feel19:47
GreekFreak cmn: that's pretty nifty. Allows you to switch machines on the fly19:47
cmn but git isn't for backups, it's for developing19:47
GreekFreak thanks guys19:47
cmn: I am devloping19:47
and I do want it for the version cntrol and branching19:47
pppaul left19:47
gitinfo set mode: +v19:47
moltar_net1 Hi! Several commits ago, I deleted several files, that I though were no longer needed. Now I realized it was a bad idea, and need to bring them back. What is the appropriate way of brining them back from dead? Thanks!19:48
pppaul joined19:48
cmn git checkout <commit> -- <files>19:48
SerajewelKS GreekFreak: basically, you would just clone the repo on the flash drive19:48
cmn where <commit> is the commit where they exist19:48
moltar_net1 cmn: ah saaweet. always so easy!19:48
SerajewelKS GreekFreak: what OS are you using?19:48
GreekFreak cmn : I just want a quicker way to move the code around without uploads, and as a backup19:48
SerajewelKS: Ubuntu. Why would I clone and not just copy/paste?19:49
moltar_net1 GreekFreak: I've heard people using Dropbox to sync Git repos. Or does that count as "upload"?19:49
ronniy left19:49
cmn by that you mean copy?19:49
moltar_net1: that counts as a very bad idea19:49
EugeneKay !dropbox19:49
SerajewelKS GreekFreak: because what you will have is not a proper repo, if you only copy the .git19:49
gitinfo Storing a bare repository on DropBox is a Very Bad Idea (tm). Everybody who has tried it has reported repo corruption, slowness in synchronizing, and general pain. Use a free code-hosting service such as Bitbucket or GitHub instead.19:49
moltar_net1 got it! I'd never do this myself under these same assumptions :)19:49
I run gitolite on rackspace19:50
SerajewelKS GreekFreak: if you copy the .git to /media/flashdrive/repo-backup then you can "clone /media/flashdrive/repo-backup myproject" later19:50
twittard joined19:50
GreekFreak moltar_net1: I've read that that causes sync errors19:50
SerajewelKS GreekFreak: you might want to, instead, create a directory on the flash drive, "git init --bare" inside it, then add it as a remote to your dev repo and push19:50
GreekFreak: this is The Right Way(tm) to do this19:50
twittard left19:51
SerajewelKS GreekFreak: the downside is that if you forget to push a local branch, it won't exist in the backup19:51
GreekFreak SerajewelKS: agreed, it's the right way, but why not just copy paste every night. The Right Way sounds like a hell of a lot more work for the same thing19:51
SerajewelKS GreekFreak: actually, once you get it set up it's much easier19:52
GreekFreak and this way I can carry my code around (so to speak)19:52
fission6 if i made changes on master, then checked out a branch, i do git rebase master, to rebase the branch with my master changes, correct?19:52
limoges joined19:52
SerajewelKS GreekFreak: $ cd /media/flashdrive && mkdir myproject.git && cd myproject.git && git init --bare19:52
GreekFreak SerajewelKS: oh ok. I'm assuming it will be the same concept, but instead of to Github its to your "folder"19:52
SerajewelKS GreekFreak: go to your repo and: $ git remote add flashdrive /media/flashdrive && git push flashdrive --all19:53
GreekFreak: and you are done19:53
GreekFreak: then just "git push flashdrive --all" whenever you want to back up19:53
yrlnry This morning while my tests were running on branch A, I wanted to make some changes on branch B. I cloned the local repo, committed the changes in the clone, and pushed them back to the local repo before the tests finished running.19:53
codeM0nK3Y joined19:53
yrlnry Is that peculiar or surprising?19:54
JohnyBaby joined19:54
emptyflask left19:54
EugeneKay Sounds like a valid thingto do, the usual caveats about pushing to non-bare still apply.19:54
borior joined19:54
SerajewelKS GreekFreak: if you have the flash drive and you want to edit code, you will have to clone the repo first though, that's one downside. however, this is still simpler since a non-bare repo introduces pushing issues (you can't push a branch to a remote when that branch is checked out at the remote. bare repos can't check out since they don't have a working directory, so this sidesteps that issue.)19:54
GreekFreak SerajewelKS: thank you. that is simpler. And to work on another PC would i have to clone then? As opposed to just opening a file and working and committing, (like I would've done with the cope/paste way)19:54
SerajewelKS GreekFreak: yes, exactly19:54
borior hi all. is there any way I can suppress particular files/patterns from the output of git diff?19:55
SerajewelKS GreekFreak: it sounds like more work but it's actually a bit better, since now you have three copies of the repo :) two computers and one flash drive19:55
GreekFreak: and that way if you commit on one box and forget to push, you can do the proper merge or rebase later19:55
dvide joined19:55
SerajewelKS GreekFreak: you are treating the flash drive as a central github-like repo, basically19:55
GreekFreak SerajewelKS: thank you. that makes sense. I'll sort something out like that19:56
mcluskydodallas left19:56
SerajewelKS GreekFreak: the key to this whole thing is specifying --bare when you init the repo on the flash drive19:56
yrlnry there's nothing confusing about pushing to a non-bare repository as long as you don't push to the current HEAD ref.19:56
cbreak I did use a flash drive as kind of "portable server"19:56
GreekFreak When I cloned from my one pc from github, it marked it as clone. never master. does that make a difference?19:57
P4C0 joined19:57
cbreak but then I switched to a gitolite server on the wide network which is more convenient :)19:57
SerajewelKS GreekFreak: what does "marked it as clone" mean?19:57
GreekFreak yrlnry: what happens if you do?19:57
skylamer` left19:57
cbreak GreekFreak: doesn't matter19:57
all you have are tracking infos19:57
SerajewelKS GreekFreak: the checked-out ref is updated but the working directory is not19:57
cbreak you can change them as much as you want, and add more remotes19:57
P4C0 Hello, I made some changes to a branch and commit them, but now I realized I want those changes on a different branch (and the current back to original), I haven't pushed anything yet, how can I fix it?19:58
SerajewelKS GreekFreak: which results is confusion when you go to work on the remote repo, since your files are all dirty and you don't know why19:58
cbreak P4C0: easy: switch to the branch you want it19:58
yrlnry GreekFreak: what happens if you do what?19:58
cbreak git cherry-pick the commit19:58
then switch back and git reset --hard HEAD~1 it away19:58
GreekFreak yrlnry: commit the HEAD, but the guys just told me19:59
frikinz_ joined19:59
enigmabomb joined19:59
GreekFreak thanks guys. I wanted a git repo but thought I needed a server (which is the impression I got from the book). This solves my problem :)19:59
P4C0 cbreak: thanks!19:59
bryanmv`away joined19:59
diegoviola left19:59
yrlnry Yeah. Even I find that confusing and try to avoid it.19:59
SerajewelKS GreekFreak: yeah, git can use an sshd/httpd/gitd as a remote, but it can also use a local directory, which is really awesome20:00
yrlnry But pushing to a not-HEAD ref is not confusing at all.20:00
iwoj left20:00
cbreak GreekFreak: git works just as well stand-alone20:00
SerajewelKS GreekFreak: incidentally, so can subversion (you can svnadmin create and then checkout that directory somewhere else)20:00
GreekFreak At least I know that the copy/pastes I've been doing haven't been for naught.20:00
cbreak unlike ... other tools :)20:00
Ryback_ left20:00
GreekFreak cbreak: I've noticed20:00
SerajewelKS GreekFreak: indeed -- if the purpose is backup then copying .git works. however, pushing changes this way means there is less data to be copied, since git will copy only the new stuff20:01
GreekFreak I've grown to like it quite a bit :P20:01
CaptainKnots joined20:01
glennpratt_ joined20:01
ToBeFree left20:01
bryanmv`away left20:01
bryanmv`away joined20:01
bryanmv`away left20:01
bryanmv`away joined20:02
GreekFreak SerajewelKS: I wanted to be able to just work with it on another machine (the purpose of the original question). Now I'll just do it The Right Way and kill 2 birds with one stone ;)20:02
bryanmv`away left20:02
SerajewelKS GreekFreak: yup, it's a great solution20:02
bryanmv`away joined20:02
SerajewelKS fyi, i do use git for distributed backup and sync, but don't tell cmn ;)20:03
GreekFreak thanks for the help guys20:03
SerajewelKS git is at its core a content-addressable filesystem with versioning, and that's perfect for backups if you want to retain history forever20:03
dwmw2_gonedwmw2_HIO20:03
cmn as long as you take backups of that20:04
HyperNerdV2_ joined20:04
SerajewelKS i use git to maintain a repo for my oblivion save game files, so i can sync them20:04
cmn the problem isn't making git part of it20:04
SerajewelKS well yeah, you have to have your backup repo somewhere else too20:04
cmn the problem is thinking that git is the only part you need to worry about20:04
glennpratt left20:04
GreekFreak SerajewelKS: I was just about to say... I can use it for ANY kind of file then, not just text files for code :P20:04
Sigma joined20:05
SerajewelKS the cool thing is that i decided i wanted to experiment with vampire gameplay in oblivion. so what did i do? created a "vampire" branch.20:05
psoo left20:05
SerajewelKS so i can checkout master or vampire depending on which fork of my character i want to play20:05
GreekFreak hahahahahahahaha20:05
that's taking it to a whole different level bru :P20:05
SerajewelKS it was the most obvious thing to do :)20:05
drev1 left20:05
SerajewelKS i also use git to create daily snapshots of my minecraft server's world20:06
drev1 joined20:06
jceb left20:07
alexukf joined20:07
t4nkd`workin left20:07
t4nkd`workin joined20:07
HyperNerdV2 left20:07
gusnan joined20:08
Jackneill left20:08
HyperNerdV2_ left20:08
pppaul left20:09
pppaul joined20:09
alvaro_o joined20:09
SerajewelKS git can fill so many roles20:10
sayd joined20:11
sayd my coworker says using rebase on branches that are shared is a bad thing, is this true? ie should it never be used on shared branches20:12
SethRobertson Yes20:12
!rewriting_public_history20:12
gitinfo Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)20:12
PerlJam sayd: you can rebase all you want the stuff you haven't shared yet20:12
SethRobertson It can be done in carefully controlled circumstances, like in git's pu branch20:12
GreekFreak would be interesting to see if we could make it work with Google Drive haha20:13
adhawkins left20:13
sayd PerlJam: SethRobertson thanks, it seems the 'stuff you haven't shared yet' is where i was confused20:13
does that mean a branch that has never reached a remote that would others use20:13
/s/would//20:13
Fullmoon joined20:14
PerlJam sayd: not just a branch but any commits you haven't pushed to a remote yet.20:14
iwoj joined20:15
khmarbaise joined20:16
syphar left20:17
arietis left20:17
stkrzysiak left20:17
GreekFreak left20:17
syphar joined20:17
booginga joined20:18
brentdanley joined20:18
alfplayer left20:18
diegoviola joined20:19
Sigma left20:19
dr_lepper left20:19
teotwaki_ joined20:21
lonewulftp joined20:21
anderse_ joined20:21
syphar left20:22
shirish left20:23
ben225 left20:24
airborn left20:24
chrisgeorge_ joined20:24
pppaul left20:24
camdenx_ joined20:24
wilmoore_ joined20:24
drev1_ joined20:25
tonebender_ joined20:25
vervic_ joined20:25
pppaul joined20:26
drev1 left20:26
drev1_drev120:26
MindDrive joined20:27
shirish joined20:27
Dreamer3 left20:27
Dreamer3 joined20:28
MindDrive Hopefully quick question: is there a way to get a list of tags in (reverse) 'chronological' order? 'git tag' sorts alphanumerically, unfortunately, and all the other 'solutions' I'm finding online don't actually seem to work...20:28
thorbjor1DX joined20:28
Shusshu left20:29
rtuin left20:29
pppaul left20:30
EugeneKay MindDrive - man git-log; look at --decorate=20:30
gitinfo MindDrive: the git-log manpage is available at http://jk.gs/git-log.html20:30
pppaul joined20:30
EugeneKay --tags too20:31
unreal left20:31
unreal_ joined20:32
dr_lepper joined20:32
dr_lepper left20:32
dr_lepper joined20:32
unreal_unreal20:32
jrnieder joined20:32
ben225 joined20:33
ben225 left20:33
vervic left20:34
bolt left20:34
tonebender left20:34
wilmoore left20:34
chrisgeorge left20:34
camdenx left20:34
Mowsh left20:34
Element9 left20:34
thorbjornDX left20:34
maxorator left20:34
Womkes left20:34
tonebender_tonebender20:34
vervic_vervic20:34
Element9 joined20:34
flijten left20:34
ben225 joined20:35
bolt joined20:36
s0ber_ joined20:37
limoges left20:37
ISF joined20:39
s0ber left20:39
maxorator joined20:39
Mowsh joined20:39
Womkes joined20:39
s0ber_s0ber20:39
Mowsh left20:40
MindDrive Thanks for the pointers, folks, though I think I found something that will do what I need (in this case, time should be relatively safe): git for-each-ref --format="%(taggerdate): %(refname)" --sort=-taggerdate --count=10 refs/tags | awk '{print $NF}'20:40
Mowsh joined20:40
anderse_ left20:40
aspotashev|| joined20:40
siprbaum_ joined20:41
enigmabomb left20:41
[Czesiu] joined20:41
genehack_ joined20:41
jrdavid_ joined20:41
chilts_ joined20:41
Favorit_ joined20:42
harv_ joined20:42
SegFault1X|work joined20:42
Aaeriele_ joined20:42
tharkun_ joined20:42
w0m_ joined20:42
MarcWebe1 joined20:42
heoa_ joined20:42
HobGoblin joined20:42
Textmode joined20:42
djh_ joined20:42
rasmusth_ joined20:42
mjessome_ joined20:42
Sil4nc4_ joined20:42
milki_ joined20:42
speakman_ joined20:42
kloeri_ joined20:42
thomas_b_ joined20:42
Spockz_ joined20:42
HobGoblinGuest5707520:43
mikegerw1tz joined20:43
limoges joined20:43
selckin1 joined20:43
drev1_ joined20:44
pppaul left20:45
enigmabomb joined20:45
pppaul joined20:45
mikegerwitz left20:45
drev1 left20:45
drev1_drev120:45
mikegerw1tz left20:46
mishok13 left20:46
Vile joined20:46
mikegerwitz joined20:46
mikegerwitz15SABPL2S20:46
neunon left20:46
milki left20:46
kloeri left20:46
Spockz left20:46
knittl left20:46
selckin left20:46
tystr left20:46
Aaeriele left20:47
thomas_b left20:47
heoa left20:47
Sil4nc4 left20:47
mjessome left20:47
speakman left20:47
djh left20:47
ChoiZ left20:47
UukGoblin left20:47
rasmusth left20:47
MarcWeber left20:47
w0m left20:47
harv left20:47
SegFaultAX|work left20:47
Favorit left20:47
Czesiu left20:47
siprbaum left20:47
jrdavid left20:47
genehack left20:47
chilts left20:47
harv_harv20:47
aspotashev| left20:47
cantoma left20:47
[E]sc left20:47
qwertz_ left20:47
arvind_khadri left20:47
segher left20:47
newbie999|3 left20:47
jesse left20:47
knittl joined20:47
neunon joined20:47
pandeiro left20:47
[E]sc joined20:47
arvind_khadri joined20:47
segher joined20:47
newbie999|3 joined20:47
cantoma joined20:47
qwertz_ joined20:47
jesse joined20:47
kloeri_ left20:48
kloeri joined20:48
alvaro_o_ joined20:49
alvaro_o_ left20:49
pantsman joined20:49
pantsman left20:49
pantsman joined20:49
iwoj left20:50
pppaul left20:50
khmarbaise left20:50
pppaul joined20:50
tystr joined20:51
ChoiZ joined20:52
alvaro_o left20:53
infogulch left20:53
tharkun left20:53
khmarbaise joined20:53
mcluskydodallas joined20:53
chrisgeorge_ left20:53
jsoa left20:53
duckxx left20:53
duckx joined20:53
vitor-br left20:53
Anubisss_ left20:54
chrisgeorge joined20:54
joeytwiddle left20:55
JEEB left20:56
aried3r left20:56
Anubisss_ joined20:56
kloeri left20:56
kloeri joined20:56
revagomes left20:56
revagomes joined20:57
shirish left20:57
theDrumm left20:57
ben225 left20:57
bartek left20:57
freeed left20:57
theDrumm joined20:57
ddelrio1986 left20:58
[Czesiu] left20:58
MistuhKurtz left20:59
gtrak` left20:59
jrnieder left20:59
heoa_ left21:00
diegoviola left21:00
TTSDA left21:00
asoltys_ left21:00
apetrescu left21:00
ocharles left21:01
dv310p3r left21:03
tchan left21:03
atomicity left21:03
apetrescu joined21:03
bremner joined21:03
revagomes left21:03
bitkiller left21:03
Internet13 left21:03
P-l joined21:04
cmn joined21:04
ben225 joined21:04
gtrak` joined21:04
codeshah left21:04
ThunderChicken left21:05
meLon left21:05
Czesiu joined21:06
pppaul left21:06
FreeArtMan joined21:06
isao joined21:06
pppaul joined21:06
glennpratt_ left21:07
coopsh left21:07
libertyprime left21:07
jmcantrell left21:07
P4C0 left21:07
Rafusek_ joined21:07
lukus left21:07
Rafusek left21:07
Adys left21:07
JEEB joined21:08
heoa joined21:08
pureluck_ joined21:08
robins joined21:08
isao1 joined21:08
darkmethod left21:08
klj613 left21:08
cyphase left21:08
gtrak` left21:10
theDrumm left21:10
diegoviola joined21:10
lukus joined21:10
mitsuhiko left21:10
vmiklos left21:10
asoltys joined21:11
P-lGuest7223621:12
iwoj joined21:12
kloeri left21:12
aried3r joined21:12
FreeArtMan left21:12
robins left21:12
kloeri joined21:12
robinsmidsrod joined21:12
Peste_Bubonica left21:12
vmiklos joined21:12
tvw left21:12
infogulch joined21:12
tchan1 joined21:12
AaronMT left21:12
ymasory left21:12
dv310p3r joined21:12
tvw joined21:12
ocharles joined21:13
Guest72236 left21:13
isao1 left21:13
erichynds left21:13
defaultro left21:16
joeytwiddle joined21:16
teotwaki_ left21:16
Tohuw left21:16
isao left21:16
TTSDA joined21:16
jstemmer joined21:16
dv310p3r left21:16
siprbaum_ left21:16
__main__ left21:16
Bass10 joined21:16
lukus left21:18
Bass10 left21:19
Orbitrix left21:19
selckin1 left21:19
BartlomiejB left21:19
dv310p3r joined21:19
__main__ joined21:20
Vinnie_win left21:20
dmilith left21:20
joeytwiddle_ joined21:20
moltar_net1 I have a project structure like this: ./dir1/lib ./dir2/lib. Both "lib" are dirs as well. I decided that I don't need top level dir1 & dir2 anymore. So I did "git mv dir1/lib .", then "git mv dir2/lib". On the second move I get "fatal: cannot move directory over file, source=dir2/lib, destination=lib". Why is that?21:21
jstemmer left21:22
Chaser left21:23
lukus joined21:24
bremner left21:24
dv310p3r left21:24
eicto left21:24
P-l- joined21:25
brokenshakles joined21:26
revagomes joined21:26
dv310p3r joined21:26
joeytwiddle_ left21:26
joeytwiddle left21:26
Twey left21:26
pppaul left21:26
bitkiller joined21:26
gtrak``` joined21:26
meLon__ joined21:26
ThC joined21:26
dv310p3r left21:26
Synthead left21:26
Adys_ joined21:26
limoges left21:26
fission6 left21:26
pppaul joined21:26
juanfer left21:26
glennpratt joined21:27
libertyprime joined21:27
geeKISSexy joined21:27
jmcantrell_ joined21:27
joeytwiddle joined21:27
Internet13 joined21:27
theDrumm joined21:28
ipalaus left21:28
Bass10 joined21:28
iamjarvo left21:28
trout left21:28
Bass10 left21:28
joeytwiddle left21:28
15SABPL2Smikegerwitz21:28
vmiklos left21:28
vmiklos joined21:28
atomicity joined21:28
pppaul left21:28
pppaul joined21:28
ymasory_ joined21:28
AaronMT joined21:28
variable joined21:28
pantsman left21:28
whitman left21:28
joeytwiddle joined21:28
MindDrive left21:28
defaultro joined21:28
bolt left21:28
ipalaus joined21:28
joshsmith left21:28
bolt joined21:28
d1b joined21:28
xaka joined21:28
JPohlman1 joined21:28
siprbaum joined21:28
xaka if i have commited, but not pushed changes yet, how can i see the diff? "git diff <commit>" or "git diff --cached <commit>" doesn't show anything21:28
joeytwiddle left21:28
SerajewelKS xaka: "git diff <commit>" compares the commit to HEAD21:28
xaka but i can see my commit via "git log"21:28
CellKill_ joined21:28
SerajewelKS xaka: if the commit you named is the commit you have checked out, then of course you are not going to see anything21:28
tonyj joined21:28
huevos joined21:28
SerajewelKS xaka: "git show <commit>" will display a diff of the commit to its parent(s)21:28
berserkr left21:28
batrick_ joined21:28
ghost_olli joined21:28
cmn xaka: HEAD is the tip of the branch you're currentlyh on21:28
SerajewelKS xaka: if the commit is the commit you have checked out, "git show HEAD" will do the trick21:28
xaka SerajewelKS: git show <commit> works, thank you!21:28
Tohuw joined21:28
cmn so trying to diff that with the worktree if you've just committed will be empty21:28
Tohuw left21:28
Tohuw joined21:28
Vinnie_win_n joined21:28
Bass2 joined21:28
BartZilla joined21:28
kcj joined21:28
jimubao joined21:28
BartZilla left21:28
Dave^| left21:28
variable left21:28
dmil joined21:28
ehsan left21:28
actel joined21:28
Maccer left21:28
gitinfo set mode: +v21:28
pppaul left21:28
morgoth_ joined21:28
Chaser__ joined21:28
variable joined21:28
pppaul joined21:28
xou_ joined21:28
lukus left21:28
lukus joined21:28
FauxFaux moltar_net1: Ignore git mv, it's only a helper. git add afterwards is identical.21:28
mage_ joined21:28
Twey joined21:28
bremner joined21:28
sq-one left21:28
dv310p3r joined21:28
shad joined21:28
glcrazy left21:28
chrisgeorge left21:28
glcrazy joined21:28
chrisgeorge joined21:28
Vinnie_win_nVinnie_win21:28
moltar_net1 FauxFaux: so I can just manually re-arrange everything, and git would pick it up as intended?21:28
juanfer joined21:28
cmn you'd need to tell git21:28
tbird72 left21:28
moltar_net1 cmn: but of course .. :)21:28
I meant "add" would tell git to pick it up as intended?21:29
FauxFaux moltar_net1: Yeah. git add or git add -A afterwards.21:29
moltar_net1 it'll know that files have moved?21:29
LittleFool left21:29
FauxFaux Yes.21:29
moltar_net1 I guess it can tell by some sort of checksum, right?21:29
fly9 left21:29
moltar_net1 too good :)21:29
LittleFool joined21:29
fly9 joined21:29
chrisgeorge left21:29
chrisgeorge joined21:30
ghost_olli left21:30
joeytwiddle joined21:31
cmn git calculates movements on the fl21:31
ghost_olli joined21:31
fly9 left21:31
cmn it will simply record the new files and not record the old ones21:31
fly9 joined21:31
Lord_DeathMatch joined21:31
lcpfnvcy joined21:31
moltar_net1 cmn: but will it maintain history?21:31
i.e. when I check log for the moved file, will I see commits for when it was under a different name?21:32
jstemmer joined21:32
cmn with --follow21:32
blame will tell you if the code originally came from the old one21:32
git keeps snapshots21:32
any changes are all calculated at runtime21:33
w09x joined21:33
Bass2 left21:33
joeytwiddle left21:34
Dreamer3 can someone help me with rebasing?21:34
chrisgeorge left21:35
umc left21:35
Dreamer3 i have a conflict… is there any way to see the two files from both sides of the merge… or tell it which one to use outright instead of merging manually?21:35
Oliver_ joined21:36
LongBeach left21:36
d0k left21:37
dzonder left21:37
joeytwiddle joined21:38
Superlokkus joined21:38
pandeiro joined21:38
dzonder joined21:38
cmn checkout --theirs or --ours will checkout one of the versions21:38
git mergetool will start up a merge tool21:38
chrisgeorge joined21:38
cmn by default vimdiff, you can use many others21:38
Dreamer3 hmmm21:38
ph^ left21:38
Dreamer3 so if i'm on a branch… and rebasing on master...21:38
--theirs would be?21:39
i.e. i'm running "git rebase master"21:39
cmn your version21:39
a rebase is doing things the "wrong" way around21:39
JohnyBaby left21:39
Dreamer3 so theirs is from my local branch?21:39
cmn you can also see which side has which version from the contents is the file21:39
Dreamer3 which am i checking out if i don't specify?21:39
ghost_olli left21:39
Dreamer3 sounds like the kind of thing i need to play with in a test project21:40
cmn you have to specify the file(s)21:40
well, you can always use !fixup to recover21:40
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!21:40
Dreamer3 right but i can just run "checkout" without --theirs or --ours21:40
cmn you can21:40
Dreamer3 i would assume i'm getting my branches copy?21:40
cmn but you'd have to figure out exactly which version you want21:41
and checkout already knows which exact file is each21:41
ben225 left21:41
glcrazy left21:41
t4nkd`workin left21:41
Sahua_ left21:42
joeytwiddle left21:42
ben225 joined21:42
Dreamer3 ok i have a good test21:42
so if i clobble it with checkout --theirs or --ours… is there a quick way to get the merged file with conflicts back?21:43
it's trying to find p4merge21:44
hmmm21:44
any really great guy merge tools for OS X?21:44
petershaw left21:44
blacktulip left21:46
joeytwiddle joined21:46
yoklov joined21:46
Spockz_Spockz21:47
rking Oops. I'm drawing a blank. I have a repo I forked quite a while back, but now I'm about to work on a new Pull Request -- how do I update it so that I'm in sync with the current upstream repo?21:47
Superlokkus left21:48
dwmw2_HIOdwmw2_gone21:49
dv310p3r left21:49
Oliver_ left21:49
booginga left21:49
ghost_olli joined21:49
raek rking: if you have a clean working tree and no local commits, then just do "git pull origin"21:50
theCole joined21:50
rking But my origin is me?21:51
Oh no it isn't.21:51
brokenshakles left21:52
raek rking: you can add the fork that's not present using "git remote add <name> <url>"21:52
pfFredd joined21:52
pandeiro left21:52
rking OK21:52
smoge joined21:52
isao joined21:52
rking Then basically I do a git pull origin; but a git push rkingstuff ?21:52
saurik joined21:53
ben225 left21:54
raek yeah21:54
it's probably good to specify the branch when you do the push21:54
rking OK, thanks. That does sound like what I had been informed of, before.21:54
Oh yeah.21:54
ghost_olli left21:54
raek git push rkingstuff issue-123-patch21:54
rking That will automatically make a branch for it?21:54
Or I have to git branch first?21:54
ghost_olli joined21:55
raek that will push your local issue-123-patch branch to the remote issue-123-patch branch21:55
saurik left21:55
raek no21:55
saurik joined21:55
raek well, the remote branch will be created21:55
MistuhKurtz joined21:55
ghost_olli left21:56
rking Here's the whole process, as I understand it:21:56
raek you might want to do "git fetch origin" and then "git checkout -b issue-123-patch origin/master" to set up your branch, or something similar21:56
ghost_olli joined21:56
cakehero left21:56
ghost_olli left21:57
berserkr joined21:57
pppaul left21:57
raek (git pull fetches from the remote and then merges the remote branch with your local one)21:57
rking 1) "Fork" through the web UI (is there a CLI tool for this?) 2) clone that resultant URL, 3) git branch issue-123-patch, 4) git push 5) ...time passes.. 6) git pull origin... crap I'm getting confused now.21:58
tyatpi left21:58
cagedwisdom joined21:58
ISF left21:58
raek that should work21:58
edude03 left21:58
rking Then that's it? Simply git branch issue-124-patch; git push ?21:59
EugeneKay rking - you probably want to add a remote named "upstream" to your local clone which points to the original repo21:59
pppaul joined21:59
dvide left21:59
EugeneKay Then you would fetch upstream master; checkout master; merge upstream/master21:59
rking Hrm.. merge?21:59
Because I did branch I assume.. but when does that happen?22:00
raek rking: I would recommend using the non-abbreviated form of git push (where you specify remote and branch) when learning22:00
EugeneKay Branch creates a divergence from the upstream master to your working branch22:00
rking Aha, I can get into that.22:00
shruggar left22:01
raek the defaults you get when you ommit the arguments to pull and push tend to be confusing22:01
EugeneKay The reason you need to merge upstream/master into your local master(and probably pus hthat back to your clone's master) is that you don't automagically get new commits that were made to the upstream.22:01
raek and depends on how you created the current branch22:01
rking OK. I think I follow.22:02
I'll give it a whirl and probably be back in a few weeks when I need to do it again, unless I happen to retain this.22:03
At the moment it looks like I'm sorted.22:03
leonardotartari left22:03
rking Now I have an entirely different question - I did a `git blame` and determined that commit ce52b38e is dubious, but I want to know more about it. I did a `git log ce52b38e` and found out that the commit message doesn't justify the change, so now I want to see the whole diff of ce52b38e22:04
java joined22:04
defaultro left22:04
defaultro joined22:04
rking But git diff ce52b38e seems to do something different.22:04
cmn rking: show22:04
EugeneKay rking - !lol helps to keep it straight22:04
gitinfo rking: git config --global alias.lol "log --oneline --graph --decorate"22:04
cmn git diff <commit> compares HEAD with that commit22:04
or git log -p22:04
BlueProtoman joined22:04
java left22:05
rking WHOA.22:05
--decorate goes to town.22:05
BlueProtoman I'm getting an error, something about fast forwards. Someone mind explaining it to me? http://pastebin.com/Dt9t5ASG22:05
cmn someone else pushed22:05
or you rewrote published history22:05
raek --all is nice too22:05
nrichards left22:05
lacrymology left22:05
rking Strangely `git lol` doesn't show ce52b38e22:05
BlueProtoman cmn: Well, I DID check "Amend Last Commit" on git-gui.22:06
cmn so your push would overwrite history and possibly lose infromation22:06
BlueProtoman So how can I fix this?22:06
cmn BlueProtoman: that would be it then22:06
albel727 left22:06
cmn first make sure22:06
fetch from that remote and compare22:06
kinetic joined22:06
dvide joined22:06
Maccer joined22:06
Lord_DeathMatch left22:06
juanfer left22:07
cmn once you're sure that the only change is that ammend, you can force-push with -f22:07
fly9 left22:07
pppaul left22:07
cmn and then apologise to the people who can see that branch22:07
rking Hrm, I am definitely appreciating these tips, but I'm still not quite able to accomplish the task - I basically need to learn everything about a certain chunk. I've gotten as far as what `git blame` shows me, but I need to go further back in time to find the first time that chunk was introduced.22:08
pppaul joined22:08
cmn rking: blame -C -C22:08
sgncfl left22:08
w09x left22:08
rking Oh, sounds cool.22:08
limoges joined22:08
cmn that looks for the original place the code was introduced22:08
it will only work if the change came in as part of a chunk of code22:08
BlueProtoman cmn: This is just my own project, I'm the only one working on it.22:08
cmn following one single line won't trigger the detection22:08
rking Hrm, does it expect more args? `git blame -C -C foo.asdf` is giving me the same commit hash for that line.22:09
cmn then taht's what git thinks that line was introduced22:10
where22:10
rking Hrm.22:10
cmn: OK, thanks.22:10
I'm nuking it. =)22:10
ferdna joined22:10
txomon|nqas left22:10
txomon|nqas joined22:12
txomon|nqas left22:12
txomon|nqas joined22:12
pppaul left22:12
mineiro joined22:12
pppaul joined22:12
Chillance joined22:12
BlueProtoman cmn: Thanks for the tip!22:13
BlueProtoman left22:14
cmn make sure you don't abuse force-pushes22:14
tizzo left22:16
TheShagg joined22:18
gitinfo set mode: +v22:18
TheShagg I am trying to fetch commit/tag shown here:22:18
http://arago-project.org/git/projects/?p=linux-davinci.git;a=commit;h=2acf935c01b9adb50164d421c40cdc5862b9e14322:18
JohnyBaby joined22:18
FauxFaux Need to write me a hook that allows trivial force-pushes, but not scary ones. For some definition of the above. Actually, I bet someone's written a hook that allows force-pushes of unpulled history in gitolite or similar.22:18
pppaul left22:18
TheShagg but when I try and fetch it it says Couldn't find remote ref22:18
FauxFaux TheShagg: git fetch origin --tags22:19
pppaul joined22:19
RaceCondition left22:20
pppaul left22:20
brokenshakles joined22:20
drev1_ joined22:20
albel727 joined22:20
juvenal left22:21
TheShagg FauxFaux: wow that takes a long time on a linux kernel22:21
twisted` left22:21
pppaul joined22:21
obert- left22:22
yoklov left22:22
FauxFaux It might be fetching a bit more data, too. Or a lot, depending on how crazy the author is.22:22
drev1 left22:22
drev1_drev122:22
twisted` joined22:24
TheShagg FauxFaux: so if I grep my git show-ref I can see it in refs/tags22:24
but when I try and: "git fetch arago v2.6.33-rc4_DAVINCIPSP_03.20.00.13" it says Couldn't find remote ref v2.6.33..."22:25
FauxFaux But, if it's in refs/tags, you have it? So why do you need to fetch it?22:25
cmn TheShagg: use the real name22:25
if you don't specify a namespace, git assumes you mean a branch22:25
TheShagg elaborate?22:25
real name?22:25
isao left22:25
TheShagg refs/tags/.... ?22:26
cmn yes22:26
TheShagg k22:26
cmn I think fetch also lets you say fetch tag v1... and does it for you22:26
but you just fetched it22:26
duckx left22:26
cmn so there isn't really anything for git to do22:26
TheShagg ah, that worked22:26
thank you22:26
was not aware that its not smart enough to search for it as a tag22:26
alesan joined22:26
TheShagg I figured it used all namespaces22:26
alesan hi what is a guide for a friend that wants to learn git and has never used any svn or group development instrument?22:27
he's a programmer for 15 years but a lot in php or individual stuff22:27
dzonder left22:27
TheShagg and he hasn't used version control?22:27
does he use windows?22:27
or she22:28
alesan no ubuntu now22:28
HE22:28
wizbit joined22:28
alesan I know only one female that knows how to use git well22:28
but that is not relevant22:28
TheShagg I learned version control on windows using tortoise SVN and i think that helped me maintain sanity\22:28
kevlarman alesan: what's the question?22:28
wizbit does git come with any global configuration examples?22:28
TheShagg the git tools are really clunky for newbs22:28
alesan kevlarman, <alesan> hi what is a guide for a friend that wants to learn git and has never used any svn or group development instrument?22:28
radii left22:28
kevlarman alesan: !book is probably a good place to start22:29
gitinfo alesan: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable22:29
jorts left22:29
cmn TheShagg: it's not about being smart; the rule is that an unqualified name for fetch is a branch22:29
alesan so "pro git"?22:29
kevlarman alesan: learning git is actually *much* easier if you've never learned svn22:29
(or cvs, etc.)22:29
alesan well if you know svn there is the git svn crash guide22:30
TheShagg cmn: if it were smart, it would look for tags too :)22:30
offby1 I have a whole range of commits that have the wrong email address (because I forgot to update ~/.gitconfig). Can I update them all in one go? As opposed to doing an interactive rebase and editing each, then doing "git commit --amend --reset-author" on each?22:30
cmn TheShagg: see my earlier comment22:30
macabre left22:30
diago left22:30
kevlarman alesan: problem is when you know svn you expect git to act like it, which git doesn't do because svn's way of doing things is terrible22:30
TheShagg cmn: see my earlier comment22:30
kevlarman: are you actualy linus, trolling the git irc22:31
kevlarman TheShagg: hehe22:31
i wish22:31
alesan kevlarman, are you saying it would be much easier to leran Java if you have absolutely no C experience?22:31
kevlarman alesan: no22:31
alesan learn22:31
what is the difference then22:31
giallu left22:31
alesan git is like jave if svn is C, not?22:31
Java22:31
bremner no22:31
kevlarman alesan: no22:31
TheShagg kevlarman: my specific statement also mentioned using tortoise SVN, which is probably highly different from the command line22:31
ohcibi no22:31
bremner first of all, that's a crazy analogy22:31
alesan I do not understand then22:31
avinashhm joined22:32
alesan anyway22:32
kevlarman alesan: make that visual basic 6 and lisp, and maybe the analogy kinda works22:32
alesan I love LISP22:32
Scheme actually22:32
bremner alesan: don't worry about it then. But many svn users expect git to be like svn22:32
and then they are sad22:32
glennpratt left22:32
TheShagg git is like svn22:32
just like lisp is like visual basic22:33
revagomes left22:33
kevlarman alesan: i spent a ton of time banging my head on the desk before i managed to unlearn svn22:33
offby1 suddenly has an idea: run 'git-format-patch' and then "git am"22:33
kevlarman once i got past that learning git was easy22:33
TheShagg you used the command line, didn't you?22:33
Tinti left22:33
alesan !bottomup22:33
gitinfo 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf22:33
kevlarman TheShagg: yes, for both22:33
alesan !cs22:33
gitinfo 'Git for Computer Scientists' explains the basic structures used by git, which is very helpful for understanding its concepts. http://sitaramc.github.com/gcs/22:33
TheShagg kevlarman: thats the problem22:33
kevlarman alesan: you can /msg the bot as well22:33
alesan ok22:34
TheShagg use the gui to learn the concept with a rich interface before you start trying to figure out some bass ackwards gui command structure22:35
sorry, command line structure22:35
ohcibi o-O22:35
Tinti joined22:35
drizzd joined22:35
bremner TheShagg: ok, that's your opinion. I think you'll find not many here agree.22:35
TheShagg that's fine22:36
ohcibi "use the gui to learn concepts".... _wrong_ 8-))22:36
Dreamer3 is there something better than gitk to show branch history?22:36
i can't even figure out how to resize the top pane22:37
ohcibi Dreamer3: i like giggle22:37
pppaul left22:37
TheShagg if you use windows, tortoise GIT works nicely22:37
Dreamer3 i need mac software22:37
TheShagg gitk is the only one I have seen for linux that does proper multithreading22:37
bremner that is the first nice thing I have ever heard about tortoise git22:38
ohcibi 8-)22:38
pppaul joined22:38
Dreamer3 i have two branches, how can i tell the point from which they diverged?22:38
hwrd|work left22:39
TheShagg I like tortoise git a lot, gets better all the time, except the problem with it is that it doesn't exist for linux, and using it with a repo that is also used in linux presents all the typical windows/linux incompatibility issues (such as file name case and newlines)22:39
ivan I'm using git-svn and it's pulling ~7000 revisions per tag repeatedly per tag, and there are 200 tags. Is there a script somewhere that imports tags without grabbing history from r1 for each?22:39
I don't mind being unable to obtain updates on those tags22:40
ohcibi TheShagg: there is no need for a git-gui for linux, we know how to deal with git 8-)22:40
chrisgeorge left22:40
ohcibi in fact i tell my students to NOT use any gui because they'll learn the gui and not git22:40
*they'd22:41
Dreamer3 hmmm22:41
how can i rewrite my commit history and remove a commit completely?22:41
bremner rebase -i22:41
Riviera Sounds silly, make them learn concepts first, applying these concepts then on the command line should be much easier.22:41
(And a GUI might be rather helpful in learning concepts.)22:41
Dreamer3 bremner: that tells me it doesn't know what to rebase against22:41
milki_ left22:42
shuvo joined22:42
bremner Dreamer3: I guess I should have said main git rebase -i22:42
milki joined22:42
bremner err. you know, check the man page22:42
ohcibi Riviera: for the history ok, but the rest is better done with the command line22:42
macmartine joined22:42
RaceCondition joined22:43
gitinfo set mode: +v22:43
ohcibi plus experience with windows users shows: gui-users dont learn any concepts 8-))22:43
Dreamer3 man22:43
shuvo hello everyone, I had a question22:43
can I have branches of my source code that excludes certain directories from the main branch? think "views" in a SQL DB22:43
JohnyBaby left22:43
shuvo something like .gitignore, but for branches22:43
Dreamer3 i seem to remember something giving me a list of commits and i could just commit one out and then be done22:43
ohcibi but enough trolling... good night everyone 8-)22:43
batrick_batrick22:44
Riviera nite ohcibi 8)22:44
TheShagg ohcibi: you seem as equally snobbish as I, perhaps we could arrange some mortal enemyship?22:44
kevlarman shuvo: no22:44
bremner Dreamer3: yes, that is rebase -i, but you need the right parameter. see !fixup22:44
gitinfo Dreamer3: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!22:44
keltvek left22:45
teweWORK left22:45
shuvo thanks kevlarman. there is no way to have additional directories "removed" from the "main branch"?22:46
Dreamer3 qhmmm22:46
RaceCondition left22:46
w09x joined22:47
Dreamer3 http://sethrobertson.github.com/GitFixUm/fixup.html#remove_deep22:47
ok22:47
dvide left22:47
Dreamer3 git rebase -p --onto SHA^ SHA22:47
royale1223 joined22:47
wizbit how can i make sure a hook gets executed?22:48
royale1223 left22:48
wizbit post-update22:48
does it just need chmod +x ?22:48
limoges left22:48
Dreamer3 so i get that i'm rebating onto the revision BEFORE my "bad" commit… but what does adding the SHA again do22:48
fisted left22:48
fisted joined22:49
thebignoise joined22:50
limoges joined22:51
dvide joined22:51
TheShagg is there a shorter way to write: "gitk HEAD~30..HEAD" ?22:51
pppaul left22:52
dr_lepper gitk HEAD~30..22:52
aspotashev|| left22:53
aspotashev joined22:53
TheShagg dr_lepper: cool, but nothing shorter than that to show the last 30 commits?22:53
pppaul joined22:53
dr_lepper no idea, never used gitk22:54
TheShagg huh22:54
hwrd|work joined22:55
dr_lepper you could try, for example gitk -3022:55
txomon|home left22:55
dr_lepper it works with qgit because it uses git log internally22:55
Dreamer3 ok that was neat22:55
dr_lepper so i strongly suspect gitk does22:55
TheShagg dr_lepper: Brilliant! yes so does gitk (i see the errors when I feed it bad args)22:56
thats perfect22:56
thank you22:56
dr_lepper anytime22:56
krz joined22:56
aspotashev left22:57
coopsh joined22:57
adammokan joined22:59
alexukf left22:59
neurodrone left23:00
TeckniX left23:00
mineiro_ joined23:01
mritz left23:02
ConstantineXVI joined23:03
mineiro left23:04
mxweas_ joined23:04
tizzo joined23:04
mxweas_ left23:07
martinjlowm-lptp left23:07
martinjlowm left23:08
chilts_ left23:09
mritz joined23:10
_iron left23:10
nrichards joined23:10
keltvek joined23:12
kermit left23:12
osmosis "Your branch is behind 'origin/master' by 10 commits, and can be fast-forwarded." How?23:12
AaronMT left23:13
bremner osmosis: man git merge23:13
gitinfo osmosis: the git-merge manpage is available at http://jk.gs/git-merge.html23:13
bremner osmosis: in particular, git merge origin/master23:13
JohnyBaby joined23:13
kevwil left23:13
tonebender left23:13
RaceCondition joined23:14
nrichards left23:15
selckin1 joined23:15
spaceonline joined23:16
xaka left23:17
pppaul left23:18
tatsuya_o left23:18
pppaul joined23:19
shuvo kevlarman, @all, in that case, I could do the opposite: maintain the minimum common files/directories as the "main branch" and have the files/directories that can change (get added) across branches in each branch (removing the need to "remove" files/directories from the "main branch" instead)?23:19
cyphase joined23:19
kevlarman shuvo: yes23:20
lindenle_ joined23:20
Drakevr joined23:20
Drakevr left23:20
Drakevr joined23:20
drev1 left23:20
zorzar_ joined23:21
shuvo and later, if I WANTED TO, I could merge in some branches (and their disparate directories) using git merge or similar?23:21
macmartine left23:21
superdmp left23:23
Element9 left23:23
AaronMT joined23:24
eijk left23:24
ScottE_ joined23:24
mitsuhiko_ joined23:25
sitaram FauxFaux: "force pushes of unpulled history"? Could you explain?23:25
tizzo_ joined23:25
ScottE left23:25
CellKill_ left23:26
FauxFaux sitaram: Allow you to force a push iff nobody has observed the history you're destroying.23:26
CellKill joined23:26
Tinti left23:26
tizzo left23:26
tizzo_tizzo23:26
FauxFaux i.e. if, for the simplest case, if someone's done a pull since push-time of merge-base master@{1} master, disallow the forciness of the push?23:27
aZnmAn joined23:27
sjefen6_ joined23:27
zendeavor left23:27
serj joined23:27
joeytwiddle left23:28
aried3r left23:28
arvind_khadri left23:28
JPT left23:28
ymasory_ left23:28
alberto56 left23:28
piti left23:28
serj_ left23:28
sjefen6 left23:28
sente` left23:28
tyatpi joined23:28
aZnmAn Hi, trying to remove remove unchanged files from unstaged changes. I found a post mentioning crlf/lf line-ends, and to disable core.whitespace = fix... I checked git config and don't see it enabled. How do I fix this?23:28
asakura0 left23:29
catsup left23:29
FauxFaux aZnmAn: It also picks up on encoding and case changes, are you on a non-linux-like filesystem?23:29
JPT joined23:29
aZnmAn yeah, my remote repo is on CentOS, but my local deev machine is running win 7 pro23:30
*dev23:30
CellKill_ joined23:30
CellKill left23:31
bglusman left23:31
sitaram FauxFaux: even in theory, only that simplest case is possible, I think23:31
FauxFaux: because a fetch is a fetch; gitolite doesn't/can't know *what* was fetched, far less what was done with the fetched branch(es)23:32
osmosis how do I pull the new changes from master into my current branch?23:33
alberto56 joined23:33
FauxFaux Even assuming everything was fetched would probably work for me. I'm thinking of forces where you realise you made a mistake shortly after pushing, because I'm a retard. Or after the CI server / deploy script notices, or whatever. Maybe you'd argue that forces in this situation are bad anyway.23:33
Turicas joined23:33
morgoth_ left23:34
zendeavor joined23:34
tvw left23:34
marhaban joined23:35
ymasory_ joined23:35
kevlarman FauxFaux: tbh i'd use gerrit for something like that23:35
aried3r joined23:36
sente` joined23:36
joeytwiddle joined23:36
arvind_khadri joined23:36
aZnmAn FauxFaux: ? Is there a fix?23:37
madewokherd joined23:37
asakura0 joined23:37
piti joined23:37
mritz left23:37
sgncfl joined23:37
sgncfl left23:38
eephillip left23:38
drizzd left23:38
kerrick joined23:39
sitaram kevlarman: how would gerrit do this? (other than adding a temp "for-master" branch in between)23:40
kevlarman sitaram: the latter23:40
sitaram: since everything is so heavily patch based, there isn't anything to rebase except the things that you *know* are going to be rebased23:41
thebignoise left23:41
iOPK left23:41
RaceCondition left23:41
sitaram kevlarman: in theory you could do the same with gitolite also; push to a branch that people are told not to fetch, and post-receive triggers CI off of that branch *only* and if it works moves it to the main one23:41
hwrd|work left23:41
kevlarman sitaram: yup23:41
sitaram: i just love the idea of forcing code review like gerrit does23:42
nadavoid left23:42
OPK joined23:42
sitaram kevlarman: yeah gerrit is apparently pretty good that way; I always tell people who want code review to swicth to gerrit from gitolite23:42
switch*23:42
catsup joined23:42
Chillance left23:42
milki gerrits custom git stack is weiiiiierd23:43
kevlarman ew it uses a custom git stack?23:43
FauxFaux But it's written in Java. It muts be good.23:43
milki haha23:43
sitaram and custom ssh, and a database, and....23:43
FauxFaux sitaram: But they're apache projects! They must be good.23:43
sitaram even the sshd is in Java23:43
milki cant use normal git-hooks23:43
which means if you are mirroring and stuff23:43
you need to do wierd stuff23:44
FauxFaux kevlarman: Same thing eclipse-git uses (jgit).23:44
sitaram FauxFaux: why "must be"?23:44
FauxFaux Sarcasm. ¬_¬23:44
sitaram FauxFaux: aah ok!23:44
milki lol23:44
you have those characters in your smiley easily accessible?23:44
kevlarman FauxFaux: double-ew23:44
sitaram FauxFaux: my serious opinion is that they would have some credibility as being from a non-small player, but Apache is too spread out, and anyone who is still putting *all* their projects on *one* SVN repo (last I heard) needs a lobotomy23:45
milki uh23:45
milki averts eyes23:45
milki its not my fault. its legacy!23:45
shwaiil joined23:45
shwaiil hi23:46
gitinfo shwaiil: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.23:46
sitaram and since I have paid my dues with COBOL from 1986 to about 1993, I refuse to use the "COBOL of the internet" for anything serious. (Freemind is the only exception)23:46
milki sitaram confirms his ancientness23:46
sitaram as if you didn't know23:46
already23:46
milki :P23:46
morgoth_ joined23:46
sitaram :)23:47
FauxFaux sitaram: We have one big 870,000 revision svn repo at work! It's a brilliant idea!23:47
rchavik joined23:47
rchavik left23:47
rchavik joined23:47
sitaram how many subprojects?23:47
FauxFaux All of them. (Hundreds.)23:47
sitaram oh nice; you're a corporate version of Apache!23:47
morgoth_ left23:48
thebignoise joined23:48
eicto joined23:48
shwaiil Q: I'm trying to learn how to deploy using Git. I came across (https://github.com/EugeneKay/scripts/blob/master/bash/git-deploy-hook.sh), that was sent to me via this room. Since I've done some reading (but not enough yet, still in learning process), I realised that to deploy to my production server, I need to add it as a Repo. When push to this repo, that's when the "hook" (like in the link), runs. Is this correct ? Thanks! OBS: My main23:48
osmosis how do I pull the new changes from origin/master into my current branch?23:48
kenperkins left23:48
FauxFaux Yeah. We heard it was the least efficient way to run anything, so we were right in there. (no sarcasm this time)23:48
Pupeno_W_ joined23:49
adammokan left23:49
dv310p3r joined23:49
kadoban_ left23:49
Vert joined23:50
keltvek left23:50
rchavik left23:50
rchavik joined23:51
rchavik left23:51
rchavik joined23:51
Pupeno_W left23:51
Pupeno_W_Pupeno_W23:51
pfFredd left23:52
Jippi joined23:52
neurodrone joined23:52
osmosis git pull origin master23:52
txomon|home joined23:53
txomon|home left23:53
txomon|home joined23:53
notjohn left23:53
mxweas_ joined23:56
DofLeFou left23:58
kermit joined23:59

Logs Search ←Prev date Next date→ Channels Documentation