| 2010-02-26 |
| → Theravadan joined | 00:01 |
|
rtyler
| spearce: you has a javascript bug :( | 00:01 |
|
| spearce: when clicking "side-by-side" diffs in a review: Class$u2c: Array index 381 out of range | 00:01 |
| → bcardarella joined | 00:01 |
|
spearce
| frell | 00:02 |
|
| another? | 00:02 |
| → hipe joined | 00:02 |
|
spearce
| those are nearly impossible to track down without the exact commit/file to debug | 00:02 |
| ← hipe__ left | 00:02 |
| → maattd joined | 00:03 |
|
rtyler
| spearce: GWT pwnt? | 00:07 |
| → christophsturm joined | 00:08 |
| → hipe_ joined | 00:08 |
| ← hipe left | 00:08 |
| → cloudhead joined | 00:09 |
| → Paraselene__ joined | 00:09 |
| ← christophsturm left | 00:12 |
|
kinection
| anybody here know how to get a <redirector> in ant build.xml to not only createemptyfiles but to create directories? | 00:13 |
| → nessundorma_ joined | 00:13 |
|
spearce
| maybe try #ant, or #abuseofxmlandotherthingsthatarebracketlike ? | 00:13 |
|
b636bc7ca
| johnw / cbreak: Can I not do this when the upstream is a bare repo? | 00:13 |
|
cbreak
| you should be able to reset in bares | 00:14 |
|
| never tried | 00:14 |
|
| rebase -i won't work there | 00:14 |
|
| but worst case, you can just rebase locally and then force push | 00:14 |
| ← nessundorma_ left | 00:14 |
|
cbreak
| (that will remove commits on the repository you push to, all commits that were made between you pulling before the change and pushing) | 00:14 |
|
b636bc7ca
| There've been no commits in between - when he pushed this, I shut the gitd down until I could fix it | 00:15 |
|
| So I cloned the bare repo, did my rebase -i, and everything looks good. But when I say "git push origin", it tells me "Everything up-to-date" | 00:16 |
| ← hipe_ left | 00:17 |
| ← nessundorma left | 00:17 |
| → hipe joined | 00:17 |
| → saccade_ joined | 00:18 |
|
b636bc7ca
| ah, forgot to "git rebase --continue" | 00:18 |
| → jmcantrell joined | 00:20 |
| → hipe_ joined | 00:20 |
|
floppyears
| hi guys | 00:20 |
| ← hipe left | 00:20 |
|
floppyears
| I'm using git add -i to stage only parts of a file | 00:20 |
|
| how can I specify parts of a chunk to stage? | 00:20 |
|
kinection
| ah crap, i totally asked my question in wrong channel, sorry. | 00:21 |
|
floppyears
| never mind, git answered my question | 00:22 |
|
cbreak
| floppyears: there should be a mode where you can edit the hunk | 00:22 |
|
floppyears
| cbreak: yeah, I used the inline help and it answered my question :) | 00:23 |
| ← hipe_ left | 00:23 |
| → hipe_ joined | 00:24 |
|
b636bc7ca
| cbreak / johnw: Perfect, that solved everything. All my guys have done a reset --hard and we appear to be solid. Thank you both! | 00:25 |
|
cbreak
| great :) | 00:26 |
| → cehteh joined | 00:31 |
| → jrmuizel joined | 00:32 |
|
rtyler
| spearce: could I bug you to come over into #hudson? | 00:37 |
| → scarabx joined | 00:38 |
| → melter_ joined | 00:39 |
| → corto joined | 00:39 |
| → seamushc joined | 00:40 |
|
seamushc
| I often hear people say that git is no good at binary files. I havent really seen this in my own experience. Does any one know the real scoop? | 00:41 |
|
spearce
| its fine with binary files. | 00:42 |
|
corto
| hi there, i'm starting to use git for my kernel patching, if I need to apply many patches, I see I could create new branches for them, and then merge them together later, but i wonder how rebase or submodules would help...? | 00:42 |
|
spearce
| its not fine with like 8 GiB binary files. | 00:42 |
|
| a lot of the file handling mallocs the whole thing into memory at once | 00:42 |
|
seamushc
| Ahh, I see | 00:44 |
|
| So, its really fine with binaries, as long as they will fit happily into ram?\ | 00:45 |
|
rtyler
| seamushc: IMO it's no worse than other VCSes with binary files, provided they're reasonably sized | 00:47 |
|
| rtyler moved a lot of binary (flash) files from SVN to Git a few years ago | 00:47 |
|
bremner
| and they don't change very much | 00:50 |
|
spearce
| yea, gits fine, so long as it fits in memory. | 00:51 |
|
| actually, i think git is a bit better about binary files than other VCSes are, since it assumes by default everything is binary and shouldn't be munged with keywords or what have you | 00:51 |
|
bremner
| I recently made a repo with 500MB of binary files in it, (6-12MB each) and found it painful to work with | 00:52 |
| → Kelly_zhou joined | 00:52 |
|
bremner
| as in, it took ages to clone. | 00:53 |
|
cbreak
| no surprise there | 00:54 |
|
bremner
| yeah, I just thought I'd semi-quantify the discussion | 00:54 |
| → catalis joined | 00:56 |
| ← seamushc left | 00:58 |
| ← jrmuizel left | 01:00 |
| → jrmuizel joined | 01:01 |
| → brettgoulder joined | 01:03 |
| → ryan[WIN] joined | 01:04 |
| ← jrmuizel left | 01:05 |
| → jrmuizel joined | 01:05 |
| ← melter_ left | 01:05 |
| → lightcap joined | 01:07 |
| ← lightcap left | 01:07 |
| → rettub joined | 01:11 |
| ← jrmuizel left | 01:11 |
| Mike||gone → Mike_lifeguard | 01:12 |
| → loincloth joined | 01:15 |
| → jrmuizel joined | 01:16 |
| → jinzhu joined | 01:20 |
| → threeve joined | 01:23 |
| → justin-george joined | 01:25 |
| → jackdempsey_ joined | 01:25 |
| ← Paraselene__ left | 01:26 |
| ← Mike_lifeguard left | 01:26 |
| → justinlilly joined | 01:27 |
| → ajpiano joined | 01:29 |
|
Ilari
| Ugh. I had no idea about how much code writing just low level parts of transport can take: total code: ~190kB. Of that, ~10kB is high-level code dealing with sending requests, ~80kB is dealing with connection itself and ~100kB is about authentication... :-/ | 01:29 |
|
| ... And that's just for client end... | 01:32 |
| ← jrmuizel left | 01:34 |
| → ben_alman joined | 01:34 |
| ← bcardarella left | 01:34 |
| → bcardarella joined | 01:35 |
| → Jeena_ joined | 01:35 |
| Jeena_ → Jeena | 01:38 |
| → jrmuizel joined | 01:38 |
| ← bcardarella left | 01:39 |
| ← ajpiano left | 01:42 |
| → ajpiano joined | 01:45 |
| → pinnacle joined | 01:49 |
| → dutchie joined | 01:58 |
| ← dutchie left | 01:58 |
| → dutchie joined | 01:58 |
| → imajes joined | 01:58 |
| → hursttx joined | 02:04 |
| ← hursttx left | 02:05 |
| → bgerber joined | 02:05 |
| ← bgerber left | 02:06 |
| ← corto left | 02:06 |
| → consolers joined | 02:11 |
| → Frlncr joined | 02:14 |
| ← Frlncr left | 02:16 |
|
WebDragon
| Ilari: I feel your pain, mang. | 02:19 |
|
| forunately all I have to do this week is turn www.w-m-t.com/ into www.w-m-t.com/index_2010.php (still in progress but about 70-80% complete) | 02:20 |
| → tg joined | 02:22 |
| → dreiss joined | 02:26 |
| → VVSiz_ joined | 02:28 |
| → bgerber joined | 02:29 |
| ← loincloth left | 02:31 |
| → Bass10 joined | 02:31 |
| → fr0sty_ joined | 02:33 |
| → bcardarella joined | 02:35 |
| → loincloth joined | 02:37 |
| ← jackdempsey_ left | 02:41 |
| ← loincloth left | 02:42 |
| → loincloth joined | 02:42 |
| → hanasaki joined | 02:47 |
| ← Theravadan left | 02:48 |
| ← jrmuizel left | 02:49 |
|
FFForever
| can I rename a branch called remotes/origin/category to just category? | 02:50 |
|
Ilari
| FFForever: No. You presumably want 'git checkout -b category origin/category' (to create local branch out of it). | 02:51 |
|
FFForever
| Ilari, its not a local branch? | 02:51 |
|
| the fact I cloned everything does not make it local? | 02:52 |
|
Ilari
| FFForever: Its remote tracking branch, i.e. mirror of branch from another repository. | 02:52 |
|
FFForever
| ahhh | 02:52 |
|
hanasaki
| what is a good linux gui for GIT? | 02:53 |
|
Ilari
| FFForever: Clone creates local branch for one of the branches in remote repo. | 02:53 |
|
FFForever
| ahhh | 02:53 |
|
Ilari
| FFForever: Remote tracking branches are mainly updated by fetch and push. | 02:54 |
|
hanasaki
| FFForever: so if its distributed... what is the remote repo? | 02:54 |
| ← bcardarella left | 02:54 |
|
FFForever
| its something on github I am playing with :) | 02:55 |
| → zehrique joined | 02:55 |
| ← pinnacle left | 02:55 |
|
hanasaki
| FFForever: how would someone setup their own? | 02:55 |
|
FFForever
| dunno | 02:56 |
|
hanasaki
| my developers will have most of what they need local but maybe not the whole history however we need to have a corp lifetime repos w/ full history and security | 02:56 |
| → jaysern joined | 02:56 |
|
FFForever
| hanasaki, they have a self hosted github version | 02:57 |
| ← hipe_ left | 02:58 |
| → hipe joined | 03:00 |
| → a joined | 03:00 |
|
hanasaki
| can't ya just front end it with apache like svn does | 03:00 |
|
| ? | 03:00 |
|
a
| hello everybody | 03:01 |
| → pinnacle joined | 03:01 |
| → mattcodes joined | 03:02 |
|
a
| i would like to save new copies of a single file i am working on | 03:03 |
|
FFForever
| hanasaki, dunno, tbh I have my own problems and researching something like that for someone else is not high on my list | 03:03 |
|
a
| is this possible with git | 03:03 |
|
| ? | 03:03 |
| → johnw joined | 03:03 |
| → Guest47746 joined | 03:04 |
|
a
| is it possible to have revision control on a single file? | 03:04 |
|
| I would like to do it without setting up a complicated server | 03:04 |
|
kpreid_
| a: git needs no servers | 03:04 |
| ← Guest47746 left | 03:05 |
|
Thumper_
| a: just make a repo with that one file in it, track one file or lots of files whatever you need | 03:05 |
|
a
| ok ill hav a go at it | 03:05 |
|
| ill probably be back | 03:05 |
|
| thanks very much | 03:05 |
| ← catalis left | 03:07 |
| ← hipe left | 03:11 |
| → hipe joined | 03:11 |
| → khmarbaise joined | 03:11 |
|
hanasaki
| what's a good url for git and security.... ie: readonly code , id/pass needed to even view etc... | 03:12 |
|
FFForever
| hanasaki, you could checkout gitosis | 03:13 |
|
hanasaki
| thanks | 03:14 |
|
FFForever
| and you really should get a consultant to answer all of your questions | 03:14 |
|
| Ilari, any reason why git is written in python and not c? | 03:15 |
| → scissors joined | 03:17 |
|
hanasaki
| FFForever: if I need a consultant I will stay on svn | 03:17 |
| ← scissors left | 03:17 |
|
FFForever
| hanasaki, we are not a replacement for google.com | 03:17 |
|
consolers
| dead c | 03:17 |
|
FFForever
| or well I am not :) | 03:17 |
|
| consolers, c is not dead | 03:17 |
|
| isn't python written in c (well the runtime compiler) | 03:18 |
|
consolers
| it is in asia | 03:18 |
|
| asia minor | 03:18 |
|
Ilari
| FFForever: There's very little Python code in Git. | 03:18 |
|
FFForever
| Ilari, I thought git was written in python | 03:18 |
| → jargan joined | 03:19 |
|
consolers
| i havent used any python parts of git ever | 03:19 |
| → schambers joined | 03:19 |
|
consolers
| i think its in contrib | 03:19 |
| → Azeroth-Work joined | 03:20 |
| ← pinnacle left | 03:20 |
| → cytrinox_ joined | 03:21 |
| → defectiv joined | 03:21 |
|
consolers
| find -type f | wc -l => 3032, find -type f -name \*.py | wc -l => 3 | 03:21 |
|
defectiv
| is there a simple way to diff two branches? | 03:21 |
| ← brettgoulder left | 03:21 |
| → greg8si joined | 03:22 |
|
defectiv
| is there any way to diff two remote branches? | 03:22 |
|
consolers
| oh theres also contrib/gitview, which i'm seeing for the first time | 03:23 |
|
FFForever
| I stand corrected... from wikipedia: C, Bourne Shell, Perl[2] | 03:23 |
| → brettgoulder joined | 03:23 |
| cytrinox_ → cytrinox | 03:24 |
| → pantsman joined | 03:24 |
| → hipe_ joined | 03:27 |
| ← hipe left | 03:27 |
| ← hipe_ left | 03:29 |
| → hipe joined | 03:29 |
| ← hanasaki left | 03:29 |
|
anjen
| Hi. I jsut made a silly mistake while commiting my repo and some how the result was insted of jsut doing a simple commit, it deleted dozens of files fomr the commit....anyway...since I didn't push it, I'd just as soon pull the current commit from github. | 03:31 |
|
| My question is syntax | 03:31 |
|
| git pull master origin? | 03:31 |
| → munichlinux joined | 03:33 |
| → hipe_ joined | 03:35 |
|
jhelwig
| anjen: You just want to start over, and use whatever state GitHub has? | 03:36 |
| ← hipe left | 03:36 |
|
anjen
| jhelwig, yeah, i think that's the most prudent way to go | 03:36 |
| → tk joined | 03:37 |
|
anjen
| but it's been months and motnhs since I had to do anything *from github...forgot how. | 03:37 |
|
jhelwig
| anjen: git reset --hard origin/master <--- This will blow away any uncommitted changes you have, and make your current branch, and working files match whatever state the master branch on your origin remote have. | 03:37 |
|
anjen
| jhelwig, thank you. | 03:38 |
| → SpookyET joined | 03:40 |
| ← hipe_ left | 03:42 |
| → hipe joined | 03:42 |
| ← fr0sty_ left | 03:46 |
| → SanManuel joined | 03:50 |
| ← munichlinux left | 03:50 |
| ← threeve left | 03:51 |
| → Ze_M joined | 03:51 |
|
Ze_M
| how can i get the git release as compared to a svn releaes? | 03:52 |
|
| release* | 03:52 |
| → RobertLaptop_ joined | 03:53 |
|
anjen
| jhelwig, just wanted to exxperess my thanks again. had a hiccup during deployment that took our site down for about an hour, then the commit problem happend while I was online with the hosting company...had me a bit frazzled...anyway thanks so much. | 03:55 |
| → threeve joined | 03:55 |
| → munichlinux joined | 03:56 |
|
jhelwig
| anjen: No worries. You're welcome. :-) | 03:56 |
|
Ilari
| Ze_M: 'git describe'? I can't properly parse the question... | 03:57 |
|
Ze_M
| Ilari: how do i do for git as i used for svn "svn info" that would give the svn revsion | 03:58 |
|
| of git doesnt have revision tags? | 03:58 |
|
ToxicFrog
| What does 'svn info' do? | 03:58 |
|
jhelwig
| Ze_M: Git does have revisions, but they're not numeric like SVN. | 03:59 |
|
Ilari
| Ze_M: Well, 'git describe' tries to describe current version in terms of last annotated tag. | 03:59 |
|
jhelwig
| Ze_M: Do this, and you'll see: git log --pretty=format:'%H' -1 | 03:59 |
| ← hipe left | 03:59 |
|
Ze_M
| jhelwig: so how are they? | 03:59 |
|
ToxicFrog
| They're SHA1s. | 03:59 |
|
Ilari
| Ze_M: Or 'git rev-parse HEAD' to see raw hexadecimal ID of last commit. | 03:59 |
| → hipe joined | 03:59 |
|
Ze_M
| ToxicFrog: i used svn revision numbers to set release in rpms anmings | 04:00 |
|
| so now with git what can i use? | 04:00 |
|
ToxicFrog
| Each commit has a unique 40-digit hex ID. | 04:00 |
|
| Hmm. Number of commits since the beginning? First N digits of commit id? Release number, where each release increments it? | 04:00 |
| ← a left | 04:02 |
|
Ze_M
| ToxicFrog: here is an example of a rpm naming: foo-1.2-0.svn12345.1 | 04:02 |
|
| so now with git how can i do if there isnt a release | 04:03 |
|
Morasique
| Ze_M: you can take the first n characters of the sha hash; 7 is common | 04:03 |
|
ToxicFrog
| So what's wrong with foo-1.2-0.git309d72.1 ? | 04:03 |
|
Ze_M
| mean revision | 04:03 |
|
| ToxicFrog: and how do i get that git revsion number? | 04:03 |
|
Ilari
| Ze_M: 'git describe' to get somewhat pretty-printed one? | 04:04 |
|
alduin
| Do you tag your versions? If so, isn't the version number and the svn revision redundant? | 04:04 |
| → stephans joined | 04:04 |
|
Ze_M
| ]$ git describe | 04:04 |
|
| fatal: cannot describe 'd1cf9027b2c735a9a48830a40cbae824a8572d44' | 04:04 |
|
ToxicFrog
| Ze_M: git log --pretty=oneline -n1 | 04:05 |
|
| Or, if you want "number of commits in this branch since the beginning", you can try something like: | 04:05 |
|
Ilari
| Ze_M: You don't have annoated tags to act as base. Maybe try 'git describe --tags' (consider all tags). | 04:05 |
|
Ze_M
| d1cf9027b2c735a9a48830a40cbae824a8572d44 Fixed typo in Phonon::EffectWidget implementation | 04:05 |
|
| lines 1-1/1 (END) | 04:05 |
|
ToxicFrog
| git log --pretty=oneline | wc -l | 04:05 |
| → SpookyET_ joined | 04:06 |
|
ToxicFrog
| This has the advantage (?) that unlike the sha1, it's guaranteed to increase as you make more commits, barring history rewrites. | 04:06 |
|
Ze_M
| ]$ git describe --tags | 04:06 |
|
| fatal: cannot describe 'd1cf9027b2c735a9a48830a40cbae824a8572d44' | 04:06 |
|
Morasique
| but has the disadvantage of not necessarily being unique | 04:06 |
| → DrNick joined | 04:06 |
|
ToxicFrog
| Morasique: quite. | 04:06 |
|
Ze_M
| ToxicFrog: so now i finally get a revision number | 04:07 |
|
| i only name rpms when i use the svn source code | 04:07 |
|
| so if i use the gir source code i also need to tag it with the git revision number | 04:07 |
|
| ToxicFrog: pretty hard to get the git revision number.... | 04:08 |
|
Ilari
| Ze_M: If you don't have anything to compare the version to, best one can do is to take some prefix of 'git rev-parse HEAD' (the commit ID). | 04:08 |
| → catalis joined | 04:08 |
|
Ze_M
| with svn, when doiung "svn up" it aleays shows the revsion in the end of the svn update | 04:08 |
|
Ilari
| For example: 'git rev-parse master' yields '72f06252494ed9f38fe7b7295eca1437869bdb7c' in one of my repos. That is the ID of newest version in master of that repo. | 04:09 |
|
Morasique
| Ze_M: git doesn't do global revision numbers; every commit has an id, and at any time your HEAD can be pointing at one of those commits | 04:09 |
| ← SpookyET left | 04:10 |
|
Ilari
| Git commit IDs are globally valid. | 04:11 |
|
Ze_M
| Ilari: i just need a way to tag the packages | 04:11 |
|
| with svn i use the svn revision | 04:12 |
| → magn3ts joined | 04:12 |
|
Ze_M
| so isnt there a simple git command to get the git revision number? | 04:12 |
|
ToxicFrog
| <Morasique> Ze_M: git doesn't do global revision numbers; every commit has an id, and at any time your HEAD can be pointing at one of those commits | 04:12 |
|
Ilari
| Ze_M: 'git rev-parse <branch>'? | 04:12 |
|
| Ze_M: Sows ID of newest revision on <branch>. | 04:13 |
|
| *shows | 04:13 |
|
Ze_M
| branch? | 04:14 |
|
| i think im using trunk | 04:14 |
|
| what a confusion.... | 04:14 |
|
ToxicFrog
| You mean master? | 04:14 |
|
Ilari
| Ze_M: And 'master' is just ordinary branch. It isn't something special like trunk is in SVN... | 04:14 |
| ← SpookyET_ left | 04:15 |
|
ToxicFrog
| Git doesn't have a single globally incrementing revision number like SVN; it doesn't have an incrementing revision number at all. Each commit gets a single unique ID based on its contents, and that ID is part of the commit, not part of the repo | 04:15 |
|
Ze_M
| ToxicFrog: so how can i do to name the rpms i do from git repository? | 04:16 |
|
ToxicFrog
| We've already suggested a few ways. | 04:16 |
|
Ze_M
| but im confused | 04:16 |
|
ToxicFrog
| You can take the first N digits of the commit ID, for starters; that's not guaranteed to increment, but it is guaranteed to be unique. | 04:16 |
|
Ze_M
| i liked the one you said: git log --pretty=oneline | wc -l | 04:16 |
| → SpookyET joined | 04:16 |
|
Ze_M
| ToxicFrog: in wich showed a number 2066 | 04:16 |
|
ToxicFrog
| That gives you the number of commits in the current branch | 04:17 |
|
Morasique
| that's just how many commits are in the history though | 04:17 |
|
Ze_M
| so this number will increasing with the commits in git tree? | 04:17 |
|
Morasique
| if you rebase it could go down, and if you branch you could have totally different commits with the same number | 04:17 |
| → hipe_ joined | 04:17 |
|
ToxicFrog
| For a given branch, yes | 04:17 |
|
| But if you, say, are on branch A | 04:17 |
|
| And it says 100 | 04:17 |
|
| You switch to branch B, and make some commits, and switch back to A | 04:17 |
|
| It'll still say 100, because those commits aren't in A's history. | 04:17 |
|
| And of course if you rewrite history all bets are off. | 04:18 |
|
Ze_M
| why would i change to other branch? | 04:18 |
|
ToxicFrog
| o.O | 04:18 |
| → hyperair joined | 04:18 |
|
Ilari
| Ze_M: This isn't SVN. :-) | 04:18 |
|
Morasique
| i continue to get the impression you don't use version control for much :) | 04:18 |
| ← hipe left | 04:18 |
|
ToxicFrog
| If you really need a single steadily increasingly number, you could always write a post-commit hook that increments and stores it somewhere | 04:19 |
|
Morasique
| if you only use one branch ever, and you never rebase or otherwise mess with commits, then i suppose the line count thing is ok | 04:19 |
|
Ze_M
| im usied to checkout svn trees and use the revision number to tag the rpms | 04:19 |
|
Morasique
| that's weird though | 04:19 |
|
Ze_M
| what a confusion | 04:19 |
|
| let me give an exmaple | 04:19 |
|
Morasique
| you're trying really hard to apply an svn concept to git | 04:19 |
|
ToxicFrog
| Ze_M: git has fast, cheap, and easy branching, and thus most people using git use branches a lot - for example, one branch for each feature you're working on | 04:19 |
|
Morasique
| it's be like if somebody sat in #svn for 20 minutes asking how to rebase a branch | 04:19 |
|
ToxicFrog
| When you finish a feature, you merge it back into master | 04:19 |
|
Ze_M
| im packaging phonon, but now phonon as a git tree and not svn | 04:20 |
|
ToxicFrog
| The branch ceases to exist as a seperate entity and its changes are incorporated into the main branch (what would be "trunk" on svn) | 04:20 |
| ← ajpiano left | 04:20 |
| → anjen joined | 04:21 |
|
Morasique
| Ze_M: is it connected through git-svn? or is it an actual separate git tree | 04:21 |
|
Ze_M
| a git tree | 04:21 |
| ← johnw left | 04:22 |
|
Morasique
| mmk. git-svn has a way to get the latest svn revision number, but naturally standard git doesn't | 04:22 |
| → hipe joined | 04:22 |
|
Ze_M
| git clone git://gitorious.org/phonon/phonon.git | 04:22 |
|
ToxicFrog
| Ze_M: ok, question. Is it important that the release number be an _increasing_ number? | 04:23 |
|
| Or is it enough that it just be unique? | 04:23 |
|
Ze_M
| ToxicFrog: increasing | 04:23 |
|
| that increases with the commits | 04:23 |
|
Ilari
| Ze_M: Generating "sane" revision numbers is easier if you have tags for upstream releases. For example, for that 72f0... revision, one can get that it is 384th revision in its history. But knowing tag for JPC-RR-r8.1 lets one to say its 33 commits ahead of JPC-RR-r8.1, yielding 'JPC-RR-8.1.git33' which is much saner revision number. | 04:24 |
| ← hipe_ left | 04:24 |
|
Ze_M
| Ilari: your confusing me | 04:24 |
|
Morasique
| Ze_M: instead of counting from the beginning of the repo, you can count from the last time a tag was made | 04:25 |
|
| assuming you ever make tags, which it sounds like you don't | 04:25 |
|
Ze_M
| Morasique: i dont what?? | 04:26 |
| → douilspee joined | 04:26 |
|
Morasique
| tag commits | 04:26 |
| ← anjen left | 04:26 |
|
Morasique
| same concept as svn tags | 04:26 |
| ← SanManuel left | 04:27 |
|
Ze_M
| i do commits in some projects, whats the doubt? | 04:27 |
|
| Morasique: but what that have to do to what i asked? | 04:27 |
| ← Bass10 left | 04:27 |
|
ToxicFrog
| Ze_M: you tag each version. | 04:28 |
|
| For release numbers, you then count 'commits since last tag' | 04:28 |
|
Morasique
| it's another way of labeling revisions that's somewhat better than a straight incrementing number | 04:28 |
|
Ze_M
| ToxicFrog: i tag a rpm with the svn revision number | 04:30 |
|
Morasique
| it seems like we keep going in circles | 04:30 |
|
| it sounds like you should just use git rev-list HEAD | wc -l | 04:30 |
|
SpookyET
| Has anyone got a link to a comprehensive subtree tutorial? | 04:30 |
|
Morasique
| it has deficiencies, but not any that seem to be a problem for you | 04:30 |
| → jackdempsey_ joined | 04:30 |
|
Ze_M
| if the svn revision is 20034 the rpm will be rpm-3.1-o.svn20034.1 | 04:31 |
|
Morasique
| we get the concept | 04:31 |
|
Ze_M
| so i just need a git revision to be able to correctly tag rpms that are using git sources | 04:31 |
| ← zehrique left | 04:32 |
|
Morasique
| am i on ignore or something? | 04:32 |
|
Ze_M
| Morasique: your confusing me more :) | 04:32 |
|
SpookyET
| I'm looking for in-depth information than git read-tree --prefix... | 04:32 |
|
Morasique
| Ze_M: "git rev-list HEAD | wc -l" | 04:32 |
|
Ilari
| Ze_M: Make tag for 3.1 (or whatever), use git describe and process the output a bit. | 04:32 |
|
Morasique
| that will give you a number. use that number | 04:32 |
|
Ze_M
| Morasique: that number is increased with git commits? | 04:33 |
|
Morasique
| to that particular branch, yes. it's the number of commits in the current branch | 04:33 |
|
Ze_M
| so it can be called as the git revision? | 04:34 |
|
| i need to explain what was donein the %changelog | 04:34 |
|
Morasique
| i don't think i'd be comfortable saying that on the record, but if you're hell-bent on a monotonically-increasing number based on the number of commits in a branch, that's probably the best way | 04:35 |
|
Ze_M
| ok | 04:35 |
|
| thanks | 04:35 |
| → pfote joined | 04:35 |
|
Ilari
| Its only best way if you don't have tags! | 04:35 |
|
Morasique
| he doesn't have tags | 04:35 |
|
| and trying to talk about tags caused massive confusion | 04:35 |
| ← cloudhead left | 04:35 |
|
Ilari
| And if you don't have tags, then you get problems trying to form version numbers anyway. | 04:36 |
|
Ze_M
| Ilari: i know all that | 04:36 |
|
| but if using from a svn repo i need to include the svn release in naming | 04:36 |
|
Ilari
| Ze_M: Like, is this version after or before 1.2? | 04:36 |
|
Ze_M
| it have to do with correclty tagging and naming a rpm | 04:37 |
| → tchan joined | 04:37 |
|
Ilari
| Ze_M: So should it be named '1.1-g633' or '1.2-g7'? Or what? | 04:37 |
| → pheaver joined | 04:37 |
|
Ze_M
| god | 04:38 |
|
| if i dont use a source from a svn i dont need to include the svn revision number in the rpm naming | 04:38 |
|
Ilari
| Ze_M: Say you package r20034. How you know it is to be called 3.1 and not 3.0? | 04:39 |
|
Ze_M
| that is the version of the source app | 04:39 |
|
| lets take the phonon example | 04:40 |
|
| phnon version is 4.3.8 | 04:40 |
|
| so now that i use git source it will be tagged as phonon-4.3.8-0.git2066.1 | 04:40 |
| → fahadsadah joined | 04:41 |
|
Ze_M
| when version 4.3.8 will be officially release than ill use the official source code and will tag rpm as phonon-4.3.8-1 | 04:42 |
|
| 4.3.8-0.git2066.1 is smaller than 4.3.8-1 | 04:42 |
|
| understand now te naming and versioning process of a rpm? | 04:43 |
|
Ilari
| Ze_M: I have seen some git-versioned packages. IIRC, those used commit date, not revision count. | 04:44 |
|
Ze_M
| but ToxicFrog already pointed that way that you said | 04:44 |
|
| this is the corect way to tag rpms | 04:44 |
|
| since date doesnt say from where the source is from | 04:44 |
|
| this way you can see that is from the git source tree and its revision number | 04:45 |
|
| its far more accurate | 04:45 |
|
Ilari
| Ze_M: Those revision count numbers are NOT unique even within repo or even within a branch! | 04:47 |
|
Ze_M
| im not going to discuss the naming and versioning process | 04:47 |
| ← Ze_M left | 04:47 |
|
Ilari
| Well, that discussion was going nowhere. :-/ | 04:48 |
| → madewokherd joined | 04:49 |
| ← brettgoulder left | 04:51 |
| → mdgrech joined | 04:52 |
| → disappearedng joined | 04:52 |
| → sh1mmer joined | 04:54 |
| → brettgoulder joined | 04:58 |
| ← mdgrech left | 04:59 |
| ← schambers left | 04:59 |
| → robinr joined | 05:02 |
| ← disappearedng left | 05:03 |
| → disappearedng_ joined | 05:03 |
| disappearedng_ → disappearedng | 05:03 |
| → aresnick joined | 05:10 |
| ← tchan left | 05:10 |
| ← jackdempsey_ left | 05:14 |
| → roop joined | 05:15 |
| → Axius joined | 05:17 |
| ← defectiv left | 05:18 |
| → offby1` joined | 05:19 |
| ← sh1mmer left | 05:21 |
| → rchavik joined | 05:21 |
| ← brettgoulder left | 05:21 |
| → Arafangion joined | 05:23 |
| → tchan joined | 05:24 |
| → AkumaStreak joined | 05:25 |
| → sh1mmer joined | 05:26 |
| → csgeek joined | 05:26 |
| ← justin-george left | 05:26 |
| → carrus85 joined | 05:27 |
| → numberGrey joined | 05:28 |
| → jrmuizel joined | 05:28 |
| → AAA_awright joined | 05:28 |
| ← disappearedng left | 05:29 |
| → locklace joined | 05:31 |
| → zjason``` joined | 05:32 |
| → tewk joined | 05:33 |
| ← rettub left | 05:34 |
| ← hyperair left | 05:35 |
| → harv joined | 05:36 |
| → trodrigues joined | 05:36 |
| ← aresnick left | 05:36 |
| → shad joined | 05:37 |
| → rettub joined | 05:37 |
| → defectiv joined | 05:38 |
| → Mage_Dude joined | 05:40 |
| → neuro_damage joined | 05:41 |
|
neuro_damage
| would it be ok to move a .git repo on a server from one server to another without issue? | 05:42 |
| → jjore joined | 05:42 |
|
jhelwig
| neuro_damage: There's nothing in the repo itself to prevent this. | 05:43 |
| → disappearedng joined | 05:44 |
| → hyperair joined | 05:44 |
| ← pheaver left | 05:45 |
| → disappearedng_ joined | 05:45 |
| ← defectiv left | 05:47 |
|
neuro_damage
| jhelwig: ok very cool :) | 05:48 |
| → ArdRigh joined | 05:50 |
| → lightcap joined | 05:52 |
| ← AAA_awright left | 05:52 |
| ← tchan left | 05:52 |
| → AAA_awright joined | 05:53 |
| → Mage joined | 05:53 |
| ← maattd left | 05:53 |
| → defectiv joined | 05:54 |
| → dytrivedi joined | 05:57 |
| ← disappearedng_ left | 05:57 |
| → amerine joined | 05:57 |
| ← Mage_Dude left | 06:01 |
| ← defectiv left | 06:03 |
| ← consolers left | 06:03 |
| → tchan joined | 06:04 |
| → Khisanth joined | 06:06 |
| → cedricv joined | 06:06 |
| → Mage_Dude joined | 06:07 |
| ← Mage_Dude left | 06:09 |
| → Garen joined | 06:10 |
| ← Axius left | 06:11 |
| ← jmcantrell left | 06:19 |
| ← threeve left | 06:19 |
| ← hyperair left | 06:22 |
| ← SpookyET left | 06:23 |
| → SpookyET joined | 06:23 |
| → brettgoulder joined | 06:26 |
| → disappearedng_ joined | 06:27 |
| ← disappearedng left | 06:29 |
| ← brettgoulder left | 06:32 |
| ← munichlinux left | 06:33 |
| → brettgoulder joined | 06:34 |
| → JackWinter2 joined | 06:35 |
| → bambule joined | 06:39 |
| ← scarabx left | 06:39 |
| → disappearedng joined | 06:43 |
| → TDJACR joined | 06:43 |
| ← cehteh left | 06:45 |
| ← sh1mmer left | 06:48 |
| → spb joined | 06:49 |
| → mssm joined | 06:49 |
| → cehteh joined | 06:49 |
| ← mattcodes left | 06:50 |
| ← mithro left | 06:51 |
| ← brettgoulder left | 06:51 |
| → sh1mmer joined | 06:51 |
| → brettgoulder joined | 06:54 |
| → guide joined | 06:54 |
| → plediii_ joined | 06:57 |
| → gmarquezWRS joined | 06:57 |
| → jrmuizel_ joined | 06:58 |
| ← jrmuizel left | 06:58 |
| jrmuizel_ → jrmuizel | 06:58 |
| → VAAGMAB joined | 06:58 |
| → dpino joined | 06:59 |
| → hyperair joined | 07:00 |
| → ribasushi joined | 07:01 |
| ← catalis left | 07:04 |
| → mattcodes joined | 07:05 |
| → mithro joined | 07:07 |
| ← numberGrey left | 07:07 |
| ← bambule left | 07:08 |
| → Ramosa joined | 07:10 |
| ← lightcap left | 07:10 |
| → SunilThaha joined | 07:11 |
| → defectiv joined | 07:12 |
| ← amerine left | 07:12 |
| → amerine joined | 07:13 |
| → ph^_ joined | 07:13 |
| → miro_dietiker joined | 07:13 |
| ← defectiv left | 07:14 |
| → johnw joined | 07:16 |
|
miro_dietiker
| hii can't find any short help for a simple merge problem: someone pushed to my master and i've a merge conflict with my local changes. can't git pull (error: Entry 'xxx' not uptodate. Cannot merge.) | 07:16 |
|
| how do i successfully merge this? | 07:16 |
| ← AAA_awright left | 07:17 |
| → lightcap joined | 07:17 |
|
johnw
| do a fetch, then you can manage the merge manually | 07:18 |
|
| you'll need to do something about the notuptodate entry | 07:18 |
| ← lightcap left | 07:19 |
| → posix4e joined | 07:19 |
| → lightcap joined | 07:19 |
|
miro_dietiker
| johnw - what actually will fetch do with the file? | 07:20 |
| ← posix4e left | 07:22 |
| → priidu joined | 07:22 |
| ← SunilThaha left | 07:22 |
|
johnw
| fetch just brings all the changes down locally | 07:23 |
|
| so you can run "git merge" yourself | 07:23 |
|
| instead of doing a pull | 07:23 |
|
| i'm not sure exactly how to fix your situation, I always forget until I need to do it | 07:23 |
|
miro_dietiker
| johnw -- so it won't overwrite my file but only update the local git storage | 07:24 |
| ← VVSiz_ left | 07:24 |
|
johnw
| yeah | 07:24 |
|
miro_dietiker
| :-) | 07:24 |
| → VVSiz joined | 07:24 |
| → giallu joined | 07:26 |
|
miro_dietiker
| hmm.. doesn't do anything (seems it's fetched already) | 07:26 |
|
| so i don't know how to handle the merge command | 07:26 |
| ← magn3ts left | 07:27 |
|
miro_dietiker
| aah .... git fetched HEAD into FETCH_HEAD | 07:27 |
| → mjf joined | 07:29 |
| → tbf joined | 07:32 |
|
miro_dietiker
| funny. that was a single line i've changed where i see no conflict when diff'ing ... created diff, undo changes, pulled, applied changes, pushed ... | 07:32 |
|
| strange thing this worked | 07:32 |
|
| thx johnw | 07:33 |
| ← mjf left | 07:34 |
|
johnw
| sure | 07:36 |
| → jackdempsey joined | 07:36 |
| → steffkes joined | 07:38 |
| ← amerine left | 07:38 |
| → unijunction joined | 07:39 |
| → maxthoursie joined | 07:40 |
| ← lightcap left | 07:40 |
| → darwin_ joined | 07:41 |
| ← mssm left | 07:41 |
| → lightcap joined | 07:43 |
| → cao joined | 07:44 |
| → thiago_home joined | 07:45 |
| → ntoll joined | 07:45 |
| → mtkd joined | 07:46 |
| ← SpookyET left | 07:47 |
| ← tchan left | 07:47 |
| → zubin71 joined | 07:48 |
|
zubin71
| is it possible to make a patch file using git? | 07:48 |
| → psoo joined | 07:48 |
|
zubin71
| how could i do that? | 07:48 |
| → Longinus00 joined | 07:49 |
|
ArjenL
| 'git diff $commit1 $commit2 > change.patch' ? | 07:50 |
| → munichlinux joined | 07:50 |
|
zubin71
| ArjenL, thnkx | 07:50 |
|
Longinus00
| so how do you deal with files that git won't reset? | 07:50 |
| → tchan joined | 07:51 |
|
Longinus00
| ahh, autocrlf was being crazy | 07:53 |
| → ludde joined | 07:53 |
| → ixti joined | 07:53 |
| ← zubin71 left | 07:54 |
| → Paraselene__ joined | 07:57 |
| → trochala joined | 07:57 |
| ← Longinus00 left | 07:57 |
| → loops joined | 07:59 |
| ← cao left | 08:02 |
| ← justinlilly left | 08:03 |
| → malesca joined | 08:05 |
| → cao joined | 08:07 |
| ← malesca left | 08:07 |
| ← jrmuizel left | 08:08 |
| → db- joined | 08:11 |
| → AAA_awright joined | 08:12 |
| → jokaro joined | 08:12 |
| → wolog joined | 08:13 |
| → davidw joined | 08:13 |
| ← lightcap left | 08:13 |
| davidw → Guest6005 | 08:13 |
| → psankar joined | 08:15 |
| → tmske joined | 08:16 |
|
db-
| consider the following. A branch created from foo called bar. Now I make changes in bar and foo which are on purpose and don't get merged. Now I have to fix a bug in foo, so I created foo_bug1234 branch, in that branch I did several commits to fix that bug. But how can I merge only the changes from foo_bug1234 into bar without also getting the changes from foo? | 08:19 |
| → JonathanT joined | 08:19 |
|
db-
| i obviously don't want to find out every commit by hand and cherrypick those do I? | 08:20 |
| ← jaysern left | 08:20 |
| ← Jeena left | 08:22 |
|
johnw
| db-: rebase --onto can be used to "multi-cherry-pick" | 08:23 |
|
db-
| sounds dangerous. foo and bar are remote | 08:25 |
| → mrchrisadams joined | 08:27 |
| → mastro joined | 08:28 |
| ← thiago_home left | 08:28 |
| → mastroDani joined | 08:28 |
| ← mastroDani left | 08:28 |
| → aatanasov joined | 08:31 |
| ← jackdempsey left | 08:31 |
| ← AAA_awright left | 08:35 |
| → AAA_awright joined | 08:35 |
| ← wolog left | 08:35 |
| → wolog joined | 08:36 |
|
wereHamster
| johnw: pull = fetch+merge | 08:36 |
| → ttvd joined | 08:36 |
|
johnw
| ya | 08:36 |
| → ycyuxin joined | 08:39 |
| ← dreiss left | 08:40 |
| → ToXedVirus joined | 08:43 |
| → bibinou joined | 08:44 |
| → Jeena joined | 08:46 |
| → galderz joined | 08:46 |
| ← roop left | 08:48 |
| → gebi joined | 08:55 |
| → tvw joined | 08:57 |
| ← bibinou left | 08:58 |
| → mugwump joined | 09:00 |
| ← mrchrisadams left | 09:03 |
| ← greg8si left | 09:06 |
| ← wolog left | 09:10 |
| ← johnw left | 09:11 |
| → shruggar joined | 09:11 |
| → froschi joined | 09:11 |
| → wolog joined | 09:13 |
| → jelmer joined | 09:16 |
| ← hyperair left | 09:18 |
| ← Jeena left | 09:20 |
| → gma joined | 09:23 |
| ← gma left | 09:23 |
| → hyperair joined | 09:24 |
| → tatsuya joined | 09:25 |
| → christophsturm joined | 09:26 |
| → Justme` joined | 09:27 |
| ← ycyuxin left | 09:32 |
| → frogonwheels_ joined | 09:33 |
| ← Justme` left | 09:37 |
| → petrux joined | 09:38 |
| → mason-l joined | 09:38 |
| → tobiassjosten joined | 09:42 |
| ← Mage left | 09:43 |
| → themill joined | 09:44 |
| → patthoyts joined | 09:45 |
| ← rchavik left | 09:47 |
| → mrchrisadams joined | 09:54 |
| → bluenovember joined | 09:55 |
| ← ArdRigh left | 09:58 |
| → Juice10 joined | 10:00 |
| → roop joined | 10:00 |
|
Saur
| Is there an easier way than "git cat-file -p $sha | sed -e '0,/^$/d'" to get at the commit message for a specific object $sha? | 10:00 |
| → merlin83 joined | 10:01 |
| ← merlin83 left | 10:01 |
| → merlin83 joined | 10:01 |
| ← cehteh left | 10:03 |
| → cehteh joined | 10:03 |
|
sitaram
| git log -1 --format='%s%n%n%b' $sha | 10:04 |
|
ArjenL
| Saur: Something like this?: git log -1 --format="Subject:%s%nBody:%b" $sha | 10:04 |
|
sitaram
| almost the same thing | 10:04 |
| ← roop left | 10:04 |
|
sitaram
| (I get an extra newline though...) | 10:04 |
| → jasonn1234 joined | 10:04 |
| ← Kelly_zhou left | 10:07 |
|
Saur
| Thanks for the suggestions. However, git log does not seem to be able to regenerate the original commit message (it "unbreaks" multi-line subjects for one) so I think I'll stick with git cat-file. | 10:10 |
| → solydzajs joined | 10:11 |
|
ArjenL
| Ah yes, the convention is a one-line subject | 10:13 |
| → xanonus joined | 10:13 |
|
Saur
| Yeah, and since this is part of a commit message validator in the pre-receive hook, I want it to be exactly what the user committed | 10:14 |
| → [reaVer] joined | 10:15 |
| ← [reaVer] left | 10:15 |
| → [reaVer] joined | 10:15 |
| → d0ugal joined | 10:16 |
| Guest6005 → davidw | 10:19 |
| ← davidw left | 10:19 |
| → davidw joined | 10:19 |
| ← davidw left | 10:20 |
| → DavidKlein joined | 10:20 |
| [reaVer] → reaVer | 10:21 |
| ← aatanasov left | 10:21 |
| → remi joined | 10:22 |
| → aatanasov joined | 10:23 |
| → orafu joined | 10:26 |
| → IRSeekBot10 joined | 10:27 |
| → project2501a joined | 10:29 |
| → solydzajs_ joined | 10:29 |
| ← solydzajs_ left | 10:29 |
| → MetaCosm_ joined | 10:29 |
| ← solydzajs left | 10:31 |
| ← aatanasov left | 10:34 |
| → viniciusluiz joined | 10:36 |
| → loinclot_ joined | 10:38 |
| ← loincloth left | 10:38 |
| ← dpino left | 10:43 |
| → MetaCosm joined | 10:44 |
| → piranha joined | 10:46 |
|
piranha
| hi guys. Is it possible to run arbitrary command when push fails? (for example, when I tried to do a non-fast-forward push) | 10:46 |
| → aatanasov joined | 10:46 |
| ← froschi left | 10:47 |
| → d0k joined | 10:51 |
|
ludde
| warning: too many files (created: 169 deleted: 1577), skipping inexact rename detection | 10:51 |
| ← aatanasov left | 10:52 |
|
ludde
| how do I get git to NOT skip the rename detection? | 10:52 |
|
ArjenL
| ludde: configure 'diff.renameLimit' to a suffciently high number | 10:54 |
|
Grum
| piranha: what problem are you trying to solve? | 10:55 |
|
ludde
| thanks | 10:55 |
|
piranha
| Grum: I want a notification when a push is rejected. :-) It lasts for few seconds sometimes and I often don't remember to check if push was successful | 10:56 |
|
BearPerson
| shouldn't that affect the exit code of the push command? | 10:57 |
|
Grum
| BearPerson: yeah it should, so you could just wrap it | 10:57 |
|
BearPerson
| git push origin branch || aplay /usr/local/share/notify/push_failed_tadaa.ogg | 10:57 |
|
piranha
| hmmm | 10:58 |
|
| ok, thanks, I'll try to go this way | 10:59 |
| → Wazzzaaa joined | 10:59 |
| → dpino joined | 10:59 |
| ← jinzhu left | 11:00 |
| → NetHawk joined | 11:02 |
| → gitte joined | 11:03 |
|
Wazzzaaa
| Hey, I want to exclude all class files to commit | 11:03 |
|
| A common situation imho | 11:03 |
|
| I added *.class to .gitignore. But when I do "git commit -a" I still see all class files | 11:03 |
|
| Do I miss something ? | 11:04 |
| → cyberglitch joined | 11:06 |
| → loincloth joined | 11:06 |
| ← loinclot_ left | 11:07 |
|
Wazzzaaa
| even when I commit the .gitignore first... | 11:07 |
|
shruggar
| Wazzzaaa, what do you mean by "see"? | 11:07 |
|
Wazzzaaa
| The class files are showed as 'new file' | 11:07 |
|
shruggar
| dit you "git add" them? | 11:08 |
| → aatanasov joined | 11:08 |
|
Wazzzaaa
| uhmmm, yes | 11:08 |
|
shruggar
| .gitignore only ignores files you haven't specifically told it to add | 11:08 |
|
Wazzzaaa
| I see them in the text editor which opens after "git commit -a" | 11:08 |
| → RdeWilde joined | 11:09 |
|
Wazzzaaa
| CAn you tell me how to un-add them? | 11:09 |
| → marc_kdab joined | 11:09 |
| → j416 joined | 11:09 |
|
Wazzzaaa
| I just did: git add . (I thought it should ignore the *.class files). | 11:09 |
|
shruggar
| git add . should ignore what's already in .gitignore, yes | 11:10 |
| → simplechat joined | 11:10 |
|
shruggar
| so you made .gitignore, then did git add ., and now "git status" shows them as being new? | 11:10 |
|
j416
| Wazzzaaa: but only if those files were not already tracked. | 11:11 |
|
Wazzzaaa
| yeah, they aren't yet committed. But I think I did the "git add .", before making the .gitignire | 11:11 |
|
| .gitignore* | 11:11 |
|
j416
| "git status" will tell you how to undo. | 11:12 |
|
Wazzzaaa
| ok, thnx | 11:12 |
| ← viniciusluiz left | 11:12 |
| → viniciusluiz joined | 11:13 |
|
shruggar
| .gitignore says "I do not intend to track these files, so don't show them to me when I ask which untracked things exist", git add says "track these files", and doesn't care what you've ignored, because it is tracking them, not listing them | 11:13 |
|
Wazzzaaa
| DO I need to unstage it ? | 11:13 |
|
j416
| Wazzzaaa: yes | 11:13 |
|
Wazzzaaa
| ok :) | 11:13 |
|
j416
| staged files will go into the next commit | 11:13 |
|
| ignored files are not staged in the first place | 11:13 |
| → kukks joined | 11:13 |
|
Wazzzaaa
| thnx for the help | 11:14 |
|
| I really like git :D | 11:14 |
|
| so much better than CVS | 11:14 |
|
shruggar
| Wazzzaaa, that's because it's awesome | 11:14 |
| → jds joined | 11:14 |
|
| Wazzzaaa agress * | 11:14 |
|
Wazzzaaa
| s/s/e | 11:14 |
| ← NetHawk left | 11:15 |
|
j416
| heh | 11:15 |
|
shruggar
| actually, "awesome" is too strong a word.. "actually does what it should" sounds about right | 11:15 |
|
| which is pretty awesome | 11:15 |
|
j416
| hmm | 11:15 |
|
| it does what I want it to do, more or less. Which makes it good. :) | 11:15 |
| ← mithro left | 11:16 |
| → lemonchicken joined | 11:17 |
| ← aatanasov left | 11:17 |
| → tschundeee joined | 11:19 |
| → mssm joined | 11:20 |
| ← piranha left | 11:20 |
| ← hipe left | 11:22 |
| jargan → jast | 11:27 |
| ← munichlinux left | 11:28 |
| → bentob0x joined | 11:32 |
| → froschi joined | 11:34 |
| → steveire joined | 11:37 |
| ← steveire left | 11:37 |
| → steveire joined | 11:37 |
| ← bentob0x left | 11:38 |
| → bentob0x joined | 11:38 |
| → parasti joined | 11:40 |
| → viola joined | 11:44 |
| ← hyperair left | 11:45 |
| → csaba joined | 11:46 |
| → Sigma joined | 11:46 |
|
csaba
| in svn I cannot define arbitrary keywords, I must use the 4 defined ones... can I define my own custom keywords in git? | 11:47 |
| ← brettgoulder left | 11:47 |
|
csaba
| For example, I define xxx to have the value zzz, and then all instances of $xxx$ in the file get replaced with zzz | 11:47 |
|
| 587 users online and no one knows? :) | 11:48 |
|
| or is it lunch break.... | 11:48 |
| → TMinus36 joined | 11:49 |
|
Grum
| csaba: most people dont abuse git to do that stuff but simply have a autoconf process dealing with it | 11:49 |
|
zomg
| csaba: 2 minutes is hardly enough time for all 587 of us to see your question :P | 11:49 |
|
csaba
| the thing is I use a version number which needs to be defined globally... right now, when the src is checked out, we run a script which replaces all instances of @@version@@ with some predefined version | 11:50 |
|
| but it would be awesome if we could define this somewhere as a keyword, and let git handle it for us | 11:50 |
| → NetHawk joined | 11:52 |
|
Saur
| csaba: See "Keyword Expansion" in http://progit.org/book/ch7-2.html | 11:52 |
|
TMinus36
| Hi all. I'm a bit new to git and from reading the documentation I've become a bit turned around. Just wanted to confirm I'm doing this right. So I have this local repo of files I want to add to my remote repo "Test.git" on my server. Am I correct into thinking that the following sequence is correct, once I setup a "git remote yada" ? 'git add . | git commit -a | git push' ? Everything goes without but nothing is showing up in the directory | 11:52 |
|
| goes without *error | 11:53 |
|
csaba
| ok thanks | 11:54 |
|
parasti
| TMinus36: sounds like faq non-bare | 11:54 |
|
| TMinus36: if the bot would wake up... hang on | 11:54 |
|
| TMinus36: http://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F | 11:55 |
|
TMinus36
| Ok I'll look it over. Thank you. :) | 11:56 |
| ← cyberglitch left | 11:57 |
| → sis joined | 12:01 |
| → yunosh joined | 12:01 |
|
yunosh
| hi. how do i correctly apply a commit patch created by git show manually? git apply only applies the patch like the patch command does, and git am requires a full email header | 12:02 |
| → mcdebugger joined | 12:05 |
| → mtkd_ joined | 12:05 |
|
shruggar
| is it possible to default pull from one remote, but default push to another? | 12:06 |
| ← mtkd left | 12:06 |
| → giorgian joined | 12:08 |
|
steffkes
| hm, how to set an chmod on windows :? | 12:08 |
| ← patthoyts left | 12:08 |
|
giorgian
| hi. I have a git repository with the sites I manage; it's way too big, and git status takes ages. how can I split it into several git repositories (one per site) without loosing history? | 12:09 |
|
j416
| giorgian: man git-filterbranch | 12:10 |
|
| hm | 12:10 |
|
| giorgian: man git-filter-branch | 12:10 |
|
Gitbot
| giorgian: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch | 12:10 |
|
j416
| there we go :) | 12:10 |
|
| this should be able to do what you want. | 12:10 |
|
giorgian
| j416: thanks | 12:11 |
| ← priidu left | 12:11 |
|
j416
| giorgian: it may feel complex, but it can do a lot. | 12:11 |
| → mbroeker joined | 12:12 |
| → infogulch joined | 12:15 |
| → inffcs00 joined | 12:15 |
| ← inffcs00 left | 12:15 |
| ← remi left | 12:16 |
| → ksn joined | 12:16 |
|
steffkes
| anybody an idea? developing on a windows machine, testing on an debian sys .. of course, need some chmods .. how to set them on windows? the debian machine gitr-repo is read-only | 12:19 |
| → krynnotaur joined | 12:20 |
|
shruggar
| steffkes, can you rephase your question? Specifically, what you mean by "chmods", because I can think of three things that could be a misuse of the word to describe | 12:20 |
| → twmi joined | 12:21 |
|
steffkes
| shruggar, of course .. i mean chmod like "chmod 775 foo" on unix-systems :) as needed for write-permission for user in other groups then the owner. | 12:21 |
| ← twmi left | 12:21 |
| → twmi joined | 12:21 |
|
steffkes
| so, if the system needs write-access on the cache folder .. i have to change the chmod. on unix/debian no problem. but how to set an chmod under windows (in git)? git-update-index --chmod knows only execute-flag +-x | 12:22 |
|
| better to understand now shruggar ? | 12:22 |
| → f0rkit joined | 12:22 |
|
shruggar
| steffkes, are you saying that you think git on debian is setting the mode to 775 when you check out, and you would like that to happen one windows? Or are you saying git currently does _not_ set the mode (other than +x) on any files, and you want it to do that? | 12:24 |
| → rrichardsr3 joined | 12:24 |
| ← infogulch left | 12:25 |
| → infogulch joined | 12:25 |
| → kkoehne joined | 12:26 |
|
rrichardsr3
| i completely forgot about this - if you remove a remote branch, did git ever remove that reference from your local repo when doing a git pull? I dont remember always having to remove that remote reference locally. Its gone when i re-clone the repo however. | 12:26 |
|
steffkes
| shruggar, other try: if you modify the chmod on debian, then git see's this change and you can commit. on windows, of course you don't have an chmod. but on the final debian system, i'll need (on check out, yes) an correct chmod value | 12:27 |
|
| so .. the easiest way is .. change chmod on debian sys, commit to the repo, and all is fine. but like said, the debian system in this project is read only. so the question was, if & if yes, how - can i set an chmod in the git-index .. or somewhere else in the repo ;o | 12:28 |
|
Wazzzaaa
| steffkes: you mean that when you commit on the windows machine. your permissions (chmod) are f00ked? | 12:28 |
| → fool__ joined | 12:28 |
| ← fool__ left | 12:28 |
| → fool__ joined | 12:28 |
|
steffkes
| Wazzzaaa, on windows yes .. f00ked .. hm, windows itself has no chmod-system .. so .. cannot set the right chmod on windows | 12:28 |
|
| seem's to be a strange question for the git people ;D | 12:30 |
|
Wazzzaaa
| I'm relatively new to git. But I know you CAN set permissions on Windows. | 12:30 |
|
steffkes
| Wazzzaaa, permissions in case of .. write-protected / hidden? that's not what i mean | 12:30 |
|
Wazzzaaa
| ah, you want executable | 12:31 |
|
steffkes
| Wazzzaaa, no .. this is possbile with git update-index --chmod=+x .. | 12:31 |
|
| Wazzzaaa, i want so set an good old chmod .. something like 775 for an folder | 12:31 |
| ← infogulch left | 12:32 |
|
Wazzzaaa
| what about chmod=ug+rwx ? | 12:33 |
|
steffkes
| --chmod=(+|-)x | 12:33 |
|
| Set the execute permissions on the updated files. | 12:33 |
|
| that is the only possible option .. believing the manual | 12:33 |
|
Wazzzaaa
| ah | 12:34 |
|
db-
| how to work with permanent parallel branches. any best practice? | 12:34 |
|
steffkes
| i cannot set an full chmod this way .. only possible to change the execute flag | 12:34 |
|
| db-, best pratice for what? | 12:34 |
|
Wazzzaaa
| well, as I said, I'm relatively new. | 12:34 |
|
steffkes
| *practice | 12:34 |
|
Wazzzaaa
| good luck ;) | 12:34 |
|
db-
| working with permanent parallel branches | 12:35 |
|
| e.g. never centralize in one master | 12:35 |
|
| but share patches | 12:35 |
|
steffkes
| what not use merge? | 12:35 |
|
db-
| ?! | 12:39 |
|
steffkes
| perhaps i don't get your question .. :~ | 12:39 |
|
| also not an advanced git user too *g | 12:39 |
|
db-
| the short answer is "you can't merge downwards and upwards along another branch" | 12:42 |
| → NSchermer joined | 12:43 |
|
NSchermer
| is it possible to also rebase the first commit in a branch? | 12:45 |
| ← jokaro left | 12:48 |
| → webchick joined | 12:49 |
| → Axius joined | 12:49 |
|
charon
| NSchermer: you mean, use 'rebase -i' to edit a root commit? (otherwise you have to define "first" more precisely) | 12:50 |
|
NSchermer
| charon: yes. the commit has no parent | 12:50 |
|
charon
| NSchermer: currently not possible, you have to manually edit it and then rebase the rest on top of it | 12:50 |
|
| i.e. try something like | 12:51 |
|
| git checkout $root_sha1; git tag oldroot; <hack>; git commit --amend; git tag newroot; git checkout master; git rebase --onto newroot oldroot | 12:51 |
| ← Wazzzaaa left | 12:51 |
| ← Axius left | 12:54 |
| → keex joined | 12:54 |
| ← xanonus left | 12:54 |
| → infogulch joined | 12:58 |
| ← keex left | 12:59 |
| → whitman joined | 12:59 |
| → nanoo joined | 13:00 |
| → fool_ joined | 13:00 |
| ← fool_ left | 13:00 |
| → fool_ joined | 13:00 |
| → cantoma joined | 13:00 |
| ← infogulch left | 13:01 |
| → infogulch joined | 13:01 |
| → voxpelli joined | 13:01 |
| ← miro_dietiker left | 13:02 |
| ← fool__ left | 13:03 |
| → remi joined | 13:03 |
| → brettgoulder joined | 13:03 |
| ← rrichardsr3 left | 13:04 |
|
steffkes
| hm perhaps i should try to patch it? *think* | 13:05 |
| ← f0rkit left | 13:05 |
| → trtzrdb joined | 13:06 |
|
steffkes
| ah damn .. working on dir's sucks. isn't recorded by git .. argh | 13:10 |
| ← IRSeekBot10 left | 13:10 |
| → jas4711_ joined | 13:13 |
| ← RdeWilde left | 13:13 |
| → One-Man-Bucket joined | 13:13 |
|
One-Man-Bucket
| hello | 13:13 |
|
NSchermer
| charon: that worked, thanks | 13:14 |
|
One-Man-Bucket
| i want to compare an arbitrary commit and the version before | 13:14 |
|
| so i do "git diff b4ff32^ b4ff32" | 13:14 |
|
| is there a shorthand for that? | 13:14 |
|
teuf
| git show b4ff32 | 13:14 |
|
Ilari
| One-Man-Bucket: Or 'git diff b4ff32^!'. | 13:15 |
|
One-Man-Bucket
| ah ok | 13:16 |
|
| thanks, takes a while to get used to git =) | 13:16 |
| ← jas4711_ left | 13:16 |
|
teuf
| what does ! mean in this case? | 13:17 |
| → aatanasov joined | 13:17 |
| → jas4711 joined | 13:17 |
| jas4711 → jas4711_ | 13:18 |
| jas4711_ → jas4711 | 13:18 |
|
Ilari
| Commit minus its parents. | 13:19 |
|
| foo^! means include foo and exclude parents of foo. | 13:19 |
| ← brettgoulder left | 13:20 |
| → Bass10 joined | 13:20 |
| → f0rkit joined | 13:21 |
| ← psankar left | 13:22 |
| → auslander joined | 13:22 |
| ← auslander left | 13:22 |
| → auslander joined | 13:22 |
| → Pupeno joined | 13:23 |
| ← NSchermer left | 13:26 |
| ← loincloth left | 13:26 |
| → brettgoulder joined | 13:26 |
| → loincloth joined | 13:27 |
| ← kukks left | 13:28 |
|
yunosh
| shouldn't git format-patch use the email address from user.email when building the From: header? | 13:28 |
| → priidu joined | 13:28 |
| → kukks joined | 13:28 |
|
Ilari
| yunosh: AFAIK, it uses commit author. | 13:28 |
| ← jas4711 left | 13:29 |
|
yunosh
| okay. then next question: if i change user.mail since the last commit, should the commit author address be updated when running git commit --amend? | 13:30 |
|
Rhonda
| Only the commiter. | 13:30 |
|
| For the author you need the --author switch | 13:30 |
|
yunosh
| thanks | 13:31 |
|
Rhonda
| There is a small distinction between those two, sometimes not completely obvious, even though their naming should suggest thinking the right direction. :) | 13:31 |
| → IRSeekBot joined | 13:31 |
| ← j416 left | 13:32 |
| → jas4711 joined | 13:32 |
|
yunosh
| cool, that did it | 13:33 |
| → patthoyts joined | 13:39 |
| ← Ramosa left | 13:40 |
| → radarek joined | 13:43 |
| → drizzd joined | 13:46 |
| → tildeequals joined | 13:47 |
| ← mssm left | 13:48 |
| ← brettgoulder left | 13:51 |
| ← radarek left | 13:52 |
| → scarabx joined | 13:53 |
| ← krynnotaur left | 13:54 |
| → tstclair joined | 13:56 |
| → Yuuhi joined | 13:57 |
| → brettgoulder joined | 13:57 |
| → aziz joined | 14:00 |
| ← dytrivedi left | 14:02 |
| ← ben_alman left | 14:02 |
| → mssm joined | 14:03 |
| ← dpino left | 14:05 |
| → DavidKlein^ joined | 14:07 |
| ← DavidKlein left | 14:08 |
| ← steffkes left | 14:08 |
| → radarek joined | 14:10 |
| ← ph^_ left | 14:11 |
| → ph^ joined | 14:12 |
| → ph^_ joined | 14:12 |
| → Ryback_ joined | 14:14 |
| → crankharder joined | 14:15 |
| → loinclot_ joined | 14:15 |
| → ultraviolet joined | 14:15 |
| → Tila joined | 14:15 |
|
Tila
| hello | 14:15 |
|
jacobat
| Hello | 14:15 |
|
crankharder
| so git-svn is pretty good at following standard branching/tagging conventions - but what if the people before me didn't do that? What are my options for converting the repo? | 14:16 |
|
| I only really want to get trunk and 2-3 of the branches | 14:16 |
|
Tila
| i git-stash save some changes, then stash saved other changes, and i would like to apply both now, but stash apply doesn't like a dirty dir :( | 14:16 |
|
jacobat
| crankharder: I believe you can tell git-svn where branches are stored - or you could just opt for only getting trunk | 14:17 |
|
Tila
| how can i get out of it? | 14:17 |
|
jacobat
| Tila: commit the first set of changes then the second set of changes? | 14:17 |
| ← loincloth left | 14:17 |
|
Tila
| hum, the changes are not complete | 14:17 |
|
| it would be a dirty commit | 14:17 |
|
jacobat
| Tila: I don't mind dirty commits, git is distributed after all | 14:18 |
|
| Tila: If you want you can always squash the changesets together later on if you want | 14:18 |
| → threeve joined | 14:18 |
| ← mssm left | 14:18 |
|
Tila
| local doesn't mean invisible | 14:18 |
|
| how to squash? | 14:19 |
|
jacobat
| Tila: 'git rebase -i' is one way | 14:19 |
|
shruggar
| I just tried it out, seems like a bug in stash, to me | 14:20 |
|
| git reset HEAD^ | 14:20 |
|
| that will basically discard the last commit, but keep the changes it made | 14:20 |
|
Tila
| shruggar: but stash-apply will refuse to make modifications to a dirty dir | 14:21 |
|
parasti
| maybe stash is just playing safe, because "what Git doesn't know about doesn't exist" (and thus can't be automerged) | 14:22 |
| → ben_alman joined | 14:22 |
| ← brettgoulder left | 14:23 |
| → magcius joined | 14:23 |
|
shruggar
| parasti, it should be like switching branches with a dirty work tree: does the right thing unless the set of changed files has overlaps | 14:23 |
|
Tila
| jacobat: i didn't fully understand the rebase -i help | 14:23 |
|
shruggar
| Tila, the order is: "stash apply", "commit", "stash apply", "reset" | 14:23 |
|
jacobat
| Tila: http://www.gitcasts.com/posts/rebasing | 14:24 |
| ← f0rkit left | 14:24 |
|
parasti
| shruggar: don't know if it matters, but I think the problem is basically that you're applying untracked->untracked state, whereas when switching branches it's untracked->tracked | 14:24 |
| → reprore joined | 14:25 |
| → mst__ joined | 14:25 |
|
shruggar
| parasti, I'll admit I don't know the internals of what checkout does to determine if it's safe, but it's definitely something which can be calculated without creating any additional objects | 14:26 |
| ← Arafangion left | 14:27 |
|
Tila
| ok, nice, thanks :) | 14:27 |
|
jacobat
| Tila: :) | 14:28 |
|
shruggar
| parasti: ie: "do the files listed via "git stash show" overlap with those shown by "git diff"?" | 14:28 |
| → ajpi joined | 14:28 |
| ← trtzrdb left | 14:28 |
| → consolers joined | 14:29 |
|
parasti
| I pretty much avoid git stash exactly for this reason... it doesn't really fit into the workflow that the rest of Git encourages; there's never a reason not to commit and fixup later | 14:30 |
| ← locklace left | 14:31 |
|
Grum
| parasti: what about if committing would break a build | 14:31 |
| ← scarabx left | 14:31 |
|
Grum
| parasti: great reason to stash if you have to make another quick change | 14:31 |
| → locklace joined | 14:31 |
|
parasti
| Grum: but who cares? it's my local repo, I'm only breaking my own build which I won't even be compiling | 14:32 |
|
Grum
| there's never a reason not to commit and fixup later <-- just stating there are plenty :) | 14:32 |
|
parasti
| for me there aren't, that's what I meant | 14:33 |
|
consolers
| there might be one situation with git-stash, where you can merge/pick thats useful, but i didnt keep notes | 14:33 |
| → FND joined | 14:34 |
|
Grum
| well, someone asking you to look/fix/test something is usually a good indicator you want to stash anything you're working on :) | 14:34 |
|
consolers
| (this isnt the official git-workflows, i never found that to fit my style) | 14:34 |
|
Grum
| mm there is an official one? | 14:34 |
|
consolers
| the one you hear 100 times on the ml | 14:34 |
|
parasti
| Grum: commit, branch, reset is what I'd do -- save myself a headache | 14:34 |
| → TeckniX joined | 14:34 |
| ← jasonn1234 left | 14:35 |
|
consolers
| the fact that it made it into git to support someones use case is official enough! | 14:35 |
|
Grum
| stash, branch, checkout, stash pop gives the same result | 14:35 |
|
FND
| hi - is there a pre-push hook? I want to run py.test locally before connecting to the remote repo, but neither pre-receive nor update seem to be local (according to the man pages) | 14:35 |
|
Grum
| FND: often you'd run those in post commit hooks | 14:36 |
|
| and a pre-push hook you can easily make using the shell | 14:37 |
| ← tildeequals left | 14:37 |
| → malumalu joined | 14:37 |
|
FND
| Grum: I guess I could do post-commt - but my personal workflow would benefit from pre-push (many commits, few pushes) | 14:37 |
| ← radarek left | 14:37 |
|
FND
| as for using the shell, I did consider using an alias, but that seems a bit overkill/brittle | 14:37 |
| → jasonn1234 joined | 14:37 |
|
Grum
| you could do it on the remote end? | 14:38 |
| → mssm joined | 14:38 |
| → niko joined | 14:38 |
| → Mezner joined | 14:38 |
|
FND
| Grum: I could do, and live with, all those options - I'd just prefer a pre-push hook - if that's not available, that's fine | 14:39 |
|
Grum
| FND: seems someone already suggested a patch for this: http://kerneltrap.org/mailarchive/git/2008/8/19/2996404 | 14:39 |
|
FND
| thanks, I'll browse that discussion | 14:40 |
| → ergates joined | 14:41 |
|
Grum
| FND: they are stating that having them clientside wouldn't be trustworthy and you 'could as well run: py.test && git push' | 14:41 |
| → jelmer__ joined | 14:42 |
|
FND
| Grum: yes, I expected that, and agree - my problem is that I generally forget to run py.test... | 14:42 |
| → f0rkit joined | 14:42 |
| → kang joined | 14:42 |
|
FND
| so similarly, I would forget to run $push_alias_which_runs_py.test | 14:42 |
|
Grum
| yeah they state that as well | 14:43 |
|
ergates
| afternoon all: I'm migrating to git from cvs, and am struggling through how-tos on gitosis: I'm wondering about a line in gitosis.conf that can be added - [group myteam] | 14:43 |
|
Grum
| you could git-alias it and train your fingers on something like git send :D | 14:43 |
|
| ergates: it might be wise to setup gitolite instead of gitosis as the later is rather unsupported | 14:44 |
|
| and less feature complete, developed, maintained than gitolite | 14:44 |
|
ergates
| oh, bother! | 14:44 |
|
FND
| Grum: but what about non-Python projects then? (sorry to be a pain - just playing advocatus diaboli) | 14:44 |
|
ergates
| Grum, thanks! | 14:44 |
|
Grum
| FND: i always do make test; before i push :) | 14:44 |
|
FND
| Grum: clearly your brain is superior to mine | 14:45 |
| ← kang left | 14:45 |
| ← jelmer left | 14:45 |
|
FND
| but make test is a good point | 14:45 |
|
| as it would abstract away the language-specifics | 14:45 |
|
| plus it would punish repos without a test target | 14:45 |
|
Grum
| well its a habit of mine to test it i guess | 14:45 |
|
| FND adds send alias to ~/.gitconfig | 14:46 |
|
Grum
| i sortof agree a pre-push would seem useful as well | 14:46 |
|
| as we also have pre-commit | 14:46 |
|
mbroeker
| i am currently hosting a few projects via webdav. i can grant write access for all projects or none. but now, i want to give write permissions to one user in one project. what solution do you suggest? | 14:46 |
|
Grum
| and post-receive is basicly pre-push on the remote side | 14:46 |
| → cannonball joined | 14:46 |
|
FND
| Grum: but that's presuming the remote can run the tests, is more than a data store (think GitHub) | 14:47 |
|
Grum
| mbroeker: i'd reckon that webdav should be able to handle permissions on subdir basis, if it cant, then gitolite could but thats not webdav :( | 14:47 |
|
| FND: yeah that is indeed a fat problem :) | 14:47 |
|
FND
| I think the alias will do - thank you for suggesting that (implicitly) | 14:47 |
|
Grum
| FND: i'd bring it up on the mailinglist again if you really want it, and try and solve the unsolved problems from the last try | 14:48 |
|
FND
| I might raise the issue again if the alias doesn't suffice | 14:48 |
| → sockmonk joined | 14:48 |
|
ergates
| Grum, no debian package for gitolite though? | 14:48 |
|
mbroeker
| Grum, ok, i will read up the apache2 documentation :) thx so far. | 14:48 |
|
Grum
| mbroeker: its not so much a git restriction, git doesnt really do anything with permissions, maybe someone already made something to easily control a webdav env but i wouldnt know about it :( | 14:49 |
|
| ergates: could be, i've just installed it (it ends up being some perl in a user's homedir in the end) | 14:49 |
|
| no real reason to pack it | 14:50 |
|
| (other than putting restrictions on which user and configuration) | 14:50 |
|
teukka
| ergates: not yet: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550817 | 14:50 |
|
mbroeker
| my projects are small, so the overhead of webdav doesn't really matter for me and my friends. it's easy to maintain and that's what i want. | 14:50 |
|
ergates
| thanks | 14:51 |
| ← loinclot_ left | 14:51 |
| → jschoolcraft joined | 14:53 |
|
jschoolcraft
| is it possible to cherry pick between two git-svn remote tracking branches? | 14:54 |
| → radarek joined | 14:55 |
|
parasti
| jschoolcraft: cherry-pick to a local branch and dcommit | 14:55 |
|
Grum
| one of them has to be local to be able to append commits to it | 14:55 |
|
jschoolcraft
| there both local branches | 14:55 |
|
charon
| jschoolcraft: sure, but make sure you remove the git-svn-id lines from the cherry-picked messages, otherwise confusion will ensue. | 14:55 |
| ajpi → ajpiano | 14:58 |
|
jschoolcraft
| is there a better way than cherry pick if I have a 4 or 5 commits i the last 20 or so I want to bring over? basically i want to move a feature to stage | 14:58 |
|
charon
| rebase -i with a temp branch | 14:58 |
| ← jelmer__ left | 14:59 |
| ← radarek left | 15:00 |
| → LiamH joined | 15:01 |
| ← sh1mmer left | 15:02 |
| → radarek joined | 15:04 |
| → stephhh joined | 15:05 |
|
stephhh
| hi all | 15:05 |
| ← csaba left | 15:06 |
| ← tmske left | 15:06 |
| ← tschundeee left | 15:06 |
| → [reaVer] joined | 15:06 |
| ← [reaVer] left | 15:06 |
| → [reaVer] joined | 15:06 |
| → mvanholstyn joined | 15:06 |
| ← reaVer left | 15:07 |
|
patthoyts
| Has anyone attempted to look into 'fromcvs' and fix it to import tags? All the other cvs to git conversion tools are either non-incremental or brVS vendor branches. | 15:07 |
|
| fromcvs seems to make a perfect job except there are _no_ tags imported! | 15:07 |
|
fr0sty
| jschoolcraft: perhaps start another branch and rebase -i to move the commits. | 15:07 |
|
patthoyts
| 'or break on CVS vendor branches' it should have said. | 15:09 |
| → hugoxrosa joined | 15:09 |
| ← stephhh left | 15:11 |
| ← kkoehne left | 15:15 |
| → sagsousuke joined | 15:15 |
|
jschoolcraft
| fr0sty: yeah, i'm trying that route, here's my dilemma. my changes are in master, i need to merge some to staging. so co master; co -b feature, rebase -i first_sha_of_feature_commit, git co staging, git merge feature? | 15:18 |
| → brizly joined | 15:18 |
| ← mst__ left | 15:20 |
| ← consolers left | 15:22 |
| → drubies joined | 15:22 |
| → corto joined | 15:24 |
|
corto
| hi there, i'm learning git... i tried to merge one remote with my local branch and got a huge list of conflicts, decied to 'git reset' the whole thing, but seems like some files are left behind that i can't get rid of (as seen with git status) | 15:25 |
| ← malumalu left | 15:25 |
|
patthoyts
| git reset just does the index, use git reset --hard HEAD to put the working tree back to HEAD as well. | 15:26 |
|
EvanR-work
| git reset --hard is how you avoid | 15:26 |
|
| i mean abort | 15:26 |
|
corto
| patthoyts, EvanR-work, that's what I did, in fact i tried --soft and --mixed as well after, but i still have a few files left from the merged remote (checkout -f different branches doesnt help either) | 15:27 |
| → dscataglini_ joined | 15:28 |
|
dscataglini_
| Hi there, I would like to report a serious bug | 15:28 |
|
| can anybody help me with the procedure | 15:29 |
| → Haarg joined | 15:29 |
| → loincloth joined | 15:29 |
|
patthoyts
| corto: you could try git --dry-run clean and see if that will clear out the spare files. | 15:29 |
|
corto
| patthoyts, sure, gimme a sec | 15:30 |
|
patthoyts
| reset --hard should clean up a bad merge though. | 15:30 |
| → shoe joined | 15:30 |
|
charon
| dscataglini_: write to [email@hidden.address] with an exact description of the problem. bonus points for a shell script that reproduces the issue. | 15:30 |
|
patthoyts
| 'clean' can clear out things you might want to keep. | 15:30 |
|
corto
| patthoyts, ok... yea reset --hard did make the status list very short... hmmm, clean says it would and would not remove some files... | 15:31 |
|
| patthoyts, would remove files actually, but would not remove directories... | 15:31 |
|
shoe
| hi, I've got a little problem - git gui starts up and hangs immediately with a frozen dialog window and a 'wish' process pegging the CPU. | 15:31 |
| ← jschoolcraft left | 15:32 |
|
shoe
| killing and restarting doesn't help | 15:32 |
|
corto
| patthoyts, ok thanks | 15:32 |
|
patthoyts
| man git-clean shows there is a -d option to include dirs. | 15:32 |
|
Gitbot
| patthoyts: the git-clean manpage can be found at http://git.or.cz/man/git-clean | 15:32 |
|
corto
| patthoyts, using git clean -d --dry-run looked good, so i replaced --dry-run with -f and it's allright now! | 15:32 |
|
patthoyts
| cool | 15:32 |
|
dscataglini_
| charon: Thanks, btw, I can't do the script because I don't understand why or how can it possibly happen. the problem is that I can see some commits in gitk that don't show up in git log at all. When I try to check out the "invisible" commit I am successful, (I in that branch, with the right comment) but the file don't change | 15:33 |
|
shoe
| gitk has no problem viewing this repo | 15:33 |
| → hyperair joined | 15:33 |
|
dscataglini_
| charon: The only place where I can see the changeset or that that commit exists is in gitk | 15:34 |
| → jelmer joined | 15:34 |
|
dscataglini_
| or gitx | 15:34 |
| → jrmuizel joined | 15:34 |
|
shoe
| and git gui works fine in other repos. | 15:34 |
| → corni joined | 15:34 |
|
charon
| dscataglini_: note that if you rewrite commits, and then update (f5, not ctrl-f5 = reload), gitk will show both pre- and post-rewrite copies of the commit | 15:34 |
|
corto
| I realize now the merge i attempted may not be straight forward... i'm trying to merge my kernel branch with a linux-kernel patch whose remote probably include a tracked kernel, if that makes any sense (i'm still very noob here)... | 15:35 |
| → hebz0rl joined | 15:35 |
| → sumangurung joined | 15:35 |
|
shoe
| ok, I can avoid the frozen dialog because I did 'git gc', but the main git gui window still freezes. | 15:37 |
|
dscataglini_
| charon: I'm not sure what you mean by rewrite commits. btw. pre- post-rewrite you mean the follows and preceds? | 15:38 |
| ← aatanasov left | 15:40 |
|
charon
| dscataglini_: rewriting includes 'git commit --amend', and any use of 'git rebase' or 'git filter-branch' | 15:40 |
|
shoe
| ah.. n/m. found it with strace -f. git gui was choking on 300 MB of untracked files. | 15:41 |
| → michael_scheibe joined | 15:41 |
| ← NetHawk left | 15:41 |
|
dscataglini_
| charon: thanks, btw, do you have any clue on why git log wouldn't show anybody touching the file on the day of that commit? or why checking out doesn't show the code in the changeset? this has happened to my team at least a couple of dozen time | 15:44 |
| ← patthoyts left | 15:44 |
|
charon
| dscataglini_: no; however (no offense) my current feeling is that there is a misunderstanding, not a bug | 15:45 |
| ← jds left | 15:45 |
| → NetHawk joined | 15:45 |
|
charon
| so it might help if you just explained (in here or on the list) what exactly you are doing | 15:45 |
|
| for example, what arguments you're giving to git-log | 15:45 |
|
dscataglini_
| charon: if the commit hash is 123 and I check out that hash, I should see the code for that commit. Isn't it right? | 15:46 |
| ← giorgian left | 15:46 |
|
charon
| yes | 15:47 |
| ← gitte left | 15:47 |
| ← brizly left | 15:48 |
| ← sagsousuke left | 15:48 |
|
dscataglini_
| charon: if a commit 123 touches many fies including file "foo" on x-mas, I should be able to do git log foo and see that commit on x-mas. Given that I am on the same branch of that commit | 15:49 |
| → AAABeef joined | 15:50 |
|
charon
| no | 15:51 |
|
dscataglini_
| ok | 15:51 |
|
charon
| well, "maybe" | 15:51 |
|
| if merges were involved, history simplification is more complicated than that | 15:51 |
|
| if no merges were involved, then yes | 15:52 |
|
dscataglini_
| ok, so I can understand not showing in the git log | 15:52 |
|
| the thing that I don't understand is checking out the code and not seeing any code changes | 15:52 |
|
| btw, it's retroactive | 15:52 |
|
charon
| retroactive? | 15:53 |
|
dscataglini_
| the code is there for a week or 2 and then it disappears | 15:53 |
|
Pieter
| 6==- | 15:53 |
|
dscataglini_
| meaning it disappears from git log | 15:53 |
|
| it disappear from the codebase | 15:53 |
|
| and checking out the commit hash doesn't show anything | 15:53 |
|
charon
| due to git's storage model that's about as likely as me getting hit by lightning right now (and i'm inside a building...) | 15:54 |
|
dscataglini_
| today it's the first time that I was able to find the commit by searching for the comment | 15:54 |
| ← jrmuizel left | 15:54 |
|
dscataglini_
| exactly | 15:54 |
| → jrmuizel joined | 15:54 |
|
dscataglini_
| I am pretty sure that it's somebody in the team trying to do some -interactive -append or rebase stuff | 15:55 |
| → carlosleon joined | 15:55 |
|
dscataglini_
| but I can't tell | 15:55 |
|
carlosleon
| Hi there! O/ | 15:55 |
|
charon
| dscataglini_: what does 'git show --name-status $commit' say? does 'git show --name-status $commit:$file' show the right contents? | 15:55 |
| ← jrmuizel left | 15:55 |
|
charon
| dscataglini_: and if someone is running around rewriting history, anything is possible | 15:55 |
|
dscataglini_
| commit show $commit shows the right comment and m files list | 15:57 |
| → tedoc2000 joined | 15:57 |
|
carlosleon
| I'm having an issue with "git pull" and have no clue about what to do. May somebody help this poor guy? (: | 15:57 |
|
dscataglini_
| charon: nobody should be doing that, because most of them don't even create local branches most of the times | 15:58 |
| → alley_cat joined | 15:58 |
|
dscataglini_
| charon: typical workflow is git co -b branch commit then check out master and do git merge mybranch | 15:58 |
| ← michael_scheibe left | 15:59 |
| → rostedt joined | 15:59 |
|
dscataglini_
| btw, git show --name-status $commit:$file doesn't show the right content | 15:59 |
|
| charon: git show --name-status $commit:$file doesn't show the right content (forgot to address you) | 16:00 |
|
rostedt
| I have an interesting question. Is there a way to update a branch on a bare git repo with one of its remote branches? | 16:00 |
|
carlosleon
| I'm doing git pull but for some weird reason, my friend's commits are not being retrieved :-/ am I using the incorrect command? | 16:00 |
|
shruggar
| rostedt, define "update" | 16:01 |
| ← mtkd_ left | 16:01 |
|
rostedt
| shruggar: let me explain what I'm doing | 16:01 |
|
| I have several git repos for various projects that I work on that all relate to the linux kernel | 16:01 |
|
| to save space, I download a bare repo from Linus's repo | 16:01 |
|
| and have all other repos a clone of that one | 16:02 |
|
crankharder
| a bunch of the places I've read for converting from svn -> git mention creating a intermediary reposiotory -- and then git clone --bare repo.tmp repo.git -- I did that and it's not a working checkout --- e.g. I couldn't push it up to github, so why do I need to do that? | 16:02 |
| ← mcdebugger left | 16:02 |
|
rostedt
| I originally did not use a bare repo, but just downloaded Linus's tree as is | 16:02 |
|
charon
| dscataglini_: well, if 'git show $commit:$file' doesn't show the right content, then that's not git's fault... it means the commit contains something else than what you think it does | 16:02 |
|
rostedt
| but I never compile in that tree, so I figured I'd just make it bare | 16:02 |
|
charon
| (the --name-status was a cut&paste mistake) | 16:02 |
| → brizly joined | 16:03 |
|
rostedt
| but now when I update my other repos it only uses what the Linus bare repo was at the time of its clone | 16:03 |
|
charon
| dscataglini_: one potential way of figuring out what's going on might be to dig through 'git reflog' and find the various incarnations of the commit, if any | 16:03 |
|
rostedt
| I want to update the bare repo's "branch" that is pulled by other repos, to the origin/master that it has | 16:03 |
| ← drizzd left | 16:04 |
|
rostedt
| basically, I would like to do a git reset --merge origin/master | 16:04 |
|
| but that can't be done without a work tree | 16:04 |
|
shruggar
| rostedt, why the --merge? | 16:04 |
| → Blackshark joined | 16:04 |
|
rostedt
| well, it seems that all the other repos pull from its local branches | 16:04 |
|
| I want to update the local branch to the remote branch | 16:05 |
|
dscataglini_
| charon: I hope I am not taking too much of your time | 16:05 |
| → drizzd joined | 16:05 |
|
rostedt
| I guess I can do a hack, and do a git branch update origin/master | 16:05 |
|
| and then the other repos will get that update and use it | 16:05 |
| → jaysern joined | 16:06 |
| ← carlosleon left | 16:06 |
|
dscataglini_
| charon: If I am not. Why would gitx show the right changeset? but git show does not? | 16:06 |
| ← One-Man-Bucket left | 16:07 |
|
shruggar
| rostedt, have you tried doing exactly what you're doing now, but without saying --merge? | 16:07 |
|
rostedt
| git reset doesn't work on a bare repo | 16:08 |
|
charon
| dscataglini_: that is a very good question | 16:08 |
|
rostedt
| I just did what I wanted in a hacky way | 16:08 |
| → struberg joined | 16:09 |
| → TAsn joined | 16:09 |
|
rostedt
| in the bare repo linus.git, I did: git fetch; git branch update origin/master | 16:09 |
| → mcdebugger joined | 16:09 |
|
charon
| dscataglini_: btw, since gitx means OS X ... have you checked whether you're running into any of the known limitations on OS X, mostly case-insensitivity and unicode normalization issues? | 16:09 |
| ← alley_cat left | 16:09 |
| ← jaysern left | 16:09 |
|
dscataglini_
| No I'll check | 16:09 |
|
TAsn
| hey, I accidentally did a local commit, how do I uncommit it? (I want my local to be the same as the remote repo, and I don't want to push this commit) | 16:09 |
|
rostedt
| in one of my cloned repos I did: git remote update; git merge origin/update; git push origin local:origin/master | 16:09 |
|
dscataglini_
| charon: no, I'll check | 16:09 |
|
rostedt
| now the bare linus.git tree master branch is updated to the origin/master :-p | 16:10 |
|
dscataglini_
| charon: I wasn't aware of those issues | 16:10 |
|
rostedt
| would be nice to do that directly in the bare repo | 16:10 |
| → juan_arandaalvar joined | 16:10 |
| → roop joined | 16:11 |
|
dscataglini_
| charon: thanks for your help | 16:11 |
|
charon
| dscataglini_: case insensitivity bites you if you have different casings of the same filename in your repo. unicode normalization shouldn't be a problem from GUIs, but it's possible to 'git add $file' and then immediately have it appear deleted if $file contains unnormalized characters | 16:11 |
|
EvanR-work
| i have a question about submodules. we just added a submodule to our repo, we pulled changes (.gitmodules) of the superproject, and git submodule init / updated. now were ok. but what if the submodule has updates, we want to pull them. how does the superproject know which submodule commit its on? | 16:11 |
| ← whitman left | 16:11 |
|
EvanR-work
| will that be recorded in .gitmodules? | 16:12 |
| ← psoo left | 16:12 |
|
dscataglini_
| charon: I don't have different casing of the same filename. So that wouldn't be the problem. Is it possible that some of the guys are running an old version of git and that might cause it? | 16:13 |
| → bcardarella joined | 16:14 |
| → jlogsdon joined | 16:15 |
|
EvanR-work
| ah git submodule status | 16:15 |
| ← FND left | 16:15 |
|
EvanR-work
| does this just read the HEAD of the submodule? | 16:15 |
| ← Blackshark left | 16:17 |
| ← jelmer left | 16:17 |
| → Blackshark joined | 16:17 |
| ← roop left | 16:17 |
| ← [reaVer] left | 16:18 |
| → Richardigel joined | 16:18 |
|
Richardigel
| How, how can I compare whether my working tree and origin/master are identical? | 16:19 |
|
| (minus ignored files) | 16:19 |
| → reaVer joined | 16:19 |
| ← reaVer left | 16:19 |
| → reaVer joined | 16:19 |
| ← jlogsdon left | 16:19 |
| → malumalu joined | 16:19 |
| → jlogsdon joined | 16:19 |
|
EvanR-work
| git diff origin/master | 16:19 |
|
| well, that compares origin/master and the index | 16:20 |
|
| actually it doesnt | 16:20 |
|
| git diff origin/master | 16:20 |
| ← douilspee left | 16:20 |
|
Richardigel
| i just tried this, and it doesn't find an untracked file that i've added. | 16:20 |
|
EvanR-work
| if you added it, its in the index | 16:21 |
|
Richardigel
| i haven't | 16:21 |
| → bblfish joined | 16:21 |
| ← giallu left | 16:21 |
|
EvanR-work
| you cant add it without it being in the index | 16:21 |
| ← simplechat left | 16:21 |
| → alley_cat joined | 16:21 |
|
Richardigel
| i haven't added it. | 16:21 |
|
EvanR-work
| then its untracked | 16:21 |
|
Richardigel
| exactlz. | 16:21 |
|
EvanR-work
| so wont count | 16:21 |
|
Richardigel
| so how do i compare the working tree, including untracked files, to origin/master? | 16:21 |
| → douilspee joined | 16:21 |
|
rostedt
| shruggar: someone just told me this is what I need in my bare repo: git config remote.origin.fetch '+refs/heads/*:refs/heads/*' | 16:21 |
|
EvanR-work
| if you git add it, then git diff origin/master..HEAD | 16:22 |
|
bblfish
| anyone interested in making git a lot easier to log into, using a distributed web of trust? | 16:22 |
|
EvanR-work
| i think | 16:22 |
|
Richardigel
| of course i could git stash and then compare stash@{0} with origin/master | 16:22 |
|
mbroeker
| Grum, it's working with AuthGroupFile and Directory Entries for projects that have to be secured. nice and easy. thanks for your help | 16:22 |
|
Richardigel
| EvanR: ok, how do i compare without adding? | 16:22 |
|
EvanR-work
| and also not showing all untracked files? | 16:23 |
|
Richardigel
| EvanR: i do want to see untracked files. | 16:23 |
|
EvanR-work
| you can add and reset, adding isnt permanent | 16:23 |
|
Richardigel
| EvanR: i just dont care about ignored files, as specified by .gitignore. | 16:23 |
|
| EvanR: it's like i said: i want to compare the result of git stash with origin/master. possibly without actually stashing. | 16:24 |
|
EvanR-work
| in that case, git stash and compare the stash object with origin/master | 16:25 |
|
| :\ | 16:25 |
|
Richardigel
| EvanR: that's clever, but it has the downside of actually stashing. | 16:25 |
| → webus joined | 16:25 |
|
EvanR-work
| well git only acts on objects | 16:25 |
|
| untracked files arent in any object | 16:25 |
| ← rostedt left | 16:25 |
|
Richardigel
| EvanR: a side-effect-free comparison would be nice. the background is that i want to verify in one command whether all my things have been pushed. all my things is: everything in my folder. | 16:26 |
|
EvanR-work
| if its untracked, it hasnt been pushed | 16:26 |
|
Richardigel
| EvanR: well, yes. that's what i want to know: am i up to date? has everything been added, committed, pushed? | 16:26 |
|
| in one command :) | 16:26 |
|
Saur
| git status should tell you that... | 16:27 |
|
EvanR-work
| make a script that reads git status and if it sees untracked (not ignore) files, prints YES or NO | 16:27 |
| → c|oneman joined | 16:27 |
|
Richardigel
| ahh. | 16:28 |
|
shruggar
| Richardigel, git diff -q origin/master && echo "YES" || echo "NO" ? | 16:28 |
|
| err, stop, reverse that :) | 16:28 |
| → metellius joined | 16:28 |
|
EvanR-work
| whats -q | 16:30 |
| ← alley_cat left | 16:30 |
|
EvanR-work
| quiet | 16:30 |
|
| man page doesnt say -q works ;) | 16:30 |
|
| so coudnt find it | 16:30 |
| ← radarek left | 16:30 |
|
shruggar
| ah, sorry, it's --quiet | 16:31 |
|
EvanR-work
| but it wont work if you forgot to add files | 16:31 |
|
| which i do all the time | 16:31 |
|
shruggar
| I did /-q in the man page, saw the entry I was looking for, didn't bother checking to see it had actually found the exact string I was looking for :) | 16:31 |
|
fr0sty
| jschoolcraft: (if you are still in the house) That would work. You could also look into doing 'git rebase -i --onto <staging> <first_sha1>' | 16:31 |
|
shruggar
| EvanR-work, when you forget to add files, would you like them to show up as "different" or "not different" ? | 16:32 |
|
Richardigel
| shruggar: i get the idea … i didn't know that git status compares with origin/master | 16:32 |
|
fr0sty
| jschoolcraft: That would eliminate a merge commit and the possible introduction of other changes from master that are not already reflected in staging. | 16:32 |
|
EvanR-work
| Richardigel: well, origin/whateverbranchyoureon | 16:32 |
|
| or default remote for that branch | 16:32 |
|
| shruggar: i just need to look more carefully at git status ;) | 16:33 |
|
shruggar
| EvanR-work, what? Okay, unless I'm very mistaken, "git status" does not do anything with other branches, only HEAD and the index | 16:34 |
|
EvanR-work
| HEAD does not mean master | 16:34 |
| → g0bl1n joined | 16:35 |
|
shruggar
| right, but since when does HEAD point to origin/master? Unless you've just got a really weird set-up | 16:35 |
| → RdeWilde joined | 16:36 |
|
PerlJam
| shruggar: there are multiple HEADs you know | 16:36 |
|
EvanR-work
| i didnt say HEAD was origin/master | 16:36 |
|
| or if git status was talking about HEAD | 16:36 |
|
bblfish
| hi, where could I make an architectural suggestion for authentication improvement in git? | 16:36 |
|
PerlJam
| That's part of the beauty of git ... it lets you do weird and wonderful things :) | 16:36 |
|
EvanR-work
| git status comprares your index with HEAD, which might be master or might be something else | 16:36 |
|
dscataglini_
| charon: I made one more discovery. One commit changed 2 files. git show --name-status $hash:$file1 shows the wrong code. git show --name-status $hash:$file2 shows the right code | 16:38 |
|
shruggar
| PerlJam, there are multiple HEADs, or multiple heads? Because I thought there was one HEAD, and multiple heads | 16:38 |
|
dscataglini_
| charon: also git whatchanged shows the right diffs | 16:38 |
|
EvanR-work
| shruggar: one HEAD which is a reference to whatever you want, doesnt have to be latest commit on master. but earlier i was talking about latest commit on some branch | 16:39 |
| → tech13 joined | 16:39 |
|
PerlJam
| shruggar: well, at any given moment, there is one HEAD. But it all depends on which side of the looking glass you're on. | 16:39 |
| → Zifer joined | 16:39 |
| ← juan_arandaalvar left | 16:39 |
| → jaysern joined | 16:40 |
| ← corto left | 16:40 |
| ← nanoo left | 16:40 |
| → codeswing joined | 16:41 |
| → alley_cat joined | 16:41 |
|
fr0sty
| bblfish: [email@hidden.address] | 16:43 |
| ← wolog left | 16:43 |
| → jrmuizel joined | 16:43 |
| ← f0rkit left | 16:43 |
|
fr0sty
| bblfish: you could try it out on us as well, but there are only a few git devs here. | 16:43 |
|
bblfish
| ah ok | 16:44 |
| → lucsky joined | 16:44 |
|
bblfish
| we are working on a very simple distributed authentication protocol that uses SSL just as it was meant to be | 16:44 |
|
| http://esw.w3.org/topic/foaf+ssl | 16:44 |
|
| this would make it very easy for people to allow access to git by simple rules such as: allow all developers on this project edit access | 16:45 |
|
| where the group could be defined in a foaf file | 16:45 |
|
tech13
| attempting to checkout a copy of Zend Framework following a blog entry's how-to. Having an issue at the step for handling their incubator. http://pastie.org/844366 for the commands, a link to the blog and .git/config used. Suggestions on what to check? | 16:45 |
|
bblfish
| I am sure there is something one could do with git+foaf+ssl that would be very nice :-) | 16:46 |
| → tildeequals joined | 16:46 |
| ← tobiassjosten left | 16:50 |
|
EvanR-work
| i am confused about tags | 16:52 |
|
| are tag objects distributed with the repo? | 16:53 |
|
| i cant seem to 'commit' and tag objects | 16:53 |
|
| any* | 16:53 |
| → floppyears joined | 16:55 |
| ← Tila left | 16:55 |
|
EvanR-work
| ah, git push origin --tags | 16:57 |
| → coolcat joined | 16:57 |
| → amerine joined | 16:57 |
| → pheaver joined | 16:58 |
| → Hackykid joined | 17:00 |
| → silug joined | 17:01 |
| → corto joined | 17:02 |
|
corto
| hi guys, i'm wondering if my distro is responsible for this or now... has gitk changed name at some point? i can't seem to locate it | 17:02 |
| → ericpugh joined | 17:03 |
| ← shoe left | 17:03 |
| → shoe joined | 17:03 |
| → Zephyrus joined | 17:03 |
| ← Zephyrus left | 17:03 |
| → Zephyrus joined | 17:03 |
| ← alley_cat left | 17:04 |
|
ericpugh
| Hi all, I am using git-svn on OSX, and git svn --version reports svn at 1.4.4, but svn --version reports 1.6. where does git find it's version of SVN it is useing? | 17:04 |
| → lightcap joined | 17:04 |
|
davr
| corto: still gitk as far as I know. it may be a separate install in your distro than from the main git package | 17:04 |
|
corto
| davr, ok, i also found gitview... is this related? | 17:05 |
|
davr
| ericpugh: it's built into git-svn I think? I have the same issue on windows with msysgit | 17:05 |
|
shruggar
| ericpugh, probably the version of the SVN perl module | 17:05 |
|
ericpugh
| davr I was afarid of that.. I ahven't been able to locate the SVN perl module to try and update it. | 17:05 |
|
davr
| corto: I think gitview is a different app with similar functions | 17:05 |
|
ericpugh
| I am using MacPorts to do the install | 17:05 |
| ← gebi left | 17:06 |
| ← douilspee left | 17:06 |
|
davr
| ericpugh: it's not a huge issue, SVN 1.4.4 can talk to SVN 1.6 servers, it's just a lot slower than accessing the SVN repo directly via file access | 17:06 |
|
corto
| davr, ok, thanks, i'll try to sort this out... i seem to have the man pages for gitk, but not the executable... =/ i'll try to get help from the distro support | 17:06 |
| ← marc_kdab left | 17:07 |
|
davr
| ericpugh: I ended up doing git-svn on the linux server that hosted the SVN repo, and the pulling from there to my windows client | 17:07 |
|
ericpugh
| davr, unfortunantly my svn server rejects my commits because the client isn't 1.5 or later. I suppose I could do that approach of using an intermediate server. | 17:07 |
|
| I was hoping it was fixable via makeing a symbolic link to my 1.6 svn executable! | 17:08 |
|
| thanks for the help though. | 17:08 |
| ← lightcap left | 17:09 |
| → mtkd joined | 17:10 |
| ← mtkd left | 17:10 |
| → Hackykid_ joined | 17:10 |
| ← bblfish left | 17:11 |
| ← g0bl1n left | 17:11 |
| ← Hackykid left | 17:12 |
| → douilspee joined | 17:12 |
| → keex joined | 17:13 |
|
keex
| hello | 17:13 |
| → lightcap joined | 17:13 |
|
corto
| i'm trying to understand the concept of tracking... if i do 'git checkout --track -b myBranch remotes/someGit/master' ... will myBranch be built upon the latest changes in "someGit/master" (ie will it rebase automatically) or will it point to the commit at the moment of this checkout? | 17:14 |
| ← ericpugh left | 17:14 |
|
keex
| is it possible to migrate a git repository to svn ? I have done all my work using git (which has saved me looooots of time and nerves) but the place i did my thesis for only makes use of SVN. I have a SVN account but havent checked it out yet... | 17:15 |
| → pingwin joined | 17:15 |
| → alley_cat joined | 17:15 |
|
shruggar
| all --track does is set up some config variables so that "git push" and "git pull" default to pulling/pushing from the tracked branch | 17:15 |
| → psankar joined | 17:15 |
|
keex
| my work is done, and I'd like to give them all revisions or commits | 17:16 |
| ← jrmuizel left | 17:16 |
| → DirtyColombian joined | 17:16 |
| → jrmuizel joined | 17:16 |
|
pingwin
| is there a way for me to work in a branch, push files (stage them) without having to commit and have that message... change branches... work, come back to the branch work some more and THEN commit the changes? | 17:16 |
|
shruggar
| keex, is your history linear? | 17:16 |
|
DirtyColombian
| hey folks, whats the best way to apply a stash to a dirty working tree? | 17:16 |
|
keex
| shruggar, most of it | 17:16 |
|
ToxicFrog
| pingwin: git stash? | 17:16 |
| ← jrmuizel left | 17:17 |
|
pingwin
| ToxicFrog: k, i'll take a look at it | 17:17 |
|
DirtyColombian
| git stash apply/pop respond with : Cannot apply to a dirty working tree, please stage your changes | 17:17 |
|
shruggar
| pingwin, are you sure you're using the word "push" correctly? | 17:17 |
| ← froschi left | 17:18 |
| ← TAsn left | 17:19 |
| ← christophsturm left | 17:19 |
| → robinbowes joined | 17:20 |
| → ericpugh joined | 17:21 |
| → kipras joined | 17:21 |
|
tsb
| I've made some changes. I'd like to save these in some other branch, the git pull the updates into master. How'd I do that? I'm guessing git branch is involved but.. | 17:21 |
|
pingwin
| shruggar: no.. I do not want to push to my remote branch, stash looks like it's exactly what I wanted | 17:21 |
| ← reprore left | 17:22 |
|
DirtyColombian
| for my case: what about git commit, git stash pop, git reset HEAD^ --soft | 17:22 |
| ← d0ugal left | 17:22 |
| ← pingwin left | 17:23 |
|
shruggar
| pingwin, also useful might be the knowledge that if you don't push, history is not set in stone. That is, you can commit, switch to another branch, work there for a while, come back, commit more, and then clean up your commits so they are cleaner when you are ready to push | 17:23 |
| ← JonathanT left | 17:23 |
| ← alley_cat left | 17:23 |
|
shruggar
| pingwin, ie: "commit" means "make sure I can get back to this state" not "save this state forever so that everyone can see it" | 17:24 |
| → mtkd joined | 17:24 |
| → kumbayo joined | 17:25 |
| → mizipzor joined | 17:25 |
| ajpiano → mikes_family | 17:25 |
| → jrmuizel joined | 17:25 |
|
mizipzor
| in my project i have two branches; "branch_a" and "branch_b"... i have some local changes i planned to commit in branch_b, but im in branch_a... git wont let me switch due to the local changes... what the best way to commit local changes to another branch? | 17:26 |
|
RandalSchwartz
| "git checkout branch_b" doesn't work? | 17:26 |
|
| how old is your git? | 17:26 |
| ← mastro left | 17:26 |
| ← corni left | 17:26 |
|
shruggar
| mizipzor, stash, checkout, then stash pop | 17:27 |
| → mklappstuhl joined | 17:27 |
| → corni joined | 17:27 |
| mikes_family → ajpiano | 17:27 |
|
mizipzor
| shruggar, thx | 17:27 |
|
shruggar
| mizipzor, alternatively, commit to branch_a, checkout branch_b, cherry-pick branch_a, checkout branch_a, then reset --hard HEAD^ | 17:27 |
|
RandalSchwartz
| and if you're making changes, why aren't you on a topic branch? :) | 17:27 |
|
mizipzor
| shash seems a simplier approach | 17:27 |
|
| RandalSchwartz, honest misstake :) | 17:27 |
|
RandalSchwartz
| no - I mean a new branch just for those changes | 17:28 |
| ← corni left | 17:28 |
|
RandalSchwartz
| branches are *very* cheap | 17:28 |
| → corni joined | 17:28 |
|
mizipzor
| i thought i had created a new branch, but i hadnt | 17:28 |
|
RandalSchwartz
| git checkout -b newbranch didn't work either? | 17:28 |
|
| what did it say? | 17:29 |
|
| modern git can switch branches with a dirty tre | 17:29 |
| → corni_ joined | 17:29 |
|
RandalSchwartz
| since that's a common mistake | 17:29 |
| ← corni left | 17:29 |
|
mizipzor
| hmm... didnt try the -b flag | 17:29 |
| ← corni_ left | 17:29 |
|
RandalSchwartz
| how old is your git | 17:29 |
| ← lightcap left | 17:30 |
| → corni joined | 17:30 |
|
mizipzor
| 1.6.5.1.1367.gcd48 | 17:30 |
|
RandalSchwartz
| that's not too old. | 17:30 |
|
| so the "git checkout -b" should work | 17:30 |
|
mizipzor
| the stash approach seemed to do exactly what i wanted though | 17:31 |
| ← themill left | 17:31 |
| ← tildeequals left | 17:31 |
|
mizipzor
| the branch i wanted to commit the stuff to was already created... would -b have worked anyway? seems to create a new branch at a set "start_point"... which i assume means my dirty tree? | 17:32 |
| ← tatsuya left | 17:32 |
|
shruggar
| mizipzor, you can create with -b a "topic branch", meaning "a branch just for the purpose of what I'm working on right now" | 17:32 |
|
| mizipzor, then when you're done, you can merge it into the branch you actually want the changes to be in | 17:33 |
|
mizipzor
| thats what i usually do... but i create my branches with -t | 17:33 |
| ← shruggar left | 17:34 |
| → tetha joined | 17:34 |
|
RandalSchwartz
| -t ? | 17:34 |
|
| add -b to -t | 17:35 |
|
| they're orthogonal | 17:35 |
|
mizipzor
| the way ive understood it, -t makes so that the branch remembers from which branch it was created from... to make it easy to pull in new changes or something... havent really made use of that yet, i just merge "normally" if there is such a thing... | 17:37 |
| → maxter joined | 17:37 |
|
tech13
| attempting to checkout a copy of Zend Framework following a blog entry's how-to. Having an issue at the step for handling their incubator. http://pastie.org/844366 for the commands, a link to the blog and .git/config used. Suggestions on what to check? | 17:39 |
| ← webchick left | 17:40 |
|
davr
| tech13: it's saying "svn-incubator" is not a valid branch, and instead trying to interpret it as a file | 17:41 |
| ← petrux left | 17:41 |
|
davr
| tech13: you can do 'git branch -a' to see all available branches. my guess is that it should be "svn/incubator" instead, but that's just a guess | 17:41 |
| → thiago_home joined | 17:42 |
|
tech13
| davr, doesn't list any variation of incubator. | 17:42 |
| ← corni left | 17:42 |
|
tech13
| davr, the fetch doesn't have any output, so I'm guessing something about the remote portion of the config is wrong, but not sure why or what to tweak about it. | 17:43 |
|
davr
| yeah normally 'git svn fetch' should give you piles and piles of output and take ages | 17:43 |
|
| it's weird, I just copied & pasted your .git/config into a new empty git repo, ran your git svn fetch command as listed, and i'ts doing a bunch of stuff now for me | 17:45 |
| → stkrzysiak joined | 17:45 |
| ← DirtyColombian left | 17:45 |
| → seanmccann joined | 17:46 |
| → sh1mmer joined | 17:46 |
|
tech13
| davr, weird. able to start clean and the git incubator works. Haven't tried getting the standard svn portion yet though. Guess I'll change the order of the steps and run with it. | 17:47 |
|
mizipzor
| im working on an svn repos... after "git svn fetch", the output of "git svn log" shows the latest revision, but "git log" does not... how do i merge the svn changes into my own tree? and isnt fetch supposed to do that? | 17:47 |
| → psoo joined | 17:48 |
|
davr
| mizipzor: no, fetch just loads new data from remote locations into your local repository, it doesn't actually do anything to your local branches | 17:48 |
|
uau
| 'git svn fetch' should fetch the changes into the git-svn branch | 17:48 |
|
| so something like 'git log git-svn' should show them | 17:48 |
|
mizipzor
| wierd... i only have a master branch (havent changed anything locally, just keeping it up to date) | 17:48 |
|
uau
| if you're on another branch then that branch will not change and 'git log' will of course not show anything different | 17:48 |
|
| the 'git-svn' branch is classified as a 'remote' branch | 17:49 |
|
| so 'git branch' only shows it if you use -r (or -a) | 17:49 |
|
mizipzor
| git branch -a shows master along with all tags/branches on the svn repos under remotes/ | 17:49 |
| ← priidu left | 17:50 |
|
mizipzor
| hmm... should i create a git-svn branch and run git svn fetch again? | 17:50 |
|
uau
| if you configured git-svn to fetch multiple svn "branches" separately then the branch naming may differ | 17:50 |
| → jakob joined | 17:51 |
|
mizipzor
| i guess remotes/trunk is the one i want... so i need to merge that one into my master | 17:51 |
|
| seems to have done the trick :) | 17:52 |
| ← Zephyrus left | 17:52 |
| → wolog joined | 17:53 |
| → marc_kdab joined | 17:54 |
| ← Richardigel left | 17:57 |
| ← jakob left | 17:57 |
| → godsflaw joined | 17:57 |
| → jakob joined | 17:57 |
| ← tchan left | 17:57 |
| ← sh1mmer left | 17:57 |
| → defectiv joined | 17:58 |
|
defectiv
| to diff master and staging do i just do git diff master staging? | 17:58 |
| → yann joined | 17:59 |
| ← tstclair left | 18:00 |
|
uau
| defectiv: if "staging" is a branch name then yes (why did you ask here instead of simply testing it?) | 18:00 |
| → tchan joined | 18:00 |
|
defectiv
| diff origin/staging..origin/master | 18:00 |
|
| i did test it. but i had no idea whether what it was doing was what i wanted. | 18:00 |
|
| thx | 18:01 |
|
uau
| 'git diff branch1 branch2' is the same as 'git diff branch1..branch2' | 18:01 |
| → sh1mmer joined | 18:03 |
| → justin-george joined | 18:03 |
| → rgr joined | 18:04 |
| → segher joined | 18:04 |
| ← jrmuizel left | 18:06 |
| → kpreid__ joined | 18:08 |
| kpreid__ → kpreid_ | 18:08 |
| ← tedoc2000 left | 18:09 |
| → dreiss joined | 18:09 |
| → g0bl1n joined | 18:10 |
| ← mtkd left | 18:10 |
| → tedoc2000 joined | 18:14 |
| ← Juice10 left | 18:14 |
| ← tedoc2000 left | 18:15 |
| → dcampano joined | 18:15 |
| → ntoll_ joined | 18:16 |
|
dcampano
| if i want to revert a file back to an old commit, i thought you could do "git checkout SHA file", but it doesn't seem to work | 18:16 |
|
| am i doing that wrong? | 18:16 |
|
fr0sty
| what error are you getting? | 18:17 |
| → tedoc2000 joined | 18:17 |
|
dcampano
| well, when i show the status it says there are changes, but git diff doesn't show any changes and file is still the same | 18:18 |
| ← ntoll left | 18:19 |
| ntoll_ → ntoll | 18:19 |
| ← mrchrisadams left | 18:20 |
|
fr0sty
| are you sure there is a difference between HEAD and <SHA>? 'git diff SHA..HEAD file' | 18:21 |
| ← viola left | 18:22 |
| ← seanmccann left | 18:22 |
|
parasti
| dcampano: git diff --cached should show changes if the files were different | 18:22 |
| → seanmccann joined | 18:22 |
|
parasti
| dcampano: that's because git checkout $rev $file will set both the work tree _and_ index to the new state | 18:23 |
|
dcampano
| parasti: --cached does show the changes | 18:23 |
|
parasti
| dcampano: so plain git diff, which compares work tree with index, will show no changes | 18:23 |
| → eletuchy joined | 18:23 |
| → mw joined | 18:23 |
| ← godsflaw left | 18:25 |
| → froschi joined | 18:25 |
|
dcampano
| parasti: stupid user error, i was refreshing our prod site looking for the file to be different instead of dev | 18:26 |
| ← rgr left | 18:26 |
| → rgr joined | 18:26 |
| → bindjp joined | 18:27 |
| ← ericpugh left | 18:28 |
| ← bluenovember left | 18:28 |
|
dcampano
| parasti: thanks for the tip on --cached | 18:28 |
|
bindjp
| should I use core.autocrlf = true or core.autocrlf = input and what is the difference? The documenation was hard to understand | 18:28 |
| ← tedoc2000 left | 18:29 |
| → parigaudi joined | 18:31 |
|
parigaudi
| hi | 18:32 |
|
| i'm still quite a n00b to git | 18:32 |
|
| and have a prob with the following: | 18:32 |
|
| i made different changes on 2 different machines. now i pushed one to origin, but have merge problems on the second. | 18:33 |
|
| what's the correct way of dealing with this? | 18:34 |
|
| is there a way to have both files (local and origin, with a suffix) side to side and merge them by hand? | 18:35 |
|
| say somefile.cpp.local and somefile.cpp.origin or so? | 18:35 |
| ← galderz left | 18:35 |
| → Deep6 joined | 18:36 |
|
Ilari
| parigaudi: You got merge conflicts from git merge or git pull? | 18:36 |
| → zodiak joined | 18:36 |
|
Deep6
| guys is it possible to have git only work on content of files as opposed to datestamps etc | 18:36 |
|
parigaudi
| pull | 18:36 |
|
Ilari
| parigaudi: It should leave conflict markers to files... | 18:36 |
|
| parigaudi: Also, there's 'git mergetool'. | 18:36 |
|
| Deep6: Err... Git doesn't store file dates. | 18:37 |
| ← psoo left | 18:37 |
|
parigaudi
| ilari: you mean: conflict markers _inside_ the files? | 18:37 |
|
Ilari
| parigaudi: Yes. | 18:37 |
|
parigaudi
| eek | 18:37 |
|
| is there no way to have instead two separate files, one local and one origin? | 18:38 |
|
Ilari
| parigaudi: 'git status' lists files that have merge conflicts. | 18:38 |
| → xperience joined | 18:38 |
|
Ilari
| parigaudi: Some merge tools (git mergetool) might support that mode... | 18:38 |
| → SpookyET joined | 18:39 |
| ← Sigma left | 18:39 |
|
parigaudi
| ok thx ilari, i'll try that | 18:39 |
| → radarek joined | 18:40 |
| → kylefox joined | 18:41 |
|
crankharder
| how would a pre-commit 'verification' hook work in git's distributed environment, that is -- say I require commit messages to match a certain regex or it fails, how do I ensure that this applies to everyone | 18:41 |
| ← psankar left | 18:41 |
|
crankharder
| if I add the hook in the main repo that everyone pushes to, they're not going to have the hook in their local repo | 18:41 |
| ← jasonn1234 left | 18:42 |
|
kylefox
| Hey everyone. Newb question here. How can I revert my entire branch back to a specific commit? We tried adding a new feature (a series of commits in master) but it's totally not working, and we want to go back to a specific checkout. | 18:42 |
|
Ilari
| crankharder: update hook in "central" repo that rejects pushes. There is no way to ensure that everyone runs some hook, and for good reasons. | 18:43 |
| → jasonn1234 joined | 18:44 |
|
Ilari
| kylefox: 'git reset --merge <commit>'. But that can be problematic if those commits have been pushed... | 18:44 |
|
kylefox
| yeah, the commits have already been pushed :/ | 18:45 |
|
Ilari
| kylefox: Another way would be 'git stash', 'git read-tree <commit>', 'git commit', 'git reset --hard'. | 18:45 |
| → webchick joined | 18:47 |
| → hipe joined | 18:48 |
| → gebi joined | 18:49 |
| ← drubies left | 18:52 |
| → smotchkkiss joined | 18:52 |
|
bindjp
| what is the diff: core.autocrlf = true or input ? The documentation on this hard to understand. My actionscript changes are marking the whole page as changed. | 18:52 |
| ← corto left | 18:53 |
| ← hebz0rl left | 18:53 |
|
Ilari
| bindjp: true does the translation on both checkout and add, input does it only at add time. | 18:53 |
|
bindjp
| Ilari: thank you very much for clearing that up. So true may be my better option for me and my team? | 18:57 |
|
cbreak
| work with proper line endings from the start | 18:58 |
|
| and don't auto muck around with them | 18:58 |
|
| as long as you're consistent, it should work with both LF and CRLF | 18:58 |
| → [reaVer] joined | 19:00 |
| ← [reaVer] left | 19:00 |
| → [reaVer] joined | 19:00 |
| → tildeequals joined | 19:00 |
| ← seanmccann left | 19:00 |
| ← reaVer left | 19:02 |
|
bindjp
| cbreak: I inherited a project that had some strange ones in only some of the files | 19:02 |
| → chewbranca joined | 19:02 |
| [reaVer] → reaVer | 19:02 |
|
chewbranca
| I'm trying to figure out a good deploy strategy. I've got a framework that will be powering a number of applications that only differ in config files and static files such as css and images. Should I just make a fork of the framework for each of the apps I'm building or is there a better way to do it? | 19:04 |
|
bindjp
| cbreak: I am sure they would be consistent and so the teams if we were doing it from scratch because we all use LF on textmate | 19:05 |
| → godsflaw joined | 19:06 |
|
RandalSchwartz
| assemble your app with your configs using puppet | 19:07 |
|
| put the whole config tree of puppet into a separate repo | 19:07 |
| ← kylefox left | 19:09 |
|
chewbranca
| hmm... haven't played with puppet, I'll have to look into that, although I'm a little hesitant to store database configs and api keys in github even if it is a private repo | 19:09 |
| → tedoc2000 joined | 19:09 |
| → tstclair joined | 19:09 |
| → dj_tjerk joined | 19:10 |
|
RandalSchwartz
| no - that's why it should be a separate repo | 19:10 |
|
| put your core code public | 19:10 |
|
| and your configs locally | 19:10 |
|
chewbranca
| the configs have to be accessible by several people | 19:11 |
|
| even with having a separate repo for configs, it has to be online somewhere | 19:11 |
|
RandalSchwartz
| sure, but you don't need github :) | 19:11 |
|
chewbranca
| true | 19:11 |
|
RandalSchwartz
| buy a $10/month VPS, put gitosis on it | 19:11 |
|
| control your own ssh keys | 19:12 |
| ← tk left | 19:12 |
| → tk joined | 19:12 |
|
chewbranca
| I've got gitosis on my home server, and could possibly just put it on the server hosting all these apps | 19:12 |
| → joachim_ joined | 19:12 |
|
RandalSchwartz
| so, there ya go. :) | 19:13 |
| → johnw joined | 19:13 |
| ← magcius left | 19:18 |
|
chewbranca
| cool, that looks like it might actually work pretty well. I'm using capistrano for deploys, but from my limited researching in the last few minutes it looks like puppet and capistrano can play together pretty well, dividing up tasks, isolate capistrano for deploying and puppet for system state/configuration | 19:18 |
|
| thanks for pointing out puppet | 19:18 |
| ← maxter left | 19:19 |
| → tobiassjosten joined | 19:20 |
| → jmcantrell joined | 19:20 |
| ← tildeequals left | 19:21 |
| ← bindjp left | 19:21 |
| → bindjp joined | 19:21 |
| → _iron joined | 19:23 |
| ← tedoc2000 left | 19:25 |
| ← mklappstuhl left | 19:26 |
| → brodyberg joined | 19:27 |
| ← tvw left | 19:28 |
| → Chillance joined | 19:29 |
| → mvanholstyn_ joined | 19:29 |
| → tedoc2000 joined | 19:30 |
| → SubMatrix joined | 19:30 |
| → spearce joined | 19:30 |
|
SubMatrix
| i am getting the following error: ssh: Could not resolve hostname C: hostname nor servname provided, or not known. I believe it has to do with cygwin not allowing me to reference my C drive directly. How do I get around this? | 19:31 |
| ← mvanholstyn left | 19:32 |
| mvanholstyn_ → mvanholstyn | 19:32 |
| → themill joined | 19:34 |
|
Ilari
| SubMatrix: I think drives are mounted under Cygwin (Unix filesystem has only single root). | 19:34 |
|
SubMatrix
| Ilari: meaning what? | 19:35 |
| ← ergates left | 19:35 |
|
SubMatrix
| Ilari: i am just trying to do a git pull | 19:36 |
|
Ilari
| SubMatrix: I think that it has to be specified as /cygdrive/c/... | 19:36 |
|
SubMatrix
| how would i modify my git pull to account for such? | 19:37 |
| → Richardigel joined | 19:38 |
| → nanoo joined | 19:38 |
| ← Richardigel left | 19:40 |
|
Ilari
| SubMatrix: Change the URL (via command line or via .git/config) | 19:42 |
| → dys joined | 19:45 |
|
Deep6
| Ilari, sorry just getting back from lunch now | 19:46 |
| ← bcardarella left | 19:46 |
|
Deep6
| Ilari, I'm kind of using git for a questionable purpose basically I am backing up all my network equipment onto a tftp server via an snmp writenet script | 19:46 |
| → jaql joined | 19:47 |
|
Deep6
| every night,so everytime the file is replaced, it's a "change" that needs to be committed to git | 19:47 |
|
| I am wondering if I can "dumb" down git so it deosn't care about time stamps etc/md5 sum's (pardon my ignorance if I am way off base) | 19:48 |
| → vinse joined | 19:48 |
| ← tbf left | 19:48 |
| → alreadygone joined | 19:48 |
|
alreadygone
| hi, when I do: git commit I get this: fatal: object ca9c99ff4e022b9c783dc92e5d84312a272466c8 is corrupted | 19:49 |
|
Ilari
| Deep6: The only things that are stored about each file per revision: name, Regular/Executable/Symlink and contents. | 19:49 |
|
alreadygone
| what to do? electricity goes out a lot, and that's what happened | 19:49 |
|
PerlJam
| alreadygone: get better power | 19:49 |
|
rchady
| buy a UPS | 19:50 |
|
Ilari
| alreadygone: 'mv .git/objects/ca/9c99ff4e022b9c783dc92e5d84312a272466c8 .git/objects/ca9c99ff4e022b9c783dc92e5d84312a272466c8.bak' and then run 'git fsck --full'. | 19:50 |
|
Deep6
| ok, so if the file doesn't change at all then it won't need a re-commit? | 19:50 |
|
alreadygone
| thanks Ilari | 19:50 |
|
Ilari
| Deep6: Yes. | 19:50 |
|
Deep6
| ok, well that's good news....with one exception | 19:51 |
|
| is there a way for git to ignore a certian pattern within a file? | 19:51 |
|
alreadygone
| Ilari, http://www.pastie.org/844661 | 19:52 |
|
Ilari
| Deep6: Well, what is committed doesn't have to bear resembelance to file on disk, but doing that is often bad idea. | 19:52 |
| ← codeswing left | 19:52 |
| ← mw left | 19:52 |
| ← unijunction left | 19:52 |
| → mw joined | 19:52 |
| ← mw left | 19:52 |
| → mw joined | 19:52 |
|
Deep6
| because unfortunately everytime the snmp script gets the file, it creates a timestamp within the config file in the form of "Last Configuration Change" and NVRAM config last updated | 19:52 |
|
alreadygone
| Ilari, kindly reload it, I edited the post... | 19:53 |
| ← keex left | 19:54 |
|
Ilari
| alreadygone: 'git reset --soft master@{1}'. | 19:54 |
|
| alreadygone: But if you just commit after that, presumably new commit will be combined with previous one... | 19:54 |
| → BlindOracle joined | 19:55 |
|
alreadygone
| kindly reload the page again Ilari :) | 19:55 |
| ← g0bl1n left | 19:55 |
| ← mvanholstyn left | 19:56 |
|
Ilari
| alreadygone: Does 'git status' complain about HEAD or something? | 19:56 |
| → eletuchy_ joined | 19:57 |
| → mvanholstyn joined | 19:57 |
|
alreadygone
| Ilari I just tried git commit now and it worked! | 19:57 |
| ← eletuchy_ left | 19:57 |
| ← eletuchy left | 19:57 |
|
Ilari
| alreadygone: You might want to use 'git show HEAD' to show whats in latest commit and then split it using interactive rebase... | 19:58 |
| → eletuchy joined | 19:58 |
|
alreadygone
| ok | 19:58 |
|
Deep6
| ilari any chance I can make git that "dumb"? | 19:58 |
|
Ilari
| Deep6: Using hash-object followed by update-index one can insert anything one wants as some file contents... | 19:59 |
| → doener joined | 19:59 |
|
Deep6
| hrm, I don't think I need to add something, I just need Git to ignore certain patterns within the files | 19:59 |
| ← eletuchy left | 20:00 |
| ← smotchkkiss left | 20:00 |
|
Ilari
| Deep6: That would require doing some really advanced things.. | 20:01 |
|
| Deep6: Can you generate the file as you want it to look in commit? | 20:02 |
| → HG` joined | 20:02 |
|
Deep6
| well the file is a cisco router config, that is essentially written via tftp | 20:02 |
|
Ilari
| Deep6: E.g. if there are lines that shouldn't be in the commit to remove them. | 20:02 |
| → struberg1 joined | 20:02 |
| ← struberg left | 20:03 |
|
Deep6
| hrmm, I'm wondering if that invalidates the "control" process | 20:03 |
|
| this is one of those audit things | 20:03 |
|
Ilari
| Deep6: If you want git to commit something else than what you have on disk, first you need to generate the version that will be committed. | 20:03 |
| → eletuchy joined | 20:03 |
|
Deep6
| and I need to generate it outside the git tracked repository correct? | 20:04 |
|
| and have the final version end up within the repositoru | 20:04 |
|
| er repository | 20:05 |
|
Ilari
| Deep6: Well, you can use the last committed state as reference when generating the new version. | 20:05 |
| ← alreadygone left | 20:05 |
|
Deep6
| well the file comes in automatically via a tftp transfer | 20:05 |
|
Ilari
| Deep6: The main inputs you have when generating new version is last committed version and version received via TFTP. | 20:07 |
| → _Vi joined | 20:07 |
|
Deep6
| Ilari correct. | 20:07 |
|
Ilari
| Deep6: From those, make the file look like you want it to be in repository, add and commit. | 20:08 |
|
| Deep6: (to get the current version: 'git cat-file blob HEAD:<name-of-file>' (dumps to stdout). | 20:08 |
| → unijunction joined | 20:08 |
| ← tedoc2000 left | 20:08 |
|
Ilari
| Deep6: And presumably that needs to occur unattended, so be very careful. | 20:10 |
| → Nies joined | 20:10 |
| → jackdempsey joined | 20:11 |
| ← jaql left | 20:11 |
|
Deep6
| Ilari, well I think if I can prune out the text I don't want before it ends up in the git directory then for the first one I'll have a differential that I'll need to commit, but thereafter I should only have to commit when I've actually made a confiugration change | 20:12 |
| ← bentob0x left | 20:12 |
|
Ilari
| Deep6: You could also compare what you would commit before committing and not do the commit if new tree and tree of HEAD (you need to build new tree anyway, since commit SHOULD NOT be used unattended). | 20:13 |
|
| If those trees have the same ID that is. | 20:14 |
|
Deep6
| For my purposes is it a problem if the commit occurs unattended? | 20:14 |
|
| I'm not managing source code, just router configurations | 20:14 |
|
Ilari
| Deep6: "Commit" there refers to to 'git commit' command. | 20:15 |
|
Deep6
| I was thinking until I get a more controlled process, it's not a huge deal if I end up having to auto commit and the "Last Configuration stuff" ends up being the difference in each file for months on end | 20:15 |
|
| Ilari, I'm aware of what you were suggesting | 20:16 |
|
Ilari
| Deep6: The way to do commits unattended is to first make index look like you want it, then build tree out of it (write-tree), then commit the tree (commit-tree) and finally update HEAD (update-ref). | 20:16 |
|
Deep6
| hrmm.... I'm going to take that as a note | 20:17 |
|
Ilari
| Deep6: 'git commit' is designed for interactive use. Those commands are the low-level commands to manipulate repository, and are designed to be scripted. | 20:18 |
| ← webus left | 20:19 |
| → agib joined | 20:21 |
| → struberg joined | 20:22 |
| ← struberg1 left | 20:22 |
| ← struberg left | 20:23 |
| → Novelocrat joined | 20:28 |
| → d0ugal joined | 20:30 |
| ← gebi left | 20:32 |
| ← kumbayo left | 20:34 |
|
Deep6
| Ilari thanks! | 20:35 |
|
silug
| could someone please verify that i'm not telling anyone anything too stupid/dangerous in this blog post i just made? http://bit.ly/aTlPu4 | 20:39 |
|
vinse
| silug: you should remove the part about running with knives | 20:41 |
|
crab
| silug: seems ok. | 20:41 |
|
silug
| crab!@#$! | 20:41 |
|
crab
| :) | 20:41 |
| → Plouj joined | 20:42 |
|
Plouj
| hi | 20:43 |
|
| howcome I can't use git merge/pull on bare repositories? | 20:43 |
| → JoeConyers|away joined | 20:45 |
| ← JoeConyers|away left | 20:45 |
| → joeconyers joined | 20:46 |
| → Fern joined | 20:47 |
| ← Fern left | 20:47 |
| → juan_arandaalvar joined | 20:48 |
| ← juan_arandaalvar left | 20:48 |
| ← Haarg left | 20:49 |
| → Alagar joined | 20:50 |
|
crab
| because merge (and thus pull) needs a working directory. | 20:50 |
|
| otherwise there wouldn't be any way to handle conflicts. | 20:50 |
|
SpookyET
| Does anyone use TextMate as a terminal editor? What are the conditions under which it refuses to exit. For example, git commit gets stuck. | 20:50 |
| → Haarg joined | 20:50 |
| ← Alagar left | 20:51 |
| → aresnick joined | 20:51 |
| → Alagar joined | 20:52 |
| ← HG` left | 20:52 |
| ← Alagar left | 20:52 |
| → Alagar joined | 20:52 |
| → montylounge joined | 20:53 |
| → tvw joined | 20:55 |
| ← Alagar left | 20:56 |
| → Alagar joined | 20:56 |
| ← parigaudi left | 20:58 |
| ← ntoll left | 20:58 |
| → Tureba joined | 21:00 |
| → bugfux joined | 21:00 |
| → corni joined | 21:00 |
| → nanooo joined | 21:01 |
| ← d0ugal left | 21:02 |
| → justinlilly joined | 21:02 |
| → krawek joined | 21:03 |
| ← krawek left | 21:03 |
| → krawek joined | 21:03 |
| ← rgr left | 21:04 |
| ← tech13 left | 21:04 |
| ← nanoo left | 21:04 |
| → patthoyts joined | 21:05 |
| ← krawek left | 21:09 |
| → multi_io joined | 21:10 |
| → schambers joined | 21:10 |
| → rgr joined | 21:12 |
| ← bindjp left | 21:13 |
| → dmsuperman joined | 21:14 |
|
dmsuperman
| Does git use the gnu diff tool? | 21:14 |
| ← yunosh left | 21:14 |
|
Novelocrat
| dmsuperman: no | 21:14 |
|
| it has its own built-in diff enginer | 21:14 |
|
| engine* | 21:14 |
|
dmsuperman
| Can I use it as a standalone diff tool? | 21:14 |
|
| Outside of a git repository that is | 21:14 |
|
doener
| yep | 21:15 |
| → graywh joined | 21:15 |
| → yunosh joined | 21:16 |
| → bindjp joined | 21:16 |
|
dmsuperman
| Sweet hopefully it's a little better | 21:16 |
|
| Damn it does the same thing | 21:16 |
| ← bindjp left | 21:16 |
|
graywh
| i doubt this is possible, but i want to extract 2 branches (one often merging the other) into a new repo | 21:17 |
|
dmsuperman
| Perhaps this is just something I can't really do with an automatic diff tool, but take a look at this diff (git diff does the same thing) | 21:17 |
|
| http://paste.cjohnson.me/251 | 21:17 |
| ← ryan[WIN] left | 21:17 |
|
doener
| graywh: two branches? That's trivial, just fetch them | 21:18 |
|
graywh
| i want to wipe out the other branches | 21:18 |
|
Novelocrat
| git branch -D | 21:18 |
|
| git gc | 21:18 |
|
dmsuperman
| Notice how it shows the listen method as being removed, and then re-added entirely (but in a seemingly random spot in the diff output) | 21:18 |
|
graywh
| dividing this project into 2 projects | 21:18 |
|
Novelocrat
| or, git filter-branch | 21:18 |
|
dmsuperman
| listenAnswerForms is an even better example | 21:18 |
| ← auslander left | 21:19 |
|
dmsuperman
| Is that just something diffs everywhere demonstrate? | 21:19 |
|
doener
| dmsuperman: indentation differs, try -b or -w | 21:19 |
| → magcius joined | 21:19 |
| → bindjp joined | 21:20 |
|
parasti
| graywh: you don't have what you don't fetch, there's no need to wipe anything out | 21:20 |
| → krawek joined | 21:20 |
|
dmsuperman
| doener: That's it! | 21:20 |
|
| doener: Thanks, these weird looking diffs have been bugging me for weeks | 21:21 |
|
| Code reviews become so over complicated heh | 21:21 |
| ← dscataglini_ left | 21:22 |
| → radarcg joined | 21:23 |
|
graywh
| i want to split the history into two separate projects | 21:23 |
|
radarcg
| so I'm a noob with git, mind if I ask a noob question? | 21:23 |
| ← viniciusluiz left | 21:23 |
|
graywh
| but i don't want to lose the merges between two branches | 21:23 |
| ← montylounge left | 21:24 |
|
Novelocrat
| radarcg: just ask your question, don't debase yourself | 21:25 |
| → minaguib joined | 21:25 |
| ← dmsuperman left | 21:26 |
| ← unijunction left | 21:26 |
|
minaguib
| If I have a git commit hash, how can I tell all branches it's under ? Following the tree in gitx/gitk/git graph is near impossible | 21:26 |
|
RandalSchwartz
| with git branch | 21:27 |
| ← voxpelli left | 21:27 |
|
RandalSchwartz
| see --merged | 21:27 |
|
| git branch --merged SHA | 21:27 |
|
minaguib
| RandalSchwartz: Thanks. Nice to bump into you after so many years :) | 21:28 |
|
radarcg
| uh, ok. well, I'm trying to use the git plugin for eclipse, and it seems performing commits only commits to the local repository. To actually commit the changes to the remote repository, I need to use a 'Push' command. That seems, well, a little odd. Am I understanding this correctly? | 21:28 |
|
Novelocrat
| That's exactly how it's supposed to work | 21:28 |
|
minaguib
| radarcg: Not odd at all. That's how it works. Nothing specific to eclipse. | 21:28 |
|
Novelocrat
| you are understanding what's happening correctly | 21:28 |
| ← joachim_ left | 21:29 |
|
Novelocrat
| The only operations that talk across the network are fetch (which pull calls) and push | 21:29 |
| ← remi left | 21:29 |
| ← graywh left | 21:30 |
|
radarcg
| ok. Is it just a limitation then of the plugin which seems to fail to remember where (url, credentials, etc) to push the changes? | 21:30 |
|
RandalSchwartz
| "commit locally, push globally" :) | 21:30 |
|
radarcg
| additionally, when I do re-indentify where to push the changes, all but the initial commit requires me to select "force update", otherwise the push is rejected. That too seems odd. | 21:32 |
| → janhouse joined | 21:36 |
| → mrchrisadams joined | 21:37 |
| → unijunction joined | 21:40 |
| → tschundeee joined | 21:45 |
| ← radarcg left | 21:46 |
| ← tobiassjosten left | 21:46 |
| ← Mezner left | 21:47 |
| ← yann left | 21:48 |
| → hecticjeff joined | 21:48 |
| ← hecticjeff left | 21:48 |
| ← RdeWilde left | 21:48 |
| ← khmarbaise left | 21:49 |
| ← rgr left | 21:54 |
| ← Zifer left | 21:56 |
| ← eletuchy left | 21:57 |
| → rgr joined | 21:59 |
| ← brodyberg left | 22:00 |
| → eletuchy joined | 22:01 |
| → bcardarella joined | 22:02 |
| ← d0k left | 22:03 |
| → nanoo joined | 22:03 |
| → graywh joined | 22:03 |
|
graywh
| after doing "git symbolic-ref HEAD refs/heads/foobar", the PWD in my zsh $PS1 is wrong (using %~) | 22:05 |
| ← nanooo left | 22:05 |
|
graywh
| instead of ~/path/to/repo, it's ~_git_refs_cache_pwd | 22:07 |
| ← graywh left | 22:10 |
| ← xperience left | 22:12 |
| ← ph^_ left | 22:12 |
| → mike31 joined | 22:13 |
| → dajero joined | 22:14 |
|
mike31
| what is a portable way to search for a program in the search path. gmake has pathsearch macro and bsdmake exists. maybe which as alternative? | 22:14 |
|
| I'm asking because git's makefile is rather portable and complex | 22:15 |
| → sis_ joined | 22:15 |
| ← sis_ left | 22:16 |
| ← sis left | 22:16 |
|
drizzd
| mike31: hmm, try running the command maybe? | 22:18 |
| → tildeequals joined | 22:18 |
| → joachim_ joined | 22:18 |
| ← froschi left | 22:19 |
| ← schambers left | 22:19 |
| ← joachim_ left | 22:19 |
| → joachim_ joined | 22:20 |
| → ProperNoun joined | 22:23 |
| → g0bl1n joined | 22:23 |
| ← tvw left | 22:23 |
| ← threeve left | 22:24 |
| ← hugoxrosa left | 22:25 |
| → candybar joined | 22:25 |
| ← tstclair left | 22:26 |
|
mike31
| drizzd: sadly too expensive to do so as a check when calling make multiple times for example | 22:26 |
| ← Chillance left | 22:28 |
| → EricInBNE joined | 22:28 |
| ← ben_alman left | 22:29 |
| ← mvanholstyn left | 22:29 |
| → urbanmonk joined | 22:30 |
| ← urbanmonk left | 22:31 |
| ← justinlilly left | 22:31 |
| → urbanmonk joined | 22:31 |
| → Zifer joined | 22:31 |
| ← coolcat left | 22:31 |
| ← Zifer left | 22:31 |
| → bambule joined | 22:32 |
|
davr
| 'which' should work on *nix, mac, and msys | 22:33 |
| → coolcat joined | 22:33 |
|
mike31
| davr: and for extended search: PATH=$PATH:additonal_pathes which COMMAND | 22:34 |
|
| will try | 22:34 |
|
thiago_home
| the problem is that the output of which isn't standard | 22:35 |
| → timcharper joined | 22:36 |
|
mike31
| thiago_home: isn't it always the path to the executable? | 22:36 |
|
thiago_home
| no | 22:36 |
|
Novelocrat
| how about 'type'? | 22:37 |
|
thiago_home
| actually, I've just tested 3 different Unix and it just printed the path name | 22:37 |
|
| so which is better | 22:37 |
| → mjf joined | 22:37 |
|
thiago_home
| type is definitely not portable | 22:37 |
|
mike31
| thiago_home: which ones and why did you think it's not in the 1st place? | 22:38 |
|
thiago_home
| I must have confused with type | 22:38 |
|
| I tested AIX 6, HP-UXi 11.23 and Solaris 10 | 22:38 |
| → revelnick joined | 22:39 |
| ← radarek left | 22:39 |
|
mike31
| wow, cool | 22:39 |
|
| I know it works on Darwin and Linux | 22:39 |
|
| not sure about FreeBSD and the other demons | 22:39 |
| → jmut joined | 22:41 |
| ← jmut left | 22:41 |
| → flaguy48 joined | 22:43 |
| ← malumalu left | 22:43 |
| → brettgoulder joined | 22:44 |
| → Mike||gone joined | 22:44 |
| → Chillance joined | 22:45 |
| → PuffTheMagic_ joined | 22:45 |
| → sanguisdex joined | 22:47 |
| ← brizly left | 22:47 |
| → robin joined | 22:48 |
|
sanguisdex
| svn covert here, I just ran git rm <file> but I need to restore the file git checkout <file> is not returning any thing. how can I get it back? | 22:49 |
| robin → Guest1607 | 22:49 |
| ← robinr left | 22:49 |
|
parasti
| sanguisdex: git status tells you | 22:50 |
|
Novelocrat
| sanguisdex: 'git reset <file>; git checkout <file>' | 22:50 |
|
Ilari
| sanguisdex: 'git checkout HEAD -- <file>'. | 22:50 |
|
Novelocrat
| with git rm, you staged its removal | 22:50 |
| → shennyg joined | 22:51 |
|
sanguisdex
| Novelocrat: parasti Ilari, cheers thanks | 22:51 |
| Mike||gone → Mike_lifeguard | 22:52 |
| → __iron joined | 22:52 |
|
FFForever
| error: You have local changes to 'index.php'; cannot switch branches., how can I disregard the changes? | 22:53 |
|
Mike_lifeguard
| FFForever: do you want to nuke them totally? Otherwise, try git stash | 22:53 |
|
Bombe
| FFForever, you can "git checkout -f other-branch" or "git reset --hard" before changing branches. | 22:54 |
|
| Or git stash if you want to keep the changes, yes. | 22:54 |
|
parasti
| or, git checkout -m ... | 22:54 |
|
FFForever
| I don't care about the changes | 22:54 |
|
shennyg
| so I have a goofy setup and also a no-branch problem... and I am not sure how to solve it | 22:54 |
|
Bombe
| FFForever, then I'd recommend git-checkout -f branch. | 22:54 |
|
shennyg
| I am trying to do a git-svn rebase back to the svn repo | 22:55 |
| ← nanoo left | 22:55 |
|
FFForever
| thanks :) | 22:55 |
|
shennyg
| and it had a conflict | 22:55 |
| ← _iron left | 22:56 |
| ← bindjp left | 22:56 |
|
Bombe
| shennyg, c | 22:56 |
| → bindjp joined | 22:56 |
|
Bombe
| shennyg, conflicts happen. Fix them. :) | 22:56 |
|
mike31
| ok, got it working. the $(shell sh -c '') call is for porability, isn't it? | 22:57 |
|
jayne
| is there a list of large projects using git? | 22:57 |
|
mike31
| I've been inspired by git's makefile, see uname_S definition | 22:58 |
| → killerchicken_ joined | 22:58 |
|
drizzd
| jayne: on git-scm.com and wikipedia | 22:58 |
|
jayne
| yeah, I saw the list on git.or.cz. | 22:58 |
|
| jayne checks wikipedia | 22:58 |
|
killerchicken_
| There was a tool showing you the status of your local branches (whether they're merged upstream, and where to). I think it was written in Ruby? I forgot the name though, and google doesn't give me anything. Any hints? | 22:58 |
| ← jmcantrell left | 22:59 |
|
drizzd
| killerchicken_: topgit? (random guess, probably not even ruby) | 22:59 |
| ← amerine left | 22:59 |
|
killerchicken_
| hm, I think that wasn't it from the description | 23:00 |
| → jelmer joined | 23:01 |
| ← eletuchy left | 23:01 |
|
shennyg
| Bombe, I don't think I am fixing them properly... I edit the file then add then continue rebase and it says the same conflict. | 23:01 |
| → eletuchy joined | 23:01 |
| ← dajero left | 23:02 |
|
shennyg
| don't I just edit the file locally and delete the indicator lines and resave? | 23:02 |
|
Bombe
| shennyg, that can actually happen, yes. It depends on what kind of changes you’re rebasing your changes to. | 23:02 |
| ← Tureba left | 23:02 |
|
mike31
| thanks guys! | 23:03 |
| ← mike31 left | 23:03 |
| ← brettgoulder left | 23:03 |
|
shennyg
| how would I get out of that loop? | 23:03 |
|
| is there a good rebase conflict tutorial?. | 23:03 |
| ← Guest1607 left | 23:03 |
| ← sockmonk left | 23:03 |
|
Bombe
| shennyg, there can not be one because a conflict is highly depending on your situation. | 23:03 |
|
| shennyg, you need to fix the changes for as long as it takes. | 23:04 |
|
shennyg
| ok | 23:04 |
|
Bombe
| At least I’m not aware of any way around that. | 23:04 |
|
shennyg
| I will keep on chugging | 23:04 |
|
| thanks | 23:04 |
|
killerchicken_
| maybe it wasn't ruby... | 23:04 |
|
Bombe
| Have fun. :) | 23:04 |
| ← mcdebugger left | 23:04 |
|
Novelocrat
| shennyg: there is a tool called 'rerere' that can repeat conflict resolutions | 23:04 |
|
shennyg
| thx | 23:05 |
| → brettgoulder joined | 23:05 |
| → p0w3r3d joined | 23:06 |
| ← TeckniX left | 23:07 |
| → scarabx joined | 23:07 |
| ← brettgoulder left | 23:08 |
| ← scarabx left | 23:08 |
| ← eletuchy left | 23:08 |
| → mcdebugger joined | 23:08 |
| ← jackdempsey left | 23:09 |
|
Mike_lifeguard
| Once you have a conflicted file, is there a tool that can go in and accept all the local/mine changes? I've been doing this by hand, and it sucks | 23:10 |
| ← SubMatrix left | 23:11 |
| ← ixti left | 23:12 |
| → Adjective joined | 23:13 |
|
killerchicken_
| drizzd: hah | 23:13 |
|
| drizzd: I was thinking about http://git-wt-commit.rubyforge.org/ | 23:13 |
| ← urbanmonk left | 23:13 |
| ← agib left | 23:14 |
| ← loincloth left | 23:15 |
| ← joeconyers left | 23:15 |
| ← johnw left | 23:15 |
| ← ProperNoun left | 23:15 |
|
drizzd
| Mike_lifeguard: I think git checkout -2 does that | 23:17 |
| → shruggar joined | 23:17 |
| → WebDragon joined | 23:17 |
| → remi joined | 23:19 |
|
shruggar
| anyone got a page comparing benefits of submodules vs subtree merge? | 23:19 |
| → EricInBNE_ joined | 23:20 |
| ← EricInBNE_ left | 23:20 |
| → joeconyers joined | 23:21 |
|
FFForever
| is there anyway I can run a script on my server everytime something is pushed or send a notification out? | 23:22 |
| → d0ugal joined | 23:22 |
| ← bindjp left | 23:22 |
|
Novelocrat
| FFForever: post-receive hook | 23:22 |
|
| have a look at foo.git/hooks/post-receive.sample | 23:22 |
| ← cannonball left | 23:24 |
| → jmcantrell joined | 23:24 |
|
drizzd
| shruggar: well, I think the most important difference is that in case of subtree merge you cannot easily merge back changes to the original subtree's repo | 23:24 |
|
| shruggar: and submodules are cloned separately, so you don't have to clone them | 23:24 |
|
FFForever
| where do I get foo.git? | 23:25 |
|
drizzd
| shruggar: but submodules are a little dumb | 23:25 |
|
Novelocrat
| that was a placeholder, for whatever repository you're interested in notifications from | 23:25 |
| ← LiamH left | 23:26 |
|
FFForever
| ahhhh cool | 23:26 |
|
shruggar
| submodules being dumb was my recollection last I attempted them :/ | 23:26 |
| → daaku joined | 23:26 |
| ← dcampano left | 23:26 |
| → kokx joined | 23:26 |
| → scarabx joined | 23:28 |
|
shruggar
| really I suppose I could solve this by writing a decent makefile and pointing it at another directory.. I'm not likely to ever want to go back a version or have project-specific patches | 23:29 |
| → ntoll joined | 23:30 |
|
drizzd
| shruggar: well, if you only ever make changes in the subtree repo and merge them back | 23:30 |
|
| instead of modifying it in the superrepo directly | 23:30 |
|
| then there should be no problems | 23:30 |
|
shruggar
| hm, yeah, and I guess a pre-commit hook could prevent accidental changes | 23:31 |
| ← sumangurung left | 23:31 |
|
killerchicken_
| does anyone here use git-wtf? | 23:32 |
| ← pantsman left | 23:37 |
| ← tschundeee left | 23:37 |
| → eletuchy joined | 23:38 |
| → dcampano joined | 23:39 |
| ← sanguisdex left | 23:39 |
|
zodiak
| without wanting to start a recursive problem; wtf is git-wtf ? | 23:41 |
| ← Novelocrat left | 23:41 |
| ← imajes left | 23:41 |
| ← ntoll left | 23:41 |
|
daaku
| anyone know of a way to do something along the lines of: echo "my commit msg" | git svn set-tree master -e -- | 23:42 |
|
| (which doesn't work) | 23:42 |
|
wereHamster
| zodiak: doesn't the git-wtf (home/web)-page describe what it is? | 23:42 |
| → Textmode joined | 23:43 |
|
zodiak
| if I could get to any page that had the 'wtf' in it, well, I could check - however the firewall admins have labelled that as 'potentially bad' :) | 23:43 |
| → imajes joined | 23:44 |
| ← scarabx left | 23:44 |
|
wereHamster
| zodiak: your admins have blocked access to this website: http://git-wt-commit.rubyforge.org/ ? | 23:44 |
| → scarabx joined | 23:45 |
| ← yunosh left | 23:45 |
|
zodiak
| nope.. jst anything that has potential 'non work related' words and 'wtf' the made the list :) | 23:45 |
| ← Ryback_ left | 23:46 |
|
Textmode
| zodiak: proxy? :P | 23:46 |
|
| daaku thanks ssh -D | 23:47 |
|
doener
| daaku: GIT_EDITOR='bash -c "cp <(echo my commit msg) $1"' git svn set-tree master -e -- # might do, only tried with "git commit" | 23:47 |
|
zodiak
| Textmode fair idea .. I was wondering what killerchicken was talking about | 23:47 |
|
daaku
| doener: ah, i shall try it | 23:48 |
| ← joachim_ left | 23:49 |
| ← mbroeker left | 23:56 |
| webchick → webchick|afk | 23:56 |
| ← g0bl1n left | 23:57 |
| → sagsousuke joined | 23:58 |
| ← mrchrisadams left | 23:58 |
| ← sagsousuke left | 23:59 |
| → urbanmonk joined | 23:59 |