IRCloggy #git 2012-05-26

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-26

nitrospectide left00:01
enmand joined00:03
Pookz left00:06
fuzzybunny69y joined00:07
jkyle joined00:08
beneggett joined00:09
krz joined00:10
newbie999 left00:10
newbie999 joined00:11
arietis left00:11
bitslip left00:12
bitslip joined00:12
arietis joined00:12
krz left00:12
Y_Ichiro left00:13
Y_Ichiro joined00:13
Y_Ichiro left00:13
Y_Ichiro joined00:13
jkyle left00:13
kenperkins left00:13
SkAzZ1 left00:16
jstout24 left00:16
jeax left00:17
aselder left00:21
FernandoBasso left00:21
Targen left00:21
jkyle joined00:22
btanaka left00:24
jkyle left00:28
Eridius left00:28
neurodrone left00:28
Eridius joined00:34
dreiss left00:34
arietis left00:35
davidbanham left00:36
ColKurtz left00:40
DofLeFou joined00:41
eijk_ left00:42
cagedwisdom joined00:43
phillllijw left00:45
AaronMT left00:46
igotnolegs joined00:46
g00s joined00:49
g00s hi, i had 2 branches: master and hotfix … i was in master and merged hotfix. noticed a mistake and did commit --amend. now when i try to delete the hotfix branch i see 'error: The branch 'hotfix' is not fully merged.'00:51
not sure what to do now :|00:51
cbreak g00s: you amended a merge commit?00:52
that's not a good idea00:52
g00s it was a fast forward00:52
cbreak oh, excellent00:52
then you can decide:00:52
k-man when you merge a branch into master, does it delete the branch?00:52
cbreak are you happy with the new version of the commit you amended?00:52
no00:53
merging only affects the current branch00:53
g00s: if you are happy, you can git branch -D otherbranch00:53
that'll delete it for sure.00:53
mikepack left00:53
g00s cbreak: ok, thanks … i'm new to git, so i'm worried that there is something on hotfix which actually did not get merged.00:54
cbreak yeah, the last commit00:54
SethRobertson `git branch -d` if you want to be safe and only delete it if it was properly merged. Note it will not delete on any other system00:54
cbreak your amending changed the last commit so the last commit on the original branch is in fact not merged00:55
g00s oh00:56
i guess i don't understand the data model well enough, i thought that the fast forward just put the hotfix pointer to the last commit, and the -ammend just changed that commit00:58
zarac left00:58
mcluskydodallas left01:00
cmn but you only changed the branch you were on01:01
Slix` left01:01
pdtpatrick left01:01
lonewulf` left01:01
cmn but if you merged hotfix into master, what the ff merge did was point master to the same commit as hotfix was pointing to01:01
thearthur left01:01
cmn and then you changed that commit, so they're no longer pointing to the same commit01:02
Textmode left01:02
cmn of course, you can't change a commit, what you do is create a new one with the same parent; this may be where your confusion comes from01:03
lonewulf` joined01:03
apok left01:04
g00s cmn … hmm, ok01:04
ryez joined01:05
Eridius left01:06
Eridius joined01:06
diegoviola left01:06
diegoviola joined01:07
g00s cmn, but i only have 2 commits for the whole repo - the first was the initial add, the second was the fix (which was checked in on the hotfix branch). i don't see a 3rd commit01:08
fisted left01:08
cmn how have you looked?01:08
g00s since it was a simple fast forward, i guess thats why i only see two commits after the merge01:08
i just said 'git log'01:08
cmn so there's only two commits on that branch01:08
erkules|away joined01:08
cmn it doesn't mean there aren't more in the repo01:09
git log --graph --decorate --all01:09
or gitk --all01:09
g00s oh my01:09
:O01:09
cmn you've just experienced what often takes more time to get, to !rewriting_public_history01:10
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)01:10
cmn in this case, you did it against yourself01:10
TTSDA left01:11
fisted joined01:11
beneggett left01:11
JEntrep joined01:11
erkules left01:11
dermoth_ left01:12
JEntrep left01:12
mcluskydodallas joined01:12
Vampire0 joined01:14
kcj left01:14
RaceCondition left01:15
kcj joined01:16
ill1cit left01:16
ill1cit joined01:16
Vampire0_ left01:16
jfischoff left01:16
ColKurtz joined01:17
TTSDA joined01:18
Targen joined01:18
ymasory left01:18
g00s cmn. i just read through Pro Git , the branching and merging chapter, and it all seemed so straightforward, now i realize that i have no clue what is going on01:19
this is just a local repo01:19
Lgb left01:20
cmn yes, it's local, but the effect is analogous to what happens when you rewrite public history01:21
you now have two slightly different commits01:21
it's all straightforward as long as you don't start doing odd things like changing commits after you've considered them good and merged them somewhere else01:21
mcluskydodallas left01:22
Lgb joined01:22
goshawk left01:23
xiaotian left01:23
mwrosen left01:24
intripoon joined01:25
dermoth_ joined01:26
Yuuhi left01:26
kadoban left01:27
intripoon_ left01:28
fuzzybunny69y left01:29
fayimora_ joined01:31
kenperkins joined01:33
vitor-br left01:34
williamcotton left01:35
mocramis left01:35
fayimora left01:35
fayimora_fayimora01:35
mocramis joined01:35
kenperkins left01:36
optixx left01:40
pheaver_ joined01:40
pheaver_ left01:40
kerrick joined01:41
Eridius left01:42
davidbanham joined01:42
optixx joined01:42
Chillance left01:43
vitor-br joined01:43
pheaver left01:43
berserkr left01:46
mocramis left01:47
mocramis joined01:48
DofLeFou left01:50
g00s it would be kinda cool, when i go to git-scm.com, that 'Download for the mac' would not show 'Latest stable release: 1.7.10.3' above it … and then you go click download and it starts downloading 1.7.10.1 :|01:51
lolfrenz left01:53
xiangfu joined01:58
gchristensen left02:00
maletor left02:01
kenperkins joined02:02
chihiro left02:03
jrockway left02:03
xpot-station left02:03
ivan\ left02:05
notmypudding left02:06
ivan\ joined02:06
kenperkins left02:08
adityamenon joined02:09
adityamenon90 joined02:10
JStoker left02:12
davidbanham left02:13
adityamenon left02:14
optixx left02:15
jpieper left02:16
pandeiro left02:17
optixx joined02:18
eurek joined02:20
kenyon joined02:20
lonewulf`tp left02:21
pandeiro joined02:22
dhruvasagar joined02:22
twisted` left02:22
Chib joined02:23
twisted` joined02:24
eurek left02:24
hachque joined02:26
ISF joined02:26
igotnolegs left02:30
hachque left02:31
pandeiro left02:32
lonewulf`tp joined02:33
glennpratt joined02:33
cagedwisdom left02:39
eletuchy left02:39
zell left02:39
eletuchy joined02:39
xiangfu left02:40
cagedwisdom joined02:42
fayimora left02:46
fayimora joined02:46
lonewulf`tp left02:47
HyperNerdV2_ joined02:48
Vinnie_win left02:49
DofLeFou joined02:50
HyperNerdV2 left02:51
Vinnie_win joined02:51
HyperNerdV2_ left02:52
gavin_huang joined02:56
eletuchy left02:58
williamcotton joined02:59
optixx left03:00
bitkiller left03:00
mtx_init left03:01
optixx joined03:01
edude03 joined03:02
Dreamer3 left03:02
neurodrone joined03:03
fayimora left03:03
glennpratt left03:04
matthiaskrgr left03:05
dreiss joined03:08
bubbles10101 joined03:08
Lord_DeathMatch joined03:10
zell joined03:11
matthiaskrgr joined03:14
LekeFly left03:16
w09x left03:17
matthiaskrgr left03:18
glennpratt joined03:21
lonewulf`tp joined03:22
mtx_init joined03:24
cakehero joined03:28
optixx left03:28
Sahua joined03:28
twisted` left03:29
traviscj left03:30
williamcotton left03:31
dmnd left03:34
optixx joined03:37
dreiss left03:39
rchavik joined03:39
rchavik left03:39
rchavik joined03:39
brngardner left03:41
Sahua left03:42
kukks left03:42
Dreamer3 joined03:44
Sahua joined03:46
kcj left03:49
ChanServ set mode: +v03:49
OOPMan left03:51
vitor-br left03:51
ipoval joined03:51
enmand left03:55
kcj joined03:58
rurufufuss joined04:01
neersighted left04:03
lonewulf`tb joined04:04
fayimora joined04:04
traviscj joined04:05
williamcotton joined04:09
brokenshakles left04:10
neersighted|AFK joined04:10
neersighted|AFKneersighted04:10
fuzzybunny69y joined04:11
OOPMan joined04:12
fuzzybunny69y left04:13
pheaver joined04:14
HyperNerdV2 joined04:15
fuzzybunny69y joined04:15
brokenshakles joined04:28
palyboy left04:29
palyboy joined04:29
Contexual left04:29
g00s left04:31
madewokherd left04:31
kadoban joined04:33
adityamenon90 left04:33
glennpratt left04:33
adityamenon90 joined04:33
Mowsh left04:41
kenperkins joined04:41
dzonder left04:42
warthog9 joined04:45
EugeneKay drinks04:49
mangdood_ joined04:52
mangdood_ left04:54
barrbrain_ left04:54
adityamenon joined04:57
EugeneKay Opinion. Should I relicense my !deploy hook as WTFPL?04:57
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: http://goo.gl/l68hq04:57
adityamenon90 left04:59
bubbles10101 left05:01
cirwim joined05:01
igotnolegs joined05:02
bubbles1_ joined05:03
HyperNerdV2 left05:03
efreese joined05:04
klj613 left05:05
offby1 EugeneKay: I think that's a ringing endorsement05:05
offby1 has a drink05:05
offby1 Richard Gere has a drink05:06
Shelley Long has a drink05:06
EugeneKay It's my favorite FOSS license05:06
Slush-_ left05:07
snax left05:08
__CA__ left05:08
AlbireoX`Laptop joined05:08
WAA1BUC joined05:09
EugeneKay Tada.05:09
__CA__ joined05:09
offby1 is enjoying his Foxtrot Tango Whiskey.05:09
offby1 Very peat-y.05:09
EugeneKay Mmmm whiskey05:09
bubbles1_ left05:13
dreiss joined05:13
cakehero left05:19
g00s joined05:19
Sigma joined05:20
__CA__ left05:21
bubbles10101 joined05:22
bubbles10101 left05:22
tshauck left05:24
dhruvasagar left05:26
adityamenon left05:26
adityamenon joined05:26
dhruvasagar joined05:27
optixx left05:28
maleknet joined05:29
neurodrone left05:29
optixx joined05:30
pdtpatrick joined05:31
HyperNerdV2 joined05:32
Dave^| joined05:33
_W_ left05:34
_W_ joined05:34
lamont left05:34
goshawk joined05:35
lamont joined05:35
dr_win joined05:39
ashirus left05:40
ashirus joined05:40
fayimora left05:40
ryez left05:40
HyperNerdV2 left05:41
guampa left05:43
adityamenon left05:45
adityamenon joined05:46
pheaver left05:46
bigkm joined05:46
Trodfoot joined05:48
pheaver joined05:49
dhruvasagar left05:51
akiress joined05:51
Trodfoot left05:52
dr_win left05:56
fruers joined05:57
fruers I'm looking to setup Git in an enterprise setting. From my research I'm finding Gitolite to the most popular solution for this and I've hooked it into LDAP authentication and authorisation pretty easily05:58
I've got one question about the Author field05:58
adityamenon left05:58
fruers As it is at the moment, the user sets up their own values locally (in ~/.gitconfig) and that is what appears in the Author field05:58
Is there some feature in Gitolite that can overwrite the Author field that the user has supplied?05:59
adityamenon joined05:59
fruers By default it's not the behaviour I'm seeing, but I'm assuming that this is a common issue to overcome06:00
But on the other hand, my rudimentary understanding of Git gives me the gut feel that this would be an expensive operation on the Gitolite side because it'll have to dive into each commit that is being pushed and change the Author field06:01
Soliton left06:02
kenperkins left06:02
OOPMan left06:03
Robbo_ joined06:03
Robbo_ is there a way I would be able to use github to install stuff on a server that already has content? For example...06:04
Say my structure has a library and js folder06:04
To install I need to put files/folders in each but there is also other stuff in the root06:04
However I want a way so I can just install from the CLI since I setup so many test/dev sites06:05
tommyvyo_tommyvyo06:05
asakura left06:08
edude03 left06:08
asakura joined06:09
dr_lepper joined06:10
dr_lepper left06:10
dr_lepper joined06:10
cirwim Robbo_: see !website06:11
gitinfo Robbo_: [!deploy] 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: http://goo.gl/l68hq06:11
cirwim grr, people keep changing my favourite bot answers: the website I wanted to link to was: http://toroid.org/ams/git-website-howto06:12
Soliton joined06:12
jgoss joined06:12
jgoss left06:12
jgoss joined06:12
Robbo_ Yeah I already do that sort of thing with hg. Was just thinking of a more general thing so I can quickly setup a dev/test site. What I might do is a have a repo with everything installed on it and sub modules and then whenever I want a new site I can do that and then maybe some hooks for config06:14
cirwim hmm06:15
I don't have enough information to help you further06:15
Robbo_ Oh I don't really need more, was just thinking out loud06:15
cirwim :)06:15
everyone is happy then06:15
Robbo_ Was just wondering if there was a hidden feature I could use heh06:15
adityamenon90 joined06:19
mishok13 joined06:21
adityamenon left06:22
fuzzybunny69y left06:24
Fandekasp left06:24
nahhh joined06:25
optixx left06:29
optixx joined06:30
glcrazy joined06:33
davidbanham joined06:34
chayin joined06:37
chayin__ left06:39
gchristensen joined06:39
drizzd joined06:41
DofLeFou left06:43
Axsuul left06:43
fayimora joined06:45
fuzzybunny69y joined06:45
drev1 left06:46
fayimora_ joined06:47
sitaram fruers: could you write up how you did the LDAP hookup and send it to me? Someone was asking for more details than the sparse amount of stuff I had in the docs and since I have no experience with that I could not help06:48
ehsan joined06:48
optixx left06:48
sitaram fruers: as far as the author field is concerned, even if gitolite (or some server side program) could change it, it would change all the SHAs and create conflicts.06:49
fayimora left06:49
fayimora_fayimora06:49
fruers sitaram: yeah, I assume you only want the authentication information?06:50
I'm using smart http so it's just apache configuration06:50
kerrick left06:50
BlindOracle left06:51
optixx joined06:51
lonewulf`tp left06:51
BlindOracle joined06:51
sitaram fruers: oh for some stupid reason i thought LDAP-based pubkeys or whatever; nvm then06:51
fruers I think this represents a problem for Git in an enterprise setting as it essentially means that changes can't be tracked06:51
igotnolegs left06:52
efreese left06:52
fruers Or at least, it relies on potentially bogus information from developers06:52
sitaram fruers: see bottom of src/VREF/EMAIL-CHECK for why I disagree with you06:52
igotnolegs joined06:52
igotnolegs left06:52
fruers ok06:53
igotnolegs joined06:53
lonewulf`tb left06:54
aLeSDGuest8802906:56
b1rkh0ff joined06:58
ToBeFree joined06:59
meridion left07:00
adityamenon joined07:01
adityamenon90 left07:01
ph^ joined07:04
scientes left07:05
adityamenon left07:05
tvw joined07:07
dvide left07:07
optixx left07:09
glcrazy left07:09
glcrazy joined07:10
optixx joined07:10
ferdna joined07:11
whitman joined07:15
sitaram fruers: also understand that most people use gitolite's access control to enforce "who can push to master", and that is always a tested+QA/reviewed series of commits. In some places only the QA guys can push versioned tags (like v1, v2, v3.5, etc), and the presumption is that if they did, they have tested it and are "signing off" on it07:15
g00s left07:16
dr_lepper left07:18
Lgb left07:20
g00s joined07:20
raatiniemi joined07:21
fruers sitaram: I'm in agreement with your comments in in the email check, in that it undermines the fundamentals of DVCS07:21
Lgb joined07:22
fruers I think that my workplace would be satisfied with the enterprise ID that pushed a changeset07:22
h0bbit left07:22
bubbles10101 joined07:22
sitaram which gitolite logs for you07:23
ph^ left07:24
fruers I guess it also depends on the visibility of the author of the push versus the visibility of the author of the commit07:24
pdtpatrick left07:25
fruers If bogus names are appearing everywhere -- which they will with 100+ developers -- then it's a concern07:25
nutron left07:26
gavin_huang left07:27
fruers Hmm... the author email is what I'm actually seeing in `git log`, so the visibility is high07:27
thiago joined07:28
lonewulf`tp joined07:28
BrainFreak__ left07:29
fruers I could enhance the email-check vref to accept any valid username/email address which would bring back some of the DVCS functionality (like offline merges)07:29
DuzyZiemniak joined07:29
gavin_huang joined07:30
sitaram fruers: there's an author id and a committer id. Both of these are stored in the actual repo (and affect the SHA for example). The person who pushed could be someone quite different, although usually it will be the committer. The ID of who pushed a particular commit series is in the gitolite log files. They are plain text files to if this is a concern protect them -- in any case no one should have access to the server (ideally)07:30
fruers What would my last proposal mean for the "pusher"? Say, their push were rejected because a commit they merged had a bogus author info... could they easily fix those commits before pushing?07:33
Just looking up difference between author and committer07:33
Gentlecat joined07:34
Gentlecat left07:35
Gentlecat joined07:36
gchristensen left07:36
danielpunt joined07:39
ph^ joined07:46
Davey joined07:46
Codif joined07:46
adityamenon joined07:47
bolt left07:47
thiago fruers: it could be easy or it could be difficult07:48
it's hard to say generically07:48
if you have a development model like the kernel where there is a lot of merging going on, the "bogus" commit may be a long way down the line07:48
fixing it wouldn't be easy07:48
lg188 joined07:49
danielpunt left07:49
lg188 When I try to fetch from Bitbucket.org I get this error http://pastebin.mozilla.org/165021807:49
sitaram anyone can change anything and push. Identity is not established by what the author and committer fields say. That is why you have signed tags for specific commits (which then implicitly validate all commits below it), or in the corporate world you let the ssh/http userid be the "authenticator"07:49
thiago lg188: are you sure you got the URL right?07:49
optixx left07:49
lg188 thiago: yes i'm right07:50
thiago: sure*07:50
thiago lg188: then it's a server-side problem07:50
lg188: prefer the git:// URL instead07:50
lg188 thiago: i'll try to use it07:50
thiago: ssh right?07:50
fruers I'm doing quite a bit of reading and I'm agreeing with this in a philosophical sense, but I'm wondering how to overcome the negatives07:50
optixx joined07:50
thiago lg188: no, git://07:51
fruers Primarily, developers will want to look at a change and be able to identify who made it07:51
sitaram fruers: most people eventually realise that if you care too much about author/committer info and not about the code they got bigger problems :)07:51
_W_ left07:51
sitaram fruers: yes and that is the author ID07:51
_W_ joined07:51
thiago fruers: that's the author field, usually07:52
sitaram fruers: if you have an author who is consistently using wrong emails he needs to be kicked out. If you cant trust them to get that right how can you accept *code* from them?07:52
thiago fruers: that's why Git keeps it separate from the committer: so the original author, who usually owns the copyright anyway, is tracked.07:52
lg188 well anyway how can I reset my local source to my latest commit? like forget all my changes?07:52
adityamenon left07:53
sitaram thiago: he's talking about people who use a bous email ID as the author (IIUC)07:53
bogus*07:53
thiago if your problem is that you have people who are submitting using bogus, other author addresses, you should kick them out too07:53
sitaram *nod* vigorously07:53
thiago e.g., my commits have Author: Sitaram Chamarty so that sitaram gets the blame, not I :-)07:53
then you should kick me07:53
there are two ways of making sure that doesn't happen, from what I can tell07:54
fruers I agree, it would be great if everyone didn't suck ;)07:54
thiago in a distributed environment, like the kernel, use commit tags: the tags sign the history up until that point (usually, up until another tag) and it's unambiguous who made it07:54
adamm left07:55
fruers But providing DVCS for a large enterprise development team with high turnover I can tell you that they stuff up simpler stuff than this07:55
thiago then you say "I take responsibility for these commits, whether I made them or I applied patches by these other people"07:55
sitaram fruers: enforce the author ID for junior developers (who should be pushing only their own stuff), and make the senior developers accountable for entire commit series not just their commits07:55
thiago the other way I see is when you have a central repository, common in corporate environments07:55
for those, just make a hook enforce that one can only push commits with their own names as Author07:56
sitaram fruers: I have several large teams using git in $DAYJOB (one particularly large one too) and they don't have this issue.07:56
fruers thiago: yeah, this is what sitaram is saying gitolite provides, which is the ultimate auditing, but it's the actual visibility that is the problem. If people have to jump through hoops to find the real committer/pusher/whatever then they're going to freak07:57
sitaram thiago: gitolite has such code you can enable07:57
thiago fruers: the point is that people shouldn't have to verify, if they trust the system07:57
fruers It could be 1 or all 100 that are juniors07:57
thiago fruers: with a central repository, you _have_ to trust the system07:57
et it's kind of an issue in university context. some smartass students will inevitably think "i can put anything as committer? cool, let07:57
glcrazy left07:57
et +'s do that"07:57
sitaram fruers: you're overestimating the problem. No one does this *accidentally* -- it will be intentional and it will get caught pretty quick07:58
glcrazy joined07:58
thiago well, no one does it accidentally for long07:58
fruers Yeah, I agree it's mostly done by accident07:58
thiago each new installation's first few commits might have a bogus author and email address07:58
but it's usually caught quite quickly and, moreover, developers usually *want* the credit07:59
fruers heh07:59
thiago e.g., I can produce nice graphs and tell my manager, "look, I'm the top contributor this month again!"07:59
fruers I'm thinking that some kind of out-of-band nightly job that trawled commit authors could solve the problem07:59
thiago http://www.macieira.org/~thiago/qt-stats/current/qt-all.author.absolute.png :-)07:59
et also, someone might have rsync'ed a repository instead of git cloning it and then accidently commit as the one that he copied from07:59
fruers If it's just a few commits and you can always go back to the gitolite logs to get the pusher, then that's fine08:00
et (if the original one had local name/email settings, as i have for most repos)08:00
fruers It really comes down to having to accept this if you want to use DVCS08:00
davidbanham left08:00
thiago fruers: you don't need to do it nightly. Doing it that way requires matching the push logs to the commits.08:00
fruers: if you do it in a hook, the information is there, at the moment of the push.08:01
pantsman joined08:01
pantsman left08:01
pantsman joined08:01
thiago and gitolite has that setting08:01
fruers So let it pass, but fire off an email to the pusher?08:01
thiago I'd say, no. Block on pushing.08:01
then the dev who has the accidental mistake will simply fix it.08:01
it's usually a new installation and won't be more than a few commits.08:01
davidbanham joined08:02
fruers Ah I see, that would cover 99% of cases. The other 1% of a developer offline merging or cherry picking commits locally would be a minor edge case anyway08:02
thiago for merging, it might be that the hook already does the right thing, if the merged commits are present elsewhere in the repository (a shared branch, for example)08:03
fruers So if they have made 10 commits locally, is it easy enough for them to change the author on those 10 commits?08:03
thiago it's not trivial, but it's doable08:03
and you'll probably have a wiki page somewhere telling them what to do08:03
TheJH joined08:03
Guest1598791926 joined08:03
fruers Ok, I'm convinced, but this will be the first thing in the getting started guide!08:04
davidbanham left08:04
sitaram fruers: I have to go now but bottom line: use the VREF I sent you for junior developers, and as they gain seniority remove them from that list. Although IME/IMO all this is overkill and even in teams of 800+ people working on large products with multiple modules I have never heard this complaint from my users (at $DAYJOB)08:05
fruers sitaram: Thanks for the help and great work with Gitolite, it was much easier to stand up than I was expecting08:06
blacktulip joined08:08
mishok13 left08:09
tvw left08:11
tvw joined08:11
intransit joined08:13
optixx left08:13
kadoban left08:15
optixx joined08:15
ferdna left08:15
g00s left08:17
intransit left08:17
ehsan left08:17
tvw left08:17
Guest42683chrisward08:19
bigkm left08:20
NimeshNeema left08:25
notmypudding joined08:27
luke-jr left08:29
luke-jr joined08:29
optixx left08:30
ipoval left08:30
lonewulf`tp left08:31
optixx joined08:32
fayimora_ joined08:34
pheaver left08:36
fayimora left08:37
fayimora_fayimora08:37
PapaSierra joined08:38
Eax joined08:43
Eax Hey there Gentlefolks - I have tried creating my own remote repo, and it's actually gone quite okay. BUT! The files in the remote repo aren't changed. I can see in git log that the commit/push has gone through, but no files have changed - Have anything heard of this before?08:44
milki Eax: !bare08:46
gitinfo Eax: an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/08:46
milki most likely your remote is a bare repo08:46
Eax It is! So it shouldn't be bare when it's a remote repo?08:46
milki no, it should be bare08:46
are you trying to use git to !deploy a website?08:47
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: http://goo.gl/l68hq08:47
ph^ left08:47
Eax milki: Heh, yeah, I am :)08:47
milki then check out that link above08:47
sq-one joined08:47
Eax milki: Great, many thanks :) Have a swell saturday08:48
milki you too08:48
Eax Thanks :)08:48
Eax left08:48
glcrazy left08:51
SkAzZ joined08:52
lkong joined08:52
Quanteek joined08:54
SkAzZ1 joined08:55
dailylinux joined08:55
lonewulf`tp joined08:55
dailylinux hi, i have a git URL: git://gitorious.org/owncloud/apps.git, and wonder if there is a way to git pull just an application from there without getting all?08:56
SkAzZ left08:56
AlbireoX`Laptop left08:58
goshawk left09:00
ixti joined09:01
wereHamster dailylinux: no09:01
dailylinux hmm, ok09:01
milki well, not with the git url09:01
go to the source tree via browser09:02
and get the ddl link for it09:02
d0k joined09:03
khmarbaise joined09:04
w09x joined09:04
_iron joined09:05
dailylinux milki, ok. like http://gitorious.org/owncloud/apps/trees/master/files_odfviewer ?09:07
that's the app i need09:07
zell left09:07
khmarbaise left09:07
h0bbit joined09:08
dailylinux just thinking if i can add this url in my .git/config file and get updates :)09:09
wereHamster dailylinux: no09:09
git doesn't work that way09:09
dailylinux ok09:10
i can't even add in that url in my config file and do something like 'git pull origin files_odfviewer' ?09:10
Shusshu joined09:11
Jackneill joined09:11
Jackneill left09:11
Jackneill joined09:11
Codif left09:11
dailylinux ah, i can't09:12
this is not a .git url09:12
wereHamster no09:12
git doesn't work that way09:13
ryez joined09:13
dailylinux any idea how i can achieve this?09:14
can i 'merge' this app into my git config?09:14
maybe?09:14
Sahua left09:14
wereHamster just clone the whole repo09:14
dailylinux ok, then?09:15
wereHamster then cd files_odfview; then do whatever you need to do09:15
dailylinux ok09:15
i'll try that09:15
thanks a lot! wereHamster09:15
wereHamster was that 'solution' not obvious?!?09:16
adityamenon joined09:16
dailylinux yes it was09:16
but i was looking for a more "correct" one09:16
since i already a git config and wanted to get all updates together when i do git pull09:17
ryez hmm, cherry-pick doesn't have a `-N` option for not even stage the picked change09:18
milki cherry-pick and soft reset?09:19
ryez milki, yes, looks that's way to go09:20
I tried `git cherry-pick -n`, but still have to soft reset09:20
to unstage it09:21
adityamenon left09:22
ryez what about proposing such option?09:23
milki good luck?09:24
feel it out on the mailing list if you want09:24
seeing as its only two commands, i dont know if people will care enough09:24
ryez yes, we need luck, anyway, I can try09:26
Mkaysi joined09:26
ryez this way cherry-pick would only be faster with `-N`09:26
blacktulip left09:28
ryez will pull request from github be accepted?09:28
Dimeetrees joined09:29
ill1cit left09:29
igotnolegs left09:31
Shusshu left09:31
_br_ Does anyone here have an opinion about git-annex? I mean in general for usage or you suggest an alternative?09:31
ryez ah, git is already on github, I remember it was on kernel.org in the past, I'm out09:32
martinjlowm joined09:36
BarryCrayon joined09:37
optixx left09:39
optixx joined09:40
SkAzZ1 left09:41
ivan12348 joined09:41
BarryCrayon left09:41
ivan12349 joined09:41
ivan12350 joined09:41
ivan12345 left09:44
ivan12347 left09:44
bigkm joined09:45
ivan12346 left09:45
TheJH left09:48
Davey left09:49
RaceCondition joined09:49
barrbrain_ joined09:51
balau joined09:51
cirwim left09:52
enr joined09:55
drizzd left09:57
Quanteek left09:57
gitinfo set mode: +v10:00
lkong hi, where do you see the message identifier for an email send with git-send-email in order to use it in --in-reply-to ?10:01
is there an option that gives you an history of the sent emails ?10:02
nioncode joined10:06
bolt joined10:06
mishok13 joined10:08
Davey joined10:10
bolt left10:11
bolt joined10:11
Davey left10:12
Element9 joined10:14
intransit joined10:15
dailylinux left10:17
nahhh left10:18
intransit left10:19
sq-one left10:20
gemmes joined10:20
gemmes left10:21
bjensen joined10:22
airborn joined10:23
bjensen can anyone point me to a resource that explains the most safe way to merge branches? I don't want any auto merging of files this time..10:23
dreiss left10:23
RaceCondition left10:24
twisted` joined10:24
pantsman left10:25
matthiaskrgr joined10:25
Sky[x] joined10:26
martinjlowm left10:27
twisted` left10:28
Bigcheese left10:29
Y_Ichiro left10:29
ph^ joined10:30
nioncode left10:30
nioncode joined10:30
jspiros left10:33
milki so you want to discard all changes that touch existing files in the destination branch?10:34
thats...odd10:34
jspiros joined10:34
milki one way you could do that is add another commit to the branch that simply deletes files that exist in the destination branch...10:35
Tinti_ joined10:36
nioncode left10:36
nioncode joined10:36
matthiaskrgr left10:38
jspiros left10:40
silv3r_m00n joined10:40
jpieper joined10:40
silv3r_m00n if I go a git fetch , and then I don't want the changes that came in , can I use git reset --hard HEAD to simply unfetch ?10:40
canton7 silv3r_m00n, 'git fetch' doesn't touch any of your local branches10:40
silv3r_m00n what does it do then ?10:41
canton7 it updates the relevant remote-tracking branches (the ones that start with e.g. 'origin/'), which act as a record of the state of the remote branches10:41
wereHamster ryez: no, pull requests on github will *not* be accepted10:41
ryez: see the repo description on github...10:42
silv3r_m00n canton7: I did a git fetch and it showed 0d27780..42b9cec master -> origin/master now how to do I view what came in ?10:42
canton7 silv3r_m00n, git log origin/master10:42
silv3r_m00n and by the way when I do git branch , it shows * and master but nothing called origin/master10:42
canton7 that line says that the local branch origin/master was updated to contain what the remote master branch contains10:43
silv3r_m00n, git branch -a10:43
silv3r_m00n what does that do ?10:43
wereHamster silv3r_m00n: man git-branch10:43
gitinfo silv3r_m00n: the git-branch manpage is available at http://git-scm.com/docs/git-branch.html10:43
silv3r_m00n left10:43
canton7 lists all branches, including remote ones10:43
silv3r_m00n joined10:44
canton7 in case you missed that, git branch -a lists all branches, including remote-tracking ones10:44
hwrdprkns left10:44
wereHamster in case you missed that, the man page describes each and every single option that git branch supports10:45
hwrdprkns joined10:45
silv3r_m00n so once I fetched , I should do git checkout origin/master to check the incoming things ? and how do I compare the differences between my local master and origin/master ?10:45
wereHamster git diff master origin/master10:46
canton7 no. never checkout a remote-tracking branch (e.g. origin/master)10:46
(unless you know about detached heads)10:46
silv3r_m00n canton7: then ?10:46
I just did git checkout origin/master10:46
canton7 oh dear, if it's going to be one of these cases, I'm not going to get involved. Listen to wereHamster and read man git-log and man git-branch10:47
gitinfo the git-log manpage is available at http://git-scm.com/docs/git-log.html10:47
the git-branch manpage is available at http://git-scm.com/docs/git-branch.html10:47
silv3r_m00n canton7: fatal: ambiguous argument 'master': both revision and filename10:47
Use '--' to separate filenames from revisions10:47
I get that when I do a git diff master origin/master10:47
wereHamster do as git tells you10:47
Yuuhi joined10:49
ashirus_ joined10:51
ashirus left10:53
jspiros joined10:54
silv3r_m00n left10:54
arietis joined10:54
bigkm left10:55
bigkm joined10:56
adityamenon joined10:56
JStoker joined10:56
preflex left10:57
preflex_ joined10:58
preflex_preflex10:58
lolfrenz joined10:59
stephanmg joined11:01
RaceCondition joined11:02
umc joined11:02
DuzyZiemniak left11:03
enr left11:04
enr joined11:04
Raging_Hog joined11:06
Resure joined11:06
mneorr joined11:10
bob2 and try not to make a file called 'master'11:10
flavius joined11:14
ryez left11:15
project2501a joined11:16
txomon|home joined11:17
paul424 joined11:19
fuzzybunny69y left11:19
paul424 git branch --track development refs/remote/origin/development does not work11:20
what's wrong ?11:20
raatiniemi left11:20
cmn remotes is misspelt11:21
ns5 joined11:21
ns5 how to find out the origin repo location/url?11:22
Tinti_ left11:22
Tinti_ joined11:22
cmn git remote -v11:23
ns5 origin [email@hidden.address] (fetch)11:23
origin [email@hidden.address] (push)11:23
adityamenon left11:23
ns5 how do I modify the ip address?11:23
the git server's IP has changed11:23
cmn man git remote11:24
gitinfo the git-remote manpage is available at http://git-scm.com/docs/git-remote.html11:24
cmn and using DNS is also a good idea11:24
bob2 maybe look at creating some sort of system to map permanent names to ip addresses somehow11:24
cmn you should make a startup out of that idea, sounds useful11:25
sitaram ns5: you could just edit .git/config11:30
carefully... :)11:30
ns5 sitaram: thanks, and thanks for creating gitolite11:31
harish left11:31
sitaram you're welcome!11:32
flavius left11:35
bigkm left11:36
jspiros left11:36
TheJH joined11:37
felipec joined11:38
raatiniemi joined11:38
Sigma left11:38
felipec how can I find the root commits of a list of revisions? master..topic (suppose there's 3 commits whose parent is the merge base of master and topic)11:39
cmn what do you mean by root commits here?11:40
madsy joined11:41
madsy left11:41
madsy joined11:41
stephanmg left11:43
felipec cmn: the last ones in the graph11:44
RaceCondition left11:45
felipec cmn: like, if you just do 'git log' you will see all the commits until there's a commit without parent (root)11:45
and there might be more than one root11:45
RaceCondition joined11:46
cmn yeah, but that doesn't have much to do with what you get when you say master..topic11:46
nahhh joined11:46
felipec cmn: how is it any different? it's still a graph, which can have more than one root11:46
cmn because the commits themselves do have paretns11:47
though you may be able to get an empty %P if the expansion is done after the simplification11:47
felipec cmn: but they are not part of the committish query11:47
cmn which is why you may get empty %p or %P after simplication11:48
but if you look at the actual commit, you won't be able to tell it's a root commit11:48
simesy joined11:49
felipec cmn: why would %p change after simplification?11:49
dinduks_ joined11:49
felipec (it doesn't)11:50
cmn because the commit's metadata are temporarily rewritten so they fit in the graph you asked for11:51
so it's possible that the parent commits would change11:51
felipec cmn: but that's not what --format prints; it prints the real metadata11:52
Lord_DeathMatch left11:52
cmn then you'll have to add your negative commits to a list of hashes you consider to make a commit parentless11:52
maybe the simplication only happens at that scale when you filter by paths... I have a vague idea that it should work11:53
ryez joined11:54
chrisward left11:54
jspiros joined11:56
sirdancealot2 left11:56
AeroNotix joined11:56
chrisward joined11:56
sirdancealot2 joined11:57
chriswardGuest2305811:57
AeroNotix I'm trying to get apache+git working. I've used the config which is on the archwiki for Git. I've mv'd some local copies of a git repo into my $GIT_SRV directory, and then tried to pull/clone using the url but it fails with "request not supported: $GIT_SRV_DIR" in the apache log11:58
felipec I guess the only way is to log with --boundary, track each commit's parent, and find out if that parent is a boundary11:59
thiago AeroNotix: first of all, reconsider and use ssh12:00
TheJH left12:01
jspiros left12:01
AeroNotix thiago: why?12:02
thiago AeroNotix: because it's much easier to use, more secure and easier to make work12:02
git was designed to work with ssh12:02
Chillance joined12:02
gusnan joined12:02
AeroNotix thiago: Do you have some tutorials/resources that you could link to ?12:02
thiago nothing except the git basics12:03
AeroNotix right12:03
RaceCondition left12:03
setmeaway left12:04
RaceCondition joined12:05
lamont left12:09
bob2 and gitolite if you want people writing to it12:09
felipec left12:09
optixx left12:09
gavin_huang left12:10
lamont joined12:10
h0bbit left12:10
AeroNotix thiago: well, that took all of 5 seconds to do12:11
optixx joined12:11
AeroNotix thiago: thanks12:11
thiago: Now, using this set up. I.e. a directory which contains git --bare init'd folders. Is there a web-frontend available for it?12:12
I'm trying to move my workplace onto using version control12:12
thiago gitweb12:13
AeroNotix thiago: thanks12:13
erichynds joined12:13
AeroNotix ahmahgahd this is pretty ql12:15
I think I'll finally be able to start using git at work12:15
xjiujiu joined12:15
enmand joined12:16
jspiros joined12:17
RaceCondition left12:19
neurodrone joined12:19
enmand left12:19
enr left12:20
enr joined12:20
erichynds left12:20
Milossh left12:21
jspiros left12:21
lamont left12:22
priori99 joined12:22
jspiros joined12:22
maleknet left12:22
RaceCondition joined12:23
felipec joined12:24
moltar_net1 joined12:25
gitinfo set mode: +v12:25
moltar_net1 Hi! I'm getting the "To prevent you from losing history, non-fast-forward updates were rejected" error, but when I do a pull, it creates an empty merge commit. Why such a thing?12:25
nahhh Is it possible to add directories which has git repositories within git repository _without_ submodles? For some reason that directory which is subrepository is empty...12:26
kerrick joined12:27
spyro left12:27
DoniRS joined12:27
lamont joined12:28
bob2 moltar_net1, the content is not the important thing12:28
lamont left12:28
lamont joined12:28
bob2 nahhh, yes but git will ignore them12:28
nahhh Why?12:28
moltar_net1 bob2: yeah the ref I guess is the important thing, but I still can't wrap my head around why this has happened. I am the only one using it.12:29
bob2 why what?12:29
RaceCondition left12:29
bob2 moltar_net1, well, you can see why it happened12:29
moltar_net1, 'git fetch --all ; git log master ; git log origin/master'12:29
moltar_net1 However "git pull --rebase" solved the problem :)12:29
nahhh bob2, take a look at if you can: http://pastebin.com/H5wV1URS12:29
bob2 moltar_net1, the second will show a commit (or commits) you didn't have in the first log12:29
moltar_net1, don't blindly do that, you need to know why extraneous commits appeared12:29
nahhh "vendor/doctrine" is a subrepository, but it's not managed by git submodules.12:30
spyro joined12:30
spyro left12:30
spyro joined12:30
Lord_DeathMatch joined12:30
enmand joined12:31
moltar_net1 hm I don't even see any differences :/12:31
bob2 git log master..origin/master12:32
enmand left12:32
bob2 git log origin/master..master12:32
note that this isn't of any use now if you if blindly did a rebase12:32
moltar_net1 oh I see yeah, I guess rebase killed all the differences, eh?12:32
I wonder if I lost anything :|12:32
now I am paranoid :|12:32
ha I do however have another copy on production server, but its not entirely up to date.12:33
priori99 left12:33
jspiros left12:34
fruers left12:35
herock joined12:37
herock left12:37
trying2code joined12:37
zinjacoder joined12:37
trying2code I copied pasted new folders and git doesnt recognize them12:38
nor does it do git add .12:38
how do i track all the files/folders from beginning?12:38
bob2 need to be more specific12:38
since 'git add .' will add them12:38
trying2code git status says, on add portion, add ./12:39
i do that, git add .12:39
and git push12:39
it only pushes 3 files12:39
not anything else12:39
bob2 erm12:39
cbreak git add . will only add the current folder12:39
bob2 stop and think for a sec12:39
since you didn't commit anything12:39
cbreak and git add . has NOTHING to do with pushing12:39
trying2code (forgot to mention, i did commit after adding)12:39
cbreak also, git doesn't track folders directly, only files12:39
if you committed, do a git log -p12:40
are the files you expect there?12:40
if not then you failed to add them12:40
kenperkins joined12:40
klj613 joined12:40
trying2code the 3 files are there,12:40
so how do i add the folders to my repo12:41
cbreak not at all12:41
git only tracks files12:41
put files into them and add the files12:41
trying2code got it12:41
thank you12:41
cbreak they can be empty12:41
(the files)12:42
ToBeFree left12:43
flaguy48 left12:46
trying2code if I care about the folder structure, just as being able to recover folders (non empty)12:46
should i be using svn and not git?12:46
martinjlowm joined12:46
khmarbaise joined12:48
bob2 depends12:48
ns5 left12:49
Vampire0_ joined12:49
ns5 joined12:49
trying2code If I store everything in remote directory, I guess git pull should resolve that12:50
bob2 no12:50
trying2code even if I have not made new pushes?12:50
neurodrone left12:51
dfr|mac joined12:51
adityamenon joined12:51
Vampire0 left12:53
raatiniemi left12:53
jspiros joined12:54
Element9 in which situation can the HEAD get detached on cheching out the branch?12:54
Vampire0_ left12:54
Vampire0 joined12:54
kpreid Element9: Precisely when you specify something other than a branch name.12:54
thiago Element9: when you check out something that isn't a branch12:55
Element9 but it is a branch. a remote branch12:56
Lord_DeathMatch left12:56
thiago then it's not a branch12:56
only local branches are branches12:56
sirdancealot left12:57
Element9 thiago: aha got it. thanks12:58
AeroNotix hmm, I can't get gitweb working. I have apache serving the pages, that works. Except it keeps saying '404 no projects found' the directory is chmod 777 so it's (hopefully) not a permission issue. Any ideas?12:58
bremner other than doublechecking the paths in gitweb.conf, not really.12:58
AeroNotix bremner: the path is the same path I'm using to ssh and push/pull from with that12:59
bremner and an absolute path?12:59
AeroNotix bremner: yup12:59
$projectroot = "/opt/gitrepos";13:00
bremner are you using the "scan the directory" option, or an explicit project file?13:00
AeroNotix bremner: neither?13:00
bremner: is this in the gitweb.conf?13:00
bjensen left13:00
bremner AeroNotix: yeah, there should be a comment13:00
AeroNotix hmm13:01
2 sec13:01
bremner: what do you mean "should be a comment" ?13:02
airborn left13:02
bremner in gitweb.conf, explaining which is the default.13:02
AeroNotix bremner: I didn't have a default gitweb.conf13:03
bremner: I had to create it13:03
NimeshNeema joined13:03
bremner $projects_list = $projectroot;13:03
AeroNotix bremner: I'll try :)_13:04
bremner: no. How can I make sure that the gitweb.conf is being read?13:04
it doesn't make any logs :/13:05
bremner dunno. You might have to look at the gitweb source to turn on debugging.13:05
AeroNotix aha13:05
jackh joined13:06
davidbanham joined13:07
AeroNotix :(13:08
ronniy joined13:09
AeroNotix omfg13:10
OMFG13:11
I had created a file named git-web.conf instead of gitweb.conf13:11
Thanks all for putting up with that stupidity13:11
paul424 left13:11
Sahua joined13:12
felipec how can I find out the commits in certain branch that are not in any other branches?13:12
thiago git log thatbranch ^otherbranch1 ^otherbranch2 ^otherbranch313:14
be careful if ^ is special in your shell13:14
felipec thiago: thats not what I want13:14
thiago felipec: that's what you asked13:15
spyro left13:15
thiago felipec: if it's not what you wanted, please rephrase differently13:15
niki joined13:15
TheJH joined13:16
felipec thiago: I'm not going to list 100 branches13:17
git show-branch --independent13:17
pantsman joined13:17
thiago felipec: then write a script13:18
spyro joined13:18
royale1223 joined13:18
thiago felipec: maybe what you want can be done with git branch --merged or --contains13:18
bremner felipec: if you want to catch cherry picking, you'll need to use git patch-id13:19
felipec thiago: why? the command I'm looking for is 'git show-branch --independent' <- that is what I wanted13:19
dfr|mac left13:19
bremner and a brute foce loop.13:19
enr^ joined13:19
bob2 that seems pretty niche13:19
Lgb left13:20
bob2 since it just tells you which branches aren't prefixes of the others13:20
thiago felipec: well, that's not exactly what you asked for originally, but ok13:20
w09x left13:20
enr left13:21
Lgb joined13:22
felipec thiago: that is *exactly* what I asked: --independent: Among the <reference>s given, display only the ones that cannot be reached from any other <reference>.13:22
ruli left13:22
felipec thiago: replace reference with branch and it's exactly what I asked13:22
m1sc felipec: you asked for commits, no.?13:22
Guest23058chrisward13:22
ruli joined13:23
thiago felipec: you asked "how can I find out the commits in certain branch that are not in any other branches?"13:23
felipec: there are multiple ways to do that13:23
flaguy48 joined13:23
Gentlecat left13:24
nahhh left13:25
lkong left13:26
ehsan joined13:27
Lord_DeathMatch joined13:27
Resure left13:29
felipec thiago: of course, I could fire gitk and find out, but *obviously* I would want the simplest13:29
m1sc: it shows the commits13:30
thiago felipec: most people have a handful of branches, so my first answer would be ok13:30
felipec: git show-branch isn't a common command13:30
RaceCondition joined13:30
madewokherd joined13:30
adityamenon90 joined13:31
felipec I didn't ask for a common command13:31
thiago I'm not going to discuss with you13:32
vekexasia joined13:32
vekexasia hello all13:33
I've followed the git subtree13:33
guide13:33
fisted left13:33
vekexasia and I've 2 subtrees13:33
for 2 different external repos13:33
the last one I setted up13:33
adityamenon left13:33
vekexasia doesnt merge in the correct directory13:34
Can anyone help?13:34
bitkiller joined13:34
Milossh joined13:34
EugeneKay I've found that Johnny Walker makes it a lot easier13:34
fisted joined13:34
vekexasia EugeneKay: are you talking to me?13:35
EugeneKay Sure13:35
Bigcheese joined13:35
vekexasia EugeneKay: hmm can you explain it better ?13:36
EugeneKay Whiskey. Ethanol. Intoxicating bev-e-rages.13:36
vekexasia lol?13:37
bubbles10101 left13:37
EugeneKay http://eugenekay.com/img/codingdrunk.png13:37
vekexasia Lol eugene i would love to talk about drunkness with you13:37
but I'd really like to figure out how to solve my issue :)13:37
and i'll buy the book :P13:38
PapaSierra by N. E. Briated?!13:38
herdingcat joined13:38
EugeneKay My experience is that with anything sub-(modules, trees, marines), it's best to start with the bottle.13:38
vekexasia Already tried :P13:38
thiago goes for the ice tea then13:38
EugeneKay spikes thiago's with gin13:38
vekexasia got drunk threw up and here again13:38
:P13:38
matthiaskrgr joined13:39
EugeneKay Sadly, however, I must get dressed and go work the fish fry at my VFD.13:39
vekexasia :(13:39
can anyone else help me with git subtree?13:39
tshauck joined13:41
brngardner joined13:41
Tinti_ left13:44
JoeDevC joined13:45
xjiujiu left13:45
JoeDevC left13:45
xjiujiu joined13:46
royale1223 left13:46
PapaSierra when working with a cms you're managing files and data. i've got my files in git, but what about the data? what are the cool kids doing/13:46
thiago files contain data13:47
PapaSierra sorry, rephrase: "database contents"13:48
felipec hmm, no, actually 'git show-branch --independent' doesn't list the commits, it's pretty easy to find out with 'git show-branch', but doesn't look like there's a direct command13:48
matthiaskrgr left13:48
kcj left13:49
ehsan left13:49
Sigma joined13:50
RaceCondition left13:50
royale1223 joined13:51
PapaSierra thiago, any ideas how to handle the database contents question?13:52
thiago PapaSierra: dump the contents to files and commit them to git13:52
tyatpi left13:53
PapaSierra thiago, ok that was my fallback plan. i was just wondering if there was a framework that hooks into a git pre-commit or something, if not your idea is just fine, even if manual13:53
ehsan joined13:54
DuzyZiemniak joined13:55
Milossh left13:56
royale1223 left13:56
diegoviola left13:58
squeeks joined13:59
pantsman left13:59
dr_lepper joined13:59
squeeks Is there some sane way to apply config to all git repos in various subfolders?14:00
lkong joined14:00
Robbo_ left14:00
cmn a for loop or an include statement in their configs14:02
include is new in 1.7.1014:03
felipec I guess there is no log format to display what name-rev displays =/14:03
nioncode left14:05
tyatpi joined14:05
ryez left14:07
dr_lepper left14:09
blacktulip joined14:09
sh0ne joined14:13
iAFK joined14:14
optixx left14:15
edude03 joined14:15
Milossh joined14:15
dr_lepper joined14:16
lapistano left14:16
lapistano joined14:16
optixx joined14:17
iAFK left14:18
iAFK joined14:18
Robbo_ joined14:18
ns5 left14:18
iAFK left14:18
herdingcat left14:18
asparagui joined14:20
lkong left14:21
herdingcat joined14:21
enmand joined14:23
dralston joined14:23
jason237 left14:25
kerrick left14:26
j416 joined14:27
dralston Hello, all. I have had a thought, and I want to know if it's stupid. So, rebasing a branch that you push upstream borks things up, since the resulting commit isn't a fast-forward of the upstream branch.14:27
herdingcat left14:28
FernandoBasso joined14:28
dralston So, why not 1) create a temporary branch 2) rebase it 3) Get a diff/patch between the rebased branch and the original branch, and 4) apply that patch to the original branch?14:28
Wouldn't that get the the same result as a rebase without the messy upstream business?14:29
thiago no14:29
bob2 ie bonghits14:30
herdingcat joined14:30
thiago it would get you the same tree state at the end, but it would not be the same thing14:30
for one, you'd have lost all the commits14:30
ipoval joined14:30
m1sc dralston: it's not about "isn't a fast-forward" -- !rewrite14:30
gitinfo dralston: [!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)14:30
edude03 left14:30
jackh left14:31
cmn dralston: the point of rewriting the history is for you to have a series of patches that make more sense to the reader14:31
dralston Thanks, important points I had forgotten.14:32
cmn: If you've made drastic enough changes, from upstream, though, merge can botch things. Rebase nicely avoids that, but obviously brings its own issues to the table.14:33
(Please forgive the comma incontinence)14:34
simesy left14:34
cmn huh? rebasing is a smaller set of merges14:34
from the conflict point of view14:34
simesy joined14:34
kenperkins left14:34
RaceCondition joined14:34
dinduks joined14:35
cmn and if you rebase you have to resolve them over and over, merging only the one time14:35
kenperkins joined14:35
dralston Yes, true. Alright, I am convinced that my idea is merely "sleepy logic". Thanks! :)14:36
dinduks_ left14:37
canton7 moltar_net1, what command are you typing to do a pull?14:38
moltar_net1, oops, was looking at some dim and distant part of the scrollback, ignore me14:38
moltar_net1 canton7: thanks anyways :)14:38
RaceCondition left14:38
shreya joined14:40
bondar joined14:40
Sigma left14:40
kukks joined14:41
kadoban joined14:41
bondar left14:41
alberto56 left14:43
guampa joined14:44
dralston left14:45
rchavik left14:45
alberto56 joined14:45
gchristensen joined14:46
edude03 joined14:47
edude03 left14:48
Vinnie_win Is there a simple way to create a new branch with no ancestry?14:48
bob2 yes14:49
Vinnie_win ...and?14:49
bob2 but that's exceedinly rare to want and most of the time people ask about it it is because they're very confused14:49
Vinnie_win "gh-pages".14:49
bob2 git branch --help14:49
canton7 it's in man git-checkout14:49
gitinfo the git-checkout manpage is available at http://git-scm.com/docs/git-checkout.html14:49
bob2 oh, oops14:50
squeeks left14:50
alberto56 left14:50
Vinnie_win git checkout -b branch --orphan followed by git rm -rf14:50
berserkr joined14:50
herdingcat left14:51
Vinnie_win nope its "git checkout --orphan branch"14:51
*sigh* thta didn't create the branch...14:52
cagedwisdom left14:52
Slix` joined14:52
canton7 Vinnie_win, you need to commit before the branch is born14:52
Vinnie_win Yeah that was the ticket14:54
RaceCondition joined14:55
hellopat joined14:55
mh_le left14:56
juvenal left14:56
dtang joined14:57
adityamenon90 left15:02
adityamenon joined15:02
Sigma joined15:02
davidbanham left15:03
trying2code left15:04
xjiujiu left15:05
AlbireoX`Laptop joined15:05
gusnan left15:05
jaseemabid joined15:07
Fernando1asso joined15:07
HyperNerdV2 joined15:08
dubellz joined15:09
adityamenon90 joined15:10
johnanderson joined15:10
Chaser left15:10
FernandoBasso left15:10
dubellz left15:10
oriba joined15:11
adityamenon left15:13
cakehero joined15:14
Targen left15:17
sh0ne why pushing to remote repo (if a repo was not created bare but with the existing source) is not recommended?15:18
thiago because people expect something that git doesn't do15:18
adityamenon joined15:19
thiago did you read the FAQ?15:19
adityamenon90 left15:19
cbreak there should be a robot link on faq non-bare15:19
gitinfo Pushing to non-bare repositories is discouraged; more details available at http://jk.gs/gitfaq#non-bare15:19
FernandoBasso joined15:20
jaseemabid left15:20
akiress left15:22
Fernando1asso left15:22
fayimora left15:23
sh0ne thiago: thank you, today is my first day with Git (well, first day with any CVS), so I do have some confusion. I DLed 'Pro Git' and started to read it, but I hurried with some assumptions I suppose.15:23
zinjacoder left15:23
cakehero left15:23
fayimora joined15:23
thiago left15:23
p3rror left15:24
FernandoBasso left15:24
FernandoBasso joined15:24
zinjacoder joined15:25
adityamenon90 joined15:25
johnanderson left15:25
troyt left15:26
cakehero joined15:27
_br_ sh0ne: gitcasts is also pretty neat for beginners15:28
adityamenon left15:29
_mpu joined15:30
_mpu Hi, how can I see the number added/removed between working tree and HEAD?15:30
And between two commits?15:30
cmn diff --stat HEAD15:30
neurodrone joined15:30
brngardner left15:31
_mpu Oh, thank you, that's it.15:31
brngardner joined15:32
adityamenon joined15:34
gusnan joined15:35
drigo joined15:37
brngardner left15:37
adityamenon90 left15:37
ehsan left15:38
jaseemabid joined15:40
dreiss joined15:40
p3rror joined15:41
AeroNotix another small problem. I've added gitosis and that's working fine. I have access and can create and push/pull to the remote repo15:42
however, I cannot get the repos to show up in gitweb15:42
ph^ left15:42
tdubz joined15:42
AeroNotix I even added the http user to the git grou15:42
group15:42
That didn't work15:42
I have the $projectroot pointing to the repo which gitosis uses15:42
ph^ joined15:42
AeroNotix then I have the gitweb = yes in the gitosis config15:42
fayimora_ joined15:43
AeroNotix anything I am missing?15:43
fayimora left15:43
fayimora_fayimora15:43
preflex left15:43
Shusshu joined15:43
jgoss left15:43
preflex joined15:44
sporous left15:45
bob2 need to clarify what "didn't work" means15:45
trying2code joined15:45
sporous joined15:45
fayimora left15:45
krnl joined15:45
fayimora joined15:46
j416 left15:46
AeroNotix bob2: as in it tells me 404 no projects found15:46
bob2: interesting... It's a permissions issue15:47
ph^ left15:47
AeroNotix bob2: I just ln -s the /gitosis/repositories into a chmod 777 folder outside that dir... it works15:47
gasbakid joined15:48
AeroNotix bob2: but it's throwing a python traceback for the gitosis-run-hook15:48
bob2 that no one but you can see15:48
bpaste.net15:48
Milossh left15:48
AeroNotix bob2: No, I read/write python quite well, I can debug from here. Thanks15:48
vekexasia left15:49
tdubz left15:49
tdubz joined15:49
tdubz left15:49
trying2code left15:49
cybersphinx joined15:50
fayimora_ joined15:52
preflex left15:52
the_cybersphinx left15:52
fayimora_ left15:53
preflex joined15:53
sporous left15:53
fayimora_ joined15:53
FernandoBasso left15:54
sporous joined15:54
duckxx joined15:55
fayimora left15:55
fayimora joined15:56
Dave^| left15:57
AeroNotix left15:57
adityamenon90 joined15:57
fayimora_ left15:58
adityamenon left16:00
jexmex left16:03
juvenal joined16:03
pheaver joined16:07
gasbakid left16:08
m1sc AeroNotix: !gitosis16:11
gitinfo gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite16:11
agile left16:11
matthiaskrgr joined16:13
fuzzybunny69y joined16:13
spaceonline joined16:15
sporous left16:16
sporous joined16:16
preflex left16:17
preflex_ joined16:17
Chib left16:18
preflex_preflex16:18
matthiaskrgr left16:18
hitman_ joined16:19
sirdancealot2 left16:20
preflex_ joined16:20
gitinfo set mode: +v16:20
hitman_ I'm trying to apply a patch to my git repo with "git am --signoff < '/home/miles/messaging.diff'" but I get an error16:20
glennpratt joined16:20
agile joined16:21
hitman_ it says "previous rebase directory /var/www/html/fusem/.git/rebase-apply still exists but mbox given."16:21
what am I doing wrong?16:21
offby1 hitman_: I wonder if git thinks you're still in the middle of a rebase16:21
try "git status"16:22
hitman_ `nothing to commit` offby116:22
sitaram git rebase --abort16:22
hitman_ have never tried rebasing and not sure what that is.. it was in advanced section in a git book so I figured I can read about it later16:23
preflex left16:23
sitaram if you're sure you didn't have one going already16:23
preflex_preflex16:23
offby1 it's possible that "git am" does a rebase behind your back16:23
hitman_ sitaram: It says "It looks like git-am is in progress. Cannot rebase."16:23
sitaram git am --abort16:23
hitman_ no output.. must have worked sitaram16:24
sirdancealot2 joined16:24
tshauck left16:24
hitman_ btw, the patch is for an older version of my code.. should I rever to that version and then try applying?16:24
gasbakid joined16:25
JackWinter left16:25
sitaram depends... try it on the current version16:25
trying2code joined16:25
offby1 I never know what to do in that case.16:25
sitaram if you get conflicts solve them16:26
offby1 patches don't, as far as I know, include a reference to the commit from which they were made.16:26
hitman_ oh.. it says "Patch does not have a valid e-mail address." ... it had said that once before the rebase error crept in16:26
offby1 if that "diff" was created by the "diff" program, then you shouldn't use "git am"16:26
sitaram then maybe you want 'git apply' instead of 'git am'16:26
juvenal left16:26
offby1 get your own brain etc etc16:26
hitman_ how do I refer to that commit?16:27
in git apply?16:27
AlbireoX`Laptop left16:28
nadavoid joined16:28
juvenal joined16:29
offby1 dunno16:29
I could read the man page -- but then so could you16:29
asparagui left16:29
sirdancealot2 left16:30
offby1 hitman_: in fact, I don't even understand your question. What does "refer to that commit" even mean here?16:30
sirdancealot2 joined16:30
hitman_ left16:32
duckxx left16:33
JackWinter joined16:33
nadavoid left16:33
milki some asked something similiar16:34
how do "apply" a commit rather than than apply a patch16:34
closest thing is cherry-pick -n and reset16:34
TheJH left16:35
spaceonline left16:37
jfischoff joined16:37
gasbakid left16:37
j416 joined16:37
darkmagex6 joined16:38
dreiss left16:38
glennpratt left16:38
HyperNerdV2 left16:38
rchavik joined16:39
duckxx joined16:42
Targen joined16:43
ehsan joined16:43
dinduks left16:44
jeppy left16:44
tshauck joined16:44
l0ll0lll joined16:44
enr^ left16:45
ehsan left16:45
l0ll0lll hi all. I've done several stashes, and now need to view the diff for one before the last stash. I use "git stash show -p stash@{1}", but it prints nothing. What am I doing wrong?16:46
duckx joined16:46
fayimora_ joined16:47
berserkr left16:49
fayimora_ left16:49
duckxx left16:49
adityamenon90 left16:49
fayimora_ joined16:49
fayimora_ left16:49
fayimora left16:49
adityamenon90 joined16:50
berserkr joined16:51
j416 left16:51
Textmode joined16:53
JackWinter left16:55
fayimora joined16:55
adityamenon90 left16:59
adityamenon90 joined16:59
rchavik left17:00
JackWinter joined17:01
lenswipe joined17:03
lenswipe left17:03
lenswipe joined17:03
lenswipe hey guys17:03
gitinfo lenswipe: 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.17:03
lenswipe is it possible to remove something so that it doesnt appear to one remote but it does to another17:03
i have a Boxfile for pagodabox that i want to remove so that it stops appearing in future commits on github but i kinda need it for pagodabox17:04
its not private, its just that people downloading my code on github wont give a damn about it17:04
dvide joined17:05
dhruvasagar joined17:05
neektza joined17:06
Sahua left17:07
cmn you can remove a file from history with filter-branch, but that's !rewriting17:08
gitinfo [!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)17:08
Sahua joined17:08
lenswipe cmn, i dont want to remove it from history17:08
adityamenon90 left17:08
lenswipe cmn, i just want to do git rm but only on one branch if you see what i mean17:09
err not one branch17:09
one remote*17:09
UNIXgod joined17:09
lenswipe i have github and my hosting repo17:09
cmn what do you mean one remote?17:09
Davey joined17:09
lenswipe ever heard of pagodabox@?17:09
adityamenon90 joined17:09
cmn no17:09
but that's irrelevant17:09
lenswipe no its not17:09
its a git based PHP scaling cloud17:09
cmn so waht?17:09
lenswipe i have a config file in my repo for that and i push to it with git17:09
cmn if you want to remove a file, remove it17:10
but a remote is only a place where commits appear17:10
lenswipe well no because i need it for pagodabox17:10
i want to stop pushing it to github17:10
cmn then you don't want to remove it, don't17:10
lenswipe *sigh*17:10
cmn then branch17:10
lenswipe so i have 2 branches?17:10
sounds reasonable17:10
cmn however many you need17:10
lenswipe ill look that up thanks17:10
lenswipe left17:10
l0ll0lll ok, i've solved my problem by upgrading to latest version of git17:11
macabre joined17:12
l0ll0lll left17:12
gasbakid joined17:12
tshauck left17:14
Milossh joined17:14
williamcotton left17:16
dhruvasagar left17:16
offby1 neektza: welcome17:16
adityamenon90 left17:16
shreya left17:16
adityamenon90 joined17:17
neektza offby1: thx17:17
jfischoff left17:18
tmz left17:18
warthog9 left17:18
optixx left17:20
project2501a left17:21
jgoss joined17:22
darkmagex6 left17:22
optixx joined17:22
scientes joined17:25
adityamenon90 left17:27
adityamenon90 joined17:27
codeshah joined17:29
gusnan left17:30
Adrao joined17:31
tyatpi left17:31
juvenal left17:32
tmz joined17:33
adityamenon90 left17:34
Davey left17:34
adityamenon90 joined17:35
pheaver left17:35
trying2code left17:36
juvenal joined17:37
BarryCrayon joined17:38
adityamenon90 left17:40
adityamenon90 joined17:41
BarryCrayon left17:42
und3f joined17:43
enmand left17:44
xpot-station joined17:46
heinrich5991 left17:47
Goplat joined17:47
arvind_khadri joined17:49
alberto56 joined17:49
Davey joined17:49
adityamenon90 left17:49
adityamenon90 joined17:50
tshauck joined17:51
zinjacoder left17:52
heinrich5991 joined17:53
adityamenon joined17:53
calimocho left17:54
matthiaskrgr joined17:54
Dave^| joined17:54
adityamenon90 left17:55
jason237 joined17:56
Sahua left17:56
Davey left17:57
erichynds joined17:57
flippo joined17:57
Sahua joined17:59
erichynds left17:59
vitor-br joined18:00
calimocho joined18:00
j416 joined18:02
adityamenon90 joined18:03
albel727 left18:03
ology left18:03
arvind_khadri left18:04
albel727 joined18:05
adityamenon left18:05
Milossh anyone around to help me with git basics? (ie. branching and remotes)18:07
jceb_ joined18:07
jaseemabid Milossh: !progit18:08
gitinfo Milossh: [!book] There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !designers !gitt !vcbe and !parable18:08
offby1 Milossh: ask ask18:09
glennpratt joined18:10
Lord_DeathMatch left18:10
jstoone joined18:11
Milossh offby1: so, I have a repo(on github) where my coworkers and I work on a project, and I have forked it to my personal account. Now, what I want to get is: 2 branches on project repo, have the same in my own fork, and then have a project repo as a remote, so that I can pull in changes others made18:11
how'd I do that?18:11
jstoone Hi, my friend and I are working on a project and I just got a mail+notification at github that i can now contribute to the project, but when i push my changes it says that i cant push to the project. Any Ideas?18:12
Milossh do I first create a desired branch on project repo, then fork, and then add a remote? if so, how do I add remotes per branch, or it automagically gets branches, too18:12
jstoone: make sure you're pushing with proper credentials18:13
also, check the remote url(make sure it's not read only)18:13
juvenal left18:13
jstoone Milossh: thanks, I'll just check.18:13
calimocho left18:15
glennpratt left18:15
jaseemabid left18:15
calimocho joined18:16
jstoone Milossh: So, first I clone the repo, and then i change, commit/add, and then push? am i right?18:17
Milossh jstoone: yeah, that should be it, except that you add before you commit18:17
git clone http://...18:17
cd repo18:17
echo something something.txt18:17
git add something.txt18:18
git commit -m "my revision"18:18
git push18:18
cbreak you should consider writing a proper commit message18:18
one line title, an empty line, then body.18:18
jaseemabid joined18:19
vitor-br left18:19
jstoone cbreak: so more like `git commit -m "Jstoone test \n\n This is a little test to see if I can commit"18:20
`18:20
cbreak no idea. I use an editor to write the message.18:20
jstoone oh.18:20
how do you commit using an editor?18:21
when i use `git commit -a` i get Nano popping up.18:21
cmn so write the message, save it and exit18:21
cbreak nano is an editor18:22
I use TextWrangler18:22
jgoss left18:22
jstoone how do i specify which editor to use?18:23
cbreak jstoone: man git-config18:23
gitinfo jstoone: the git-config manpage is available at http://git-scm.com/docs/git-config.html18:23
cbreak look for core.editor18:23
jstoone thanks18:23
glennpratt joined18:23
glennpratt left18:25
lg188 left18:25
Bass10 joined18:25
Mowsh joined18:26
adityamenon90 left18:26
adityamenon90 joined18:27
mikepack joined18:27
jceb_ left18:28
jazz264 joined18:29
sq-one joined18:29
adityamenon90 left18:29
jaseemabid left18:30
duckx left18:30
bitkiller left18:30
adityamenon90 joined18:31
lapistano left18:31
lapistano joined18:32
dreiss joined18:32
jazz264 left18:32
mneorr left18:33
ToBeFree joined18:33
sq-one left18:33
r0bby joined18:34
LekeFly joined18:34
jstoone left18:35
pheaver joined18:35
robbyoconnor left18:36
adityamenon90 left18:36
adityamenon90 joined18:37
dreiss left18:37
duckx joined18:37
_huoxito joined18:37
dreiss joined18:37
r0bby_ joined18:39
calimocho left18:39
Davey joined18:42
adityamenon90 left18:42
adityamenon90 joined18:42
r0bby left18:42
calimocho joined18:42
adityamenon90 why is selecting a branch called checking out a branch?18:43
is that in reference to "I'm checking out this code"..?18:43
hiryu_ left18:43
fuzzybunny69y left18:44
adityamenon90adityamenon18:44
cmn selecting in what sense?18:45
checking out a branch means setting that branch as the current one and checking out the files from that branch18:45
adityamenon left18:45
boombatower joined18:46
adityamenon joined18:46
matthiaskrgr left18:46
RaceCondition left18:46
duckx left18:46
calimocho left18:47
OOPMan joined18:47
goshawk joined18:48
DuzyZiemniak left18:49
Sigma left18:50
umc left18:50
maletor joined18:51
adityamenon selecting in the sense, selecting for development18:51
git checkout branch_name18:51
now whatever I commit goes to branch_name18:52
so I 'selected' branch_name for development18:52
airborn joined18:52
adityamenon left18:52
TomyLobo joined18:52
TomyLobo hi18:52
cmn if you want to look at it that way, I guess18:52
adityamenon joined18:52
adityamenon sorry cmn, I got disconnected - did anyone say anything about what I said while I was away?18:53
cmn no18:53
I just answered now18:53
TomyLobo i only have like 10 revisions in my repo and i want to apply some hardly automatable --tree-filter to all of them. so i figured i'd just make filter-branch wait for user input. tried "read", which failed18:54
cmn the name probably comes courtesy of bitkeeper and possibly subversion or older systems18:54
adityamenon oh - thank you...18:54
cakehero left18:55
dinduks joined18:55
OOPMan left18:58
dreiss left18:58
HyperNerdV2 joined19:01
stepnem left19:02
ronniy left19:03
adityamenon left19:04
adityamenon joined19:05
stepnem joined19:06
TheJH joined19:07
enmand joined19:10
pantsman joined19:11
pantsman left19:11
pantsman joined19:11
LekeFly left19:11
OOPMan joined19:12
adityamenon left19:13
optixx left19:13
adityamenon joined19:13
optixx joined19:15
johtso joined19:16
fuzzybunny69y joined19:16
Lgb left19:20
fAz4 joined19:20
fAz4 does git clone uses ssl ?!19:20
cbreak depends.19:21
fayimora left19:21
fAz4 cbreak: how ?19:21
kpreid adityamenon: originally when vcs's used exclusive access you "checked out" the file you were working on, so metaphorically you have it rather than the repository having it, and "checked in" when you had made your changes, returning it to the repository19:21
enmand left19:21
cbreak fAz4: git only uses ssl when cloning via https19:21
gusnan joined19:22
fAz4 cbreak: can i choose the protocol ?19:22
Lgb joined19:22
rurufufuss left19:22
kpreid adityamenon: the name has persisted as the operation of selecting the file(s) you are going to perform work on and have "in hand" rather than stored in whatever fancy delta data store the repository uses19:22
adityamenon left19:22
cbreak fAz4: no, you can only pick between what the remote offers19:22
milki picks ip over dns!19:22
adityamenon joined19:22
cmn but among those, you are usually free to choose, depending on your firewall rules19:23
fAz4 cbreak: its git:// ...19:23
cmn that won't use ssl19:23
cbreak that's unencrypted unauthenticated read only19:23
adityamenon kpreid, that makes sense thank you :)19:23
kpreid adityamenon: you're timing out, did you get my second message?19:23
adityamenon no, I only saw the first one...19:23
kpreid adityamenon: the name has persisted as the operation of selecting the file(s) you are going to perform work on and have "in hand" as actual files rather than stored in whatever fancy managed storage the repository uses19:24
Tinti left19:24
adityamenon okay - so the name has persisted, but git has changed the rules because 'everything is in-hand' now, right?19:25
kpreid no, I meant what git calls the working tree19:25
i.e. plain files19:25
the exclusive access and remote aspects have died out, but every vcs has a "give me a set of ordinary files I am going to modify" operation, and "checkout" is the conventional name for that19:27
not entirely consistent, of course19:27
e.19:27
g. i19:27
n19:27
(sorry) e.g. in Subversion, checkout is what git calls clone19:27
cmn with many many caveats19:28
kpreid er, yeah.19:28
comps kpreid: clone clones the object database and performs a checkout ("export" from the database to plain files)19:29
adityamenon ohkay19:29
cmn clone gets a copy of the repository, svn checkout grabs one version of the files, which is more similar to what git checkout does19:29
comps kpreid: you can do the checkout by yourself as well19:29
kpreid yes, exactly. I should have said, perhaps, that Subversion by contrast does *not* call the "move from one revision to another" operation "checkout"19:29
comps git clone --bare avoids the checkout, for example19:29
cmn the --bare makes the checkout senseless, it doesn't avoid it19:30
cbreak git doesn't call "moving from one revision to an other" checkout either19:30
git calls it commit19:30
adityamenon left19:30
cbreak or reset19:30
comps cmn: --bare makes the checkout senseless and thus avoids it19:30
cmn that's not avoidance19:30
adityamenon joined19:30
linuxdaily joined19:31
fuzzybunny69y left19:31
Jackneill left19:31
kpreid cbreak: er, no. I mean the operation of selecting a different version in history as what you currently have-as-plain-files and diffing against, not the operation of defining a new version. git certainly calls that checkout; reset is either half of that or that-plus-altering-a-head depending.19:31
but we're arguing names for things, so I'll just shut up now19:32
comps kpreid: there are quite a lot of "svn->git" command cheat sheets, repo.or.cz had one of them, IIRC19:32
cbreak all of them suck19:33
adityamenon would any of you store a private repo on GitHub or BitBucket?19:35
is there a chance of stuff being 'stolen'?19:35
I can simply maintain a remote on the VPS of a customer, for example19:35
but these sites provide a nice interface for the non-hardcore clients19:36
cbreak I don't trust them19:36
adityamenon who still want to keep track of what's happening19:36
cbreak but some other people in my company uses github's private features19:36
adityamenon cbreak, hmm yeah, it's really hard to just put code in someone else's hands19:36
cbreak nah19:37
just set up your own server19:37
comps depends on how much "private" do you want to be, I don't mind putting my fluxbox config there, but I'd rather not put any "saved passwords" to anything I don't have absolute control of :)19:37
krnl left19:38
cbreak I would not put the windows source code on github19:38
they'd make fun of it endlessly I bet.19:38
and one of the admins might leak the worst parts...19:38
BarryCrayon joined19:38
cmn but only for the lolz19:39
angelsl left19:39
cmn adityamenon: the question is how much you trust them vs how much support burden having something else is19:40
cbreak at work I have my own gitolite repository19:40
but that's only for people in my branch, quite easy to administrate19:40
adityamenon left19:40
adityamenon joined19:41
BarryCrayon left19:43
adityamenon cmn, Indeed - for very small projects, I don't think there's anything to fear, there's hardly any "breakthroughs" happening19:43
jn_ joined19:44
cmn and you also have to keep in mind that any VPS provider is probably also able to steal your code19:44
or even allow third parties to do it if they're being stupid about it; there was this case with Linode, I think19:45
sh0ne is it good practice to add '.gitignore' file to the ignore list?19:45
DuzyZiemniak joined19:45
SethRobertson sh0ne: Probably not19:46
You typically want everyone else in the project to be able to ignore the same files19:46
sh0ne SethRobertson: so I should track my .gitignore file19:46
balau left19:46
SethRobertson Most people do. There is a .git/info/excludes or some filename like that for private ignores19:46
cbreak depends19:46
sh0ne SethRobertson: thank you for clearing that up for me19:46
brokenshakles left19:47
cbreak I put mac specific files into the global git ignore file19:47
airborn left19:47
cbreak (Like .DS_Store)19:47
adityamenon cmn, come again - Linode allowed code stolen?19:47
SethRobertson Remembering that there is no global git ignore file that you do not specifically configure19:47
adityamenon was it like, they got hacked?19:47
cbreak I put local build specific files into .git/info/exclude (like generated .xcodeproj and build/ folders)19:47
glennpratt joined19:48
bubbles10101 joined19:48
adityamenon left19:48
adityamenon joined19:49
jaseemabid joined19:49
glennpratt left19:50
YPY joined19:51
YPY left19:51
felipec I'm writting a blog post comparing git and mercurial branching models, feedback would be appreciated: http://felipec.wordpress.com/?p=1202&shareadraft=4fc134655328719:53
jaseemabid I wrote a post for git beginners about aliases and shortcuts. Feedback will be appreciated. http://jaseemabid.github.com/05-07-2012/git-for-the-lazy-ones.html19:55
adityamenon left19:55
adityamenon joined19:55
dinduks left19:58
fuzzybunny69y joined19:58
offby1 Milossh: did you get your question answered19:58
Milossh offby1: I figured it out19:59
offby1 good19:59
linuxdaily left20:00
fayimora joined20:01
Dulak joined20:03
adityamenon left20:03
Dulak left20:03
Dulak joined20:03
Davey left20:04
cbreak felipec: looks ok20:04
adityamenon joined20:04
fukushim_ joined20:04
fukushima left20:05
felipec cbreak: :)20:06
SethRobertson felipec: My comments are: 1) argumentative, and 2) I'm not perfectly sure that it is a stand-alone blog post or whether you need to read the post(s)? you are referring to in order to understand it20:06
Davey joined20:07
cbreak I only checked if it says something wrong about git20:07
simesy left20:07
cbreak can't say anything about the hg part20:07
simesy joined20:07
SethRobertson I can't either, for that matter20:07
I will note that when you merge with git you need to merge with --no-ff to prevent the fast-forward anonymous branch problem with shoots down some of your arguments20:08
cbreak jaseemabid: I like git log --graph --oneline --decorate --all20:08
SethRobertson: personally, I only use --no-ff when merging feature branches with more than two or three commits, and a really distinct feature that I actually might care about later20:09
rcu joined20:09
cbreak jaseemabid: also, not sure if you use it, but there's a git completion bash file in contrib20:10
adityamenon left20:10
felipec SethRobertson: what's wrong with being argumentative?20:10
adityamenon joined20:11
SethRobertson cbreak: ff is fine when you are pulling, but if there was any simultaneous development, I don't want to lose track of which branch was which.20:11
klj613_ joined20:11
cbreak pulls with --rebase20:11
Raging_Hog left20:11
felipec SethRobertson: I never mentioned anything about fast-forwardness20:11
cbreak the projects I am involved with are two or three people at most, 90% of which is me :)20:12
simesy left20:12
bremner 90% of 3 people is you?20:12
that explains a lot.20:13
cbreak people area measured by their code size :)20:13
fAz4 left20:13
SethRobertson felipec: Nothing per se, but I think you went over the top when you treat what I can only assume are follow-on paragraphs as if they occurred temporally after your git example. It is fair to complain that his justification doesn't match what he wants, but saying "How convenient; first he ...." seems overdone if the second paragraph was already present before you started20:14
klj613 left20:15
adityamenon left20:15
EyesIsMine left20:15
klj613_ left20:16
TheJH left20:16
adityamenon joined20:16
FernandoBasso joined20:17
felipec SethRobertson: how would you make the same point?20:17
cakehero joined20:17
boombatower left20:17
fayimora left20:18
TheJH joined20:18
brngardner joined20:18
Pookz joined20:19
SethRobertson Just note that the justification doesn't match the desires. In the second example it is less overdone and you mention a reason why it wouldn't matter.20:19
Also "dependent con commits your colleague has no visibility from" is a typo and "from" is probably wrong as well20:20
felipec jaseemabid: have you seen __git_ps1?20:20
SethRobertson felipec: You could also mention that you could create a prepare-commit-msg hook to encode the branch name in the commit message if he is so sure he wants it.20:20
klj613 joined20:21
adityamenon left20:22
idahoev left20:22
adityamenon joined20:22
idahoev joined20:24
jaseemabid left20:24
juvenal joined20:27
afuentes joined20:29
jfischoff joined20:29
felipec SethRobertson: dependent on commits your colleague has no visibility to?20:29
stamina left20:29
Slim_ joined20:30
SethRobertson Perhaps "of"? Of course, what this may really be about is that the other, intermediary branch, has already been reviewed and only the new stuff on topic has not been reviewed.20:30
That might be where something which actually formally tracks what has been reviewed and what has not might come into play.20:31
adityamenon left20:31
adityamenon joined20:32
dtang left20:32
moltar_net1 left20:34
Dimeetrees left20:34
L0cky joined20:35
idahoev left20:36
cbreak if you have a code review system, you'd probably tag all commits that are reviewed20:36
or something like gerrit20:36
that just rewrites history as it pleases anyway20:36
drev1 joined20:36
felipec SethRobertson: updated20:37
pheaver left20:38
cbreak I've not used gerrit myself but Qt uses it20:38
and apparently it is made for reviewing changes in a more centralized workflow with patches instead of manually managed feature branches on the server20:39
macmartine joined20:42
resistivecorpse joined20:43
Dreamer3 left20:43
flaguy48 left20:45
oriba left20:47
SkAzZ joined20:47
Sigma joined20:49
SkAzZ1 joined20:49
Davey left20:49
pheaver joined20:50
cagedwisdom joined20:51
SkAzZ left20:52
sitaram felipec: they have repository namespacing now? wow... I am even more convinced they knew long ago that git was doing the right thing and chose to come to it over 5 (or more?) revisions, albeit with multiple mis-steps along the way20:56
(ultimate WTF was moving *all* bookmarks when you commit, in early days of bookmarks)20:57
pheaver left20:58
blacktulip left21:01
blacktulip joined21:04
sorin joined21:04
txomon|home left21:05
kpreid left21:05
nadavoid joined21:06
kpreid joined21:06
sorin Hi. I have a problem with Git mergetool. If I define a mergetool called vimdiff3 with cmd = vim -f -d -c \"wincmd J\" -c \"wincmd =\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\", it fails to launch it when I execute git mergetool. But, if I rename vimdiff3 to foosbar, git mergetool works. As far as I can tell, the only available git mergetool definitions are vimdiff and vimdiff2. Why doesn't naming my tool vimdiff3 work?21:06
xxtjaxx left21:07
xxtjaxx joined21:08
xxtjaxx left21:08
xxtjaxx joined21:08
cirwim joined21:09
n1x joined21:12
lolfrenz left21:15
Sahua left21:16
Vooloo left21:18
stkrzysiak joined21:18
hotspant1 left21:18
hotspants joined21:19
mishok13 left21:20
mxweas_ joined21:21
und3f left21:21
EyesIsMine joined21:24
jn_ left21:26
matthiaskrgr joined21:27
cirwin joined21:28
brngardner left21:29
ixti left21:31
matthiaskrgr left21:32
rcu left21:34
Sigma left21:38
rryoumaa joined21:38
gitinfo set mode: +v21:39
BarryCrayon joined21:39
rryoumaa is there a way to keep a git repo at a depth of 2 or so?21:39
i don't need history, period21:39
mxweas_ left21:40
cmn you can re-clone each time or use tarballs21:40
if you don't need history, git isn't going to help you much21:40
bubbles10101 left21:41
rryoumaa i just want it for pull21:41
i suppose clone would work, but it might be slower21:41
cmn slower than what?21:41
felipec rryoumaa: git clone --depth=221:41
cmn and how do you expect a merge to to work without any history?21:42
felipec rryoumaa: I suppose you meant for 'git fetch'21:42
rryoumaa dunno :)21:42
cmn if what you want is a tarball, grab a tarball21:42
rryoumaa um, there is a huge package out there, and it's available by git, and it's too huge, and gc takes forever21:42
so i just want the minimum history21:43
BarryCrayon left21:43
DrNick left21:44
sorin left21:44
benbergman left21:46
blast_hardcheese joined21:49
mxweas_ joined21:49
Dreamer3 joined21:49
mxweas_ left21:49
Dreamer3 left21:50
airborn joined21:51
mxweas_ joined21:51
fayimora joined21:51
neurodrone left21:52
Guest1598791926 left21:52
j416 left21:53
benbergman joined21:53
millerti joined21:53
millerti Well, I've posted about my problem to the git mailing list. No solutions there. And I've put a bounty on my stackoverflow question, which usually gets some quick responses, and nothing. Maybe holiday weekend? http://stackoverflow.com/questions/10740601/cannot-push-to-remote-git-repo-over-ssh-stuck-at-writing-objects-1121:54
nadavoid left21:54
cehteh that strace is from the client? .. how about figuring out whats happening on the server21:56
quota or volume limit, permissions problem whatever21:57
(firewall?)21:57
tried to push the same thing to another machine?21:57
and you got one response there .. check df and df -i21:58
lapistano left21:58
brentratliff joined21:59
lapistano joined21:59
tmz left21:59
Dave^| left21:59
Goplat left22:02
d0k left22:02
stamina joined22:03
jfischoff left22:04
millerti I did strace on the server too...22:07
Let me give you the links.22:08
Element9 left22:08
Pookz left22:08
mxweas_ left22:09
cmn from what you posted on the ML, it looks like the kernel keeps returning EINTR, so it doesn't let git continue22:09
why that would happen, however, is much more tricky22:09
Element9 joined22:10
cehteh anythings in dmesg?22:10
millerti server: http://www.cse.ohio-state.edu/~millerti/foo2.out22:10
client: http://www.cse.ohio-state.edu/~millerti/revue_strace3.txt22:11
n1x left22:11
millerti dmesg has some ATA errors I should investigate, but nothing relating to git22:12
_mpu left22:12
cehteh well ATA errors could be it ..22:12
ISF left22:13
akiress joined22:13
mxweas_ joined22:13
mxweas_ left22:13
cmn it's odd that they'd only affect it over ssh, though22:13
cehteh kernel cant deliver data .. read from disk runs in circles (maybe it will eventually give up with an EIO)22:13
you pushed the same repo to another server?22:13
'some ATA errors' would make me nervous anyways ..22:14
ill1cit joined22:20
felipec left22:26
millerti Yeah, but I don't think these are related. All push/pull by path works fine.22:26
All other disk access works fine.22:26
vitor-br joined22:26
millerti It's only over ssh (even to/from the same machine) where there is a problem.22:27
My guess is that there's a git bug triggered by some commit I made, and it triggers when using ssh.22:27
I might want to try git://22:27
cmn have you tried pushing master~ instead of master?22:27
millerti Would that work any differently?22:27
What is master~ ?22:27
cmn the first parent of the commit at the tip of master22:28
i.e. not pushing all at once, but in steps22:28
millerti fatal: remote part of refspec is not a valid name in master~22:28
cmn when you push locally, what path/url do you use?22:28
that would be the local22:28
push master~ to master22:28
millerti cmn: I've tried two things: by path name /home/blah/blah, and by ssh. By path works fine.22:29
cmn by path it doesn't use the git protocol22:29
millerti Sure.22:29
cmn have you tried file:///path/to/repo ?22:29
millerti cmn: That works except that it complains that master is checked out over there.22:31
DrNick joined22:31
millerti How do I find out the current branch?22:31
cmn erm... what?22:31
millerti The cureent checked out branch...22:31
cirwin millerti: git symbolic-ref HEAD22:32
millerti Interesting. If I push via ssh (back when it worked), I never had to deal with complaints about the remote being checked out on the same branch I'm pushing. But if I do it by file, it does complain.22:32
cmn that's very odd22:33
because it should always complain in the same way22:33
setmeaway joined22:33
setmeaway left22:33
cmn hm, unless you turned off the warnings and the error in the repo itself rather globally, maybe22:33
flippo left22:34
millerti To start with, I'm trying to commit not to the original origin but to another repo in the same place so that I don't mess up the origin.22:34
So I started with a bare repo, but it's complaining about me committing to a non-bare repo, even though it should be bare.22:34
cmn and what does the repo say it is?22:34
millerti refs/heads/master22:34
But there are no files.22:35
It is something that I have TRIED to push to but always failed.22:35
cmn I mean what the repo says about being bare22:35
the one you're trying to push to22:35
millerti Do you want the whole error messsage?22:35
codemaster__ joined22:35
cmn no, I want the core.bare config option for that repo22:35
millerti http://pastebin.com/74VQrhaN22:36
I don't know how to get config options..22:36
cmn man git config <config option>22:36
gitinfo the git-config manpage is available at http://git-scm.com/docs/git-config.html22:36
bubbles10101 joined22:36
cmn when in that repo22:36
millerti false for core.bare22:37
Even though there are no files. But like I say, I have tried, unsuccessfully, to push to that repo.22:37
cmn so it thinks it's a non-bare repo, so it's right complaining22:37
it doesn't matter whether there are files22:37
millerti I'll delete it and try again.22:37
Ok, so I deleted the repo, did "git init" in it, and then tried pushing again. Same error.22:38
Should I not git init?22:38
cmn git --bare init is what creates a bare repo, which is the ones you generally want if you're going to push to them22:39
millerti Oh, ok. I probably did that with the other repo but forgot to do this one.22:39
Dreamer3 joined22:39
Slim_ left22:39
cmn or to put it another way, if it's not in your workstation, it's probably a bad idea to make it non-bare22:39
codemaster__ left22:39
Slim_ joined22:39
millerti Yeah. I followed instructions for the original origin.22:40
kcj joined22:40
millerti Anyhow, so this command works: git push file:///home/git/repos/revue_daemons_tmp/ master22:40
cmn hm... if that works, it means that the git protocol isn't the problem22:41
assuming it did what I expect it to do, and it did generate the pack; the output should be the same as over ssh, just faster22:41
setmeaway joined22:41
setmeaway left22:42
millerti Are you sure that file:///path is really different from /path ?22:42
_iron left22:42
FauxFaux Yes. man git filter-branch22:42
gitinfo the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html22:42
millerti I mean, what's it talking to?22:42
Krenair joined22:42
cmn it's talking to git22:42
millerti Ok, so it's having a problem with ssh then?22:42
FauxFaux drops a bear.22:43
cmn file:// uses the git protocol, and the different over ssh:// is just that it's talking over a pipe all on the same computer; over ssh it would talk over the network, but the protocol is the same22:43
poor bear22:44
it certainly points to ssh being the thing that breaks it22:44
berserkr left22:44
cmn can you scp a large file over?22:45
hm, that might not prove anything...22:45
FauxFaux wonders if you can get git to directly use a pipe, so manually run it over ssh.22:45
cmn you can change GIT_SSH to a script, and it probably sends its output to its stdin22:45
FauxFaux Mmm.22:46
millerti I'm trying to set up git-daemon. Do I have to explicitly export each repo?22:46
cmn so it would work like tar cf - something/ | ssh machine tar xf -22:46
millerti: you can tell git-deamon to export everything22:46
millerti I have no other problems with ssh to/from this machine.22:46
--export-all is in there...22:47
fatal: remote error: access denied or repository not exported: ~git/repos/revue_daemons_tmp22:47
git push git://localhost/~git/repos/revue_daemons_tmp22:47
I ee what's wrong.22:47
gusnan left22:47
FauxFaux Read the git daemon log.22:47
cmn two things there 1) you might need to set the path for git-daemon and 2) you need to explicitly tell it to allow pushes22:48
wmp left22:48
millerti cmn: I got that working. Now I'm going to try to push to the original master, but only after I make a backup copy.22:48
neurodrone joined22:49
millerti No problem there.22:49
If I use git protocol, it works fine!22:49
cmn then it's ssh's fault22:49
millerti Yeah. Appears so!22:50
sh0ne left22:51
millerti I can push remotely too.22:51
From other machines. No problems at all.22:51
erichynds joined22:51
martinjlowm left22:52
millerti For now, I'll just change the origins. I still want to figure out where ssh is going wrong. Other people use this repo!22:52
I really don't want to export the git port to the internet. I want ssh for this reason.22:53
ToBeFree left22:53
JEntrep joined22:54
cmn letting anybody push is certainly a bad idea22:54
blacktulip left22:55
millerti Exactly.22:55
cmn have you tried sending a large file over ssh in the tar fashion?22:55
comboy_ joined22:55
millerti I can try that, but the pregnant wife wants me to get groceries now. :)22:55
Thanks for the help!22:55
cmn like, grab 1G from /dev/urandom, and then tar cf - thatfile | ssh thatcomputer tar xf -22:55
akiress left22:55
millerti Good idea. Will you still be here in a few hours? :)22:56
cmn alright, see you around, good that we managed to track it down to something22:56
millerti Yes! Thanks again!22:56
cmn I may or may not be, it's already 1am in my TZ22:56
millerti Oh, wow.22:56
cmn but my IRC client will be here22:56
toothr left22:58
erichynds left22:59
JEntrep left22:59
tmz joined23:00
sebastian_o| joined23:01
SkAzZ joined23:02
project2501a joined23:03
SkAzZ1 left23:03
CodeVision left23:03
TheJH left23:03
cytrinox left23:03
jaeckel left23:03
d1b left23:03
d1b joined23:03
cytrinox joined23:03
CodeVision joined23:03
jaeckel joined23:04
akiress joined23:04
TheJH joined23:04
mtytel left23:04
cirwim left23:04
brentratliff left23:06
cirwin left23:07
pantsman left23:07
urbanmonk joined23:10
rryoumaa left23:10
CodeVision left23:10
CodeVision joined23:10
twisted` joined23:11
project2501a left23:12
project2501a joined23:12
DoniRS left23:16
idahoev joined23:18
zivester left23:18
JEntrep joined23:20
toothr joined23:20
JEntrep Does anyone here know any good resources for directed graph theory?23:20
teweWORK joined23:23
eletuchy joined23:24
stkrzysiak left23:25
afuentes left23:25
Slix` left23:26
Targen left23:28
whitman left23:28
Slix` joined23:28
ajpiano left23:29
ajpiano joined23:29
esc JEntrep: what do you need to know?23:33
JEntrep Anything and everything :p23:34
milki ...23:34
esc i guess the wikipedia article would be a good start23:34
xiaotian joined23:35
codewrangler joined23:35
JEntrep I was told this goes over it a lot:http://en.wikipedia.org/wiki/Introduction_to_Algorithms23:35
esc well, that is an elementary test, really23:36
s/test/text23:36
JEntrep Oh ...23:36
I geuss wikipedia surfing then is my main option? :/23:37
sebastian_o| left23:37
idahoev left23:37
bubbles10101 left23:37
giallu left23:37
esc well, start from there and then complement it with whatever else you find23:37
JEntrep Wolfram more likely actually23:37
BarryCrayon joined23:39
TheJH left23:40
Bass10 left23:40
b1rkh0ff left23:41
BarryCrayon left23:43
williamcotton joined23:43
khmarbaise_ joined23:44
ajpiano left23:46
khmarbaise left23:46
khmarbaise_khmarbaise23:46
urbanmonk left23:46
ajpiano joined23:49
Shusshu left23:50
Bass10 joined23:50
w09x joined23:50
barrbrain_ left23:55
b1rkh0ff joined23:56
benjo2 joined23:56
SkAzZ left23:56
sirdancealot2 left23:57
sirdancealot2 joined23:58

Logs Search ←Prev date Next date→ Channels Documentation