IRCloggy #git 2009-08-22

Logs Search ←Prev date Next date→ Channels Documentation

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

2009-08-22

bugfux joined00:00
rektide joined00:02
voker57 left00:03
voker57 joined00:04
_Vi joined00:05
eletuchy joined00:05
ctusar left00:06
Theravadan joined00:06
riverrat66 left00:06
hobodave left00:07
voker57 left00:08
voker57 joined00:08
kwatz joined00:09
gebi_gebi00:10
qhoxie left00:10
scroogey left00:13
bugfux left00:13
tonguero_ joined00:13
tonguero_ left00:13
voker57 left00:14
voker57 joined00:15
agile left00:15
joshsdc left00:17
mgualt joined00:18
kibombo left00:18
mgualt left00:18
kibombo joined00:18
jonthefly murbank: Try git-format-patch00:19
jceb left00:19
bleythingbleything|away00:19
jonthefly err...00:19
sorry00:19
voker57 left00:19
jonthefly nevermind you want the history00:19
voker57 joined00:19
fualo left00:22
dpino left00:22
kukks left00:23
voker57 left00:23
tedoc2000 left00:24
voker57 joined00:24
kibombo left00:24
kibombo joined00:24
mgualt joined00:25
justin-george left00:25
fualo joined00:27
robinr left00:27
voker57 left00:28
voker57 joined00:29
tongueroo left00:29
xckpd7 joined00:32
voker57 left00:33
eletuchy left00:35
kibombo left00:35
mgualt left00:35
voker57 joined00:36
kwatz left00:37
kibombo joined00:38
kibombo left00:39
kibombo joined00:39
kibombo left00:40
faithfulgeek_ joined00:40
kibombo joined00:40
bgerber left00:41
juanjoc joined00:42
gonzojive__ left00:42
Ryback_ left00:43
bgerber joined00:43
eletuchy joined00:43
eletuchy left00:44
scroogey joined00:47
scroogey hello00:47
voker57 left00:47
voker57 joined00:48
dreiss left00:48
faithfulgeek left00:48
faithfulgeek_faithfulgeek00:49
voker57 left00:52
voker57 joined00:52
rapha joined00:53
rapha hi00:53
gonzojive_ joined00:53
voker57 left00:55
rapha when it comes to keeping a website in a repository, would you say Git is the more sensible choice over Subversion or just to stick with the latter?00:55
voker57 joined00:55
scroogey no idea, only used svn a few times00:56
agile joined00:57
johnnyg1 joined00:59
voker57 left00:59
voker57 joined01:00
Cromulent joined01:00
aspotashev|eeepc joined01:01
altrux left01:02
altrux joined01:02
cedricv left01:03
porcnick left01:03
reidab left01:03
rapha scroogey: would you feel comfortable doing something like that with git?01:04
voker57 left01:04
kibombo left01:04
rudi_s rapha: I have used both Git and Subversion, I prefer Git but for a simple website it shouldn't matter which you use. Except if you have SSH access (not only FTP) then Git has advantags as you can directly push to the version and the live page is updated.01:04
kibombo joined01:04
rudi_s s/version/version online/01:05
rapha rudi_s: yeah i have ssh ... so that's a real advantage then.01:05
rudi_s: would it handle symlinks gracefully?01:06
crack_head left01:06
rapha and ownership, rights, etc?01:06
rudi_s rapha: Ownerships are a bit of a problem (git doesn't track them), but you could use a hook to set them correctly.01:07
Symlincs are handled correctly.01:07
rapha okay. should be good enough. the pushing thing makes me curious at the least.01:07
voker57 joined01:08
joshsdc joined01:09
akitada joined01:09
ab3 joined01:11
PHLAK rapha: check this link out01:11
rapha: http://joemaller.com/2008/11/25/a-web-focused-git-workflow/01:11
ab3 hoi01:11
PHLAK rapha: this is how I manage my personal websites and how I do it at my work01:12
voker57 left01:12
rapha wow! that looks pretty cool PHLAK!01:12
thanks :)01:12
and how did you make that drawing? is it just skill and you scanned it in?01:12
voker57 joined01:12
ab3 ok, I have a strange problem with git, if I add changes to my local repo with commit -a -m "blabla" and then push them to my remote repo it returns Everything up-to-date01:12
But I don't see any changes when I visit my github account01:13
PHLAK rapha: at my work we even abstract from that and have a separate development and production branch and only pull to the live directory when we're sure we're good01:13
rapha: but I'd just stick with that for now01:13
rapha well, i'm setting up our new company server, and we'll probably have staging, test and production environments01:14
PHLAK ab3: try "git push origin master"01:14
rapha i think i'm gonna print that article of yours out and put it on the bedside table01:14
PHLAK rapha: lol, I didn't write that, but it's proven to work fairly well01:15
rapha oh okay :)01:15
ab3 PHLAK: That is what I did, it just return Everything up-to-date, and no changes in github...01:15
PHLAK ab3: do "git remote show origin" and make sure you see your github repo there01:16
rapha i did it with svn on the last server and it proved to be somewhat of a chore with things becoming out of sync and what have you01:16
PHLAK rapha: I've never used SVN, but my boss has, and after using Git he said he'd never go back to SVN01:16
rapha yeah thats what ppl said about CVS => SVN back then01:17
ab3 yep, [email@hidden.address] is in git remote show origin01:17
rapha and also about RCS => CVS _way_ back then lol01:17
PHLAK hmmm...01:17
rapha anyway off to bed and thx for the link again!01:18
PHLAK welcome01:18
ereslibre joined01:18
PHLAK ab3: and you've generated and added your ssh key?01:18
kennethlove left01:19
ab3 yes, it worked fine untill I fetched and dcommited my work to the original svn trunk01:19
but I can't even do that now...01:19
wang_wang01:19
voker57 left01:20
PHLAK try creating a new folder/repo01:20
pulling that repo down01:20
make a small change and commit/push that01:20
voker57 joined01:21
ab3 ok but what about my current changes?01:21
PHLAK thinking...01:22
if you KNOW what you have locally is good01:22
crack_head joined01:22
PHLAK you can allways do "git push origin master -f" to force an overwrite of the remote repo with your local repo01:23
voker57 left01:25
ryoma joined01:25
voker57 joined01:25
ryoma how come sha-1 are printed in base 16 instead of, say, ascii85?01:25
scroogey left01:25
spaceonline left01:26
EricInBNE joined01:26
chris2 left01:26
Evanlec joined01:27
veiz joined01:27
ab3 adding the -f flag doesn't change anything...01:29
voker57 left01:29
bradly left01:29
ericindc left01:30
wshimmy left01:31
mrlemao joined01:32
aspotashev|eeepc left01:32
voker57 joined01:33
mm_202 joined01:33
Cromulent left01:34
wshimmy joined01:35
_bsy_ joined01:36
_bsy_ left01:36
voker57 left01:37
Adlai joined01:38
voker57 joined01:39
tongueroo joined01:40
voker57 left01:40
_bsy_ joined01:41
sinsun joined01:41
sinsun Free Chinese Class is still welcome Linux users and friends. Join #sinsun-says01:42
voker57 joined01:42
ereslibre left01:42
levifig joined01:43
levifig left01:45
levifig joined01:46
voker57 left01:46
voker57 joined01:47
uau left01:47
tongueroo left01:48
voker57 left01:50
mrlemao left01:50
gonzojive_ left01:50
voker57 joined01:50
uau joined01:50
aspotashev|eeepc joined01:51
danferranti joined01:53
_bsy_ left01:53
Krynnotaur joined01:53
voker57 left01:54
Krynnotaur left01:54
sinsun left01:55
danferranti left01:55
Krynnotaur joined01:55
levifig left01:56
gonzojive_ joined01:56
voker57 joined01:57
AkumaStreak left01:58
voker57 left02:01
hzlocky left02:02
voker57 joined02:02
lohrun left02:02
frede left02:03
EiNZTEiN joined02:05
danferranti joined02:05
Theravadan left02:06
scarabx joined02:07
gonzojive__ joined02:07
ctusar joined02:07
voker57 left02:08
voker57 joined02:09
Fissure left02:10
spearce left02:12
mbrumbelow joined02:13
alezandro joined02:13
_bsy_ joined02:14
voker57 left02:14
PHLAK left02:14
aspotashev|eeepc left02:14
voker57 joined02:15
benn_d left02:15
AkumaStreak joined02:16
danferranti left02:16
EiNZTEiN left02:17
EiNZTEiN joined02:18
voker57 left02:19
voker57 joined02:19
murbank left02:20
cytrinox_ joined02:21
cytrinox left02:21
cytrinox_cytrinox02:21
fualo left02:21
qmx joined02:22
WALoeIII left02:23
DrAk0 joined02:23
voker57 left02:23
voker57 joined02:24
gonzojive_ left02:24
_bsy_ left02:28
benn_d joined02:28
voker57 left02:28
voker57 joined02:30
qrush joined02:30
benn_d_ joined02:33
heo left02:33
richardcavell left02:34
EiNZTEiN left02:34
voker57 left02:34
voker57 joined02:35
benn_d left02:36
zehrique_ joined02:36
panpainter left02:37
zehrique left02:38
zehrique_zehrique02:38
voker57 left02:39
qrush_ joined02:39
chuck If I have a brand new, uninitialised remote repo and two local branches (master, new-wiki-list-abstract), how would I go about making new-wiki-list-abstract be the new remote master branch and the local master branch be the remote old-config branch?02:39
breitz left02:39
joshsdc left02:39
bcardarella left02:39
jinzhu joined02:43
atreyu joined02:44
ab3 is it normal that when you do git svn fetch blabla that is fetches every previous revision?02:45
atreyu left02:45
SjB left02:45
sergiodj left02:45
SjB joined02:46
mm_202 left02:46
offby1 of course02:49
assuming you didn't already _have_ those revisions.02:49
DrAk0 left02:49
offby1 If you _did_ already have 'em, then that's a whopping huge bug.02:49
voker57 joined02:52
tjafk2 joined02:52
memiux left02:53
qmx left02:53
atreyu joined02:54
atreyu left02:55
panpainter joined02:56
voker57 left02:58
voker57 joined02:58
qrush left02:59
tobias__ left03:01
eletuchy joined03:02
voker57 left03:02
voker57 joined03:02
atreyu joined03:04
atreyu left03:05
voker57 left03:06
voker57 joined03:07
segher left03:07
Theravadan joined03:08
tjafk1 left03:09
akitada left03:09
jinzhu left03:10
voker57 left03:11
voker57 joined03:11
eletuchy left03:14
zehrique left03:15
voker57 left03:15
voker57 joined03:16
voker57 left03:20
voker57 joined03:21
ab3 abe@higg:pygame-mirror$ git svn dcommit03:23
Committing to svn://abe@seul.org/svn/pygame/trunk ...03:23
A test_git03:23
Item already exists in filesystem: File already exists: filesystem '/home/svn/repos/svn/pygame/db', transaction '2639-1', path '/trunk/test_git' at /sw/lib/git/git-svn line 49203:23
joshsdc joined03:23
ab3 any idea what goes wrong here03:23
I don't find the test_git file and have done a lot more changes that the test_git file03:24
gonzojive__ left03:26
MisterN left03:26
juanjoc left03:27
kwatz joined03:28
girishr joined03:29
voker57 left03:29
_bsy_ joined03:29
dreiss joined03:30
voker57 joined03:30
pheaver left03:31
pheaver joined03:32
pheaver left03:32
escrooge1 joined03:34
voker57 left03:34
panpainter left03:34
gonzojive_ joined03:34
faithfulgeek left03:34
faithfulgeek joined03:34
qrush_ left03:38
kmamykin joined03:41
jjuran left03:41
heo joined03:41
voker57 joined03:41
ab3 left03:42
Theravadan left03:45
drio joined03:46
drio I have a project in a box... I go to another box and I clone the original repository...03:46
I then make some changes and commit to the local copy..03:46
then I can either:03:47
push to the origin..03:47
or pull from the remote in the origin..03:47
if I do this last one.. nothing gets pull..03:47
if I push to the origin..03:47
the changes go to the index....03:47
so I still have to commit...03:47
joshsdc left03:47
drio but the log changes are already there..03:47
Ademan what do you mean nothing gets pulled? are your changes in a different branch?03:47
dschulz joined03:47
drio origin has master03:48
let's call the orgin machine fred03:48
AkumaStreak left03:48
drio and the machine I clone and develope: milnouse03:48
sorry, milhouse03:48
so I do this:03:48
qrush joined03:48
drio 1. create my git project in fred03:48
2. go to milhouse and clone the project in fred03:48
voker57 left03:48
drio 3. I add some changes in fred.... and I commit.. to the master branch03:49
then I just want to push those changes to fred...03:49
I can either pull from milhouse or push to fred...03:49
if I push...03:49
everything goes to the master branch in fred .. but to the index... it doesn't really get merged...03:49
if I pull...03:49
This is what I get..03:49
wagle_home left03:50
drio http://pastie.org/59124103:50
squisher joined03:51
girishr left03:51
madewokherd I don't know why pull is recommended03:52
I always find it simpler just to fetch and do things with the remote branches03:52
kastner joined03:52
johnnyg1 left03:53
kastner Alright, I know how annoying git-svn questions are so I'll be brief ;), I created my repo with git svn clone -s $SVN/site, I now have /htdocs in my root (this is right)... if I do get checkout -b erik remote/erik it will check out the branch erik ($SVN/site/branches/erik)03:53
dschulz left03:53
kastner the problem is that INSIDE of that directory are all my SVN branches.. so if I were to merge from erik/test1 to master, I'm going to have a big problem03:54
so I either need to re-import all the branches somehow (with their parent structure), OR I need a way to say "ignore the parent when merging"03:54
voker57 joined03:55
wagle_home joined03:55
cloudhead joined03:55
jfkw left03:55
rudi_s left03:55
kastner humm: http://stackoverflow.com/questions/258590/how-do-i-import-svn-branches-rooted-in-different-directories-into-git-using-git-s03:56
ericindc joined03:56
kmamykin__ left03:57
ctusar left03:59
srid joined04:01
richardcavell joined04:03
AkumaStreak joined04:03
AkumaStreak left04:03
qrush left04:03
enherit left04:06
aussiegeek joined04:06
voker57 left04:07
voker57 joined04:07
chuck left04:11
mrlemao joined04:12
greboides left04:12
mrlemao left04:13
voker57 left04:13
voker57 joined04:13
ben_h joined04:15
kastner left04:16
voker57 left04:18
loincloth left04:18
relix joined04:18
chuck joined04:19
voker57 joined04:19
pheaver joined04:20
cloudhead left04:22
voker57 left04:23
voker57 joined04:23
ben_h left04:26
gonzojive_ left04:26
gonzojive_ joined04:27
fualo joined04:27
ben_h joined04:27
relix left04:28
escrooge1 left04:28
tfarina left04:29
kwatz left04:30
fualo_ joined04:31
Rich_Morin joined04:31
markelikalderon left04:31
Rich_Morin left04:32
voker57 left04:34
marcelo_ left04:36
voker57 joined04:38
porcnick joined04:39
RayMorgan joined04:39
hydrogen joined04:40
voker57 left04:40
RayMorgan left04:40
RayMorgan joined04:40
voker57 joined04:40
codeswing joined04:40
aspotashev|eeepc joined04:41
voker57 left04:44
voker57 joined04:45
fualo left04:46
doener left04:46
doener joined04:46
faithfulgeek left04:47
faithfulgeek joined04:47
voker57 left04:49
segher joined04:49
voker57 joined04:50
Bass10 left04:52
gonzojive_ left04:53
voker57 left04:54
voker57 joined04:56
bdowning joined04:59
voker57 left05:00
voker57 joined05:00
scarabx left05:02
voker57 left05:04
voker57 joined05:04
meanburrito920_ joined05:05
meanburrito920_ left05:07
srbaker joined05:08
srbaker folks05:08
in my repo i have a dir called foo and one called bar05:08
is it possible to git clone and only get stuff below foo?05:09
aspotashev|eeepc no05:09
git is not svn05:09
srbaker didn't think so, but wanted to be sure before i moved everything05:09
thanks05:09
srbaker left05:09
omenking joined05:10
omenking HELPEPEEPL05:10
stuffcorpse left05:11
voker57 left05:12
voker57 joined05:12
richardcavell left05:16
omenking I have a branch05:16
and somehow I lost the commit05:16
I want to merge my branch into my master05:16
but the commit is gone and it says my master is up to date with my branch which isn't the case05:16
how do I force my master to accept everything in my branch?05:17
Altreus_ joined05:17
voker57 left05:17
reprore joined05:17
Altreus left05:18
voker57 joined05:18
dodo_the_last left05:20
voker57 left05:22
DavidKlein joined05:23
hydrogen left05:24
voker57 joined05:26
ProperNoun joined05:29
Theravadan joined05:31
mpolesky joined05:34
mpolesky left05:35
WALoeIII joined05:36
voker57 left05:36
altrux left05:37
voker57 joined05:37
WALoeIII left05:38
reprore left05:39
orafu left05:40
orafu joined05:41
WALoeIII joined05:41
voker57 left05:41
dpino joined05:42
ben_h left05:44
dirk2 joined05:45
voker57 joined05:46
Theravadan left05:48
WALoeIII left05:49
WALoeIII joined05:49
codeswing left05:50
voker57 left05:51
voker57 joined05:51
pheaver left05:52
scientes joined05:54
voker57 left05:54
stuffcorpse joined05:57
reprore joined05:58
voker57 joined05:58
voker57 left06:02
voker57 joined06:03
panpainter joined06:03
dirk2 Can anybody help with a hopefully easy newbie rebase question? If this is a FAQ, a link with a good description would already help ;)06:04
http://pastebin.com/m1fa325e806:04
pheaver joined06:04
dirk2 I haven't figured out how to push rebase to an upstream remote repository06:05
crab dirk: push -f06:06
dirk2 crab: Yes, push -f does work06:06
voker57 left06:07
dirk2 crab: but is this the intended way?06:07
crab: it seems to me that people pulling from the remote afterwards have issues06:07
DavidKlein left06:07
sitaram joined06:08
crab yes, they will. you should never rebase things other people can see.06:08
voker57 joined06:08
crab (or you should announce that you're going to rebase branch x so they should be prepared for it)06:08
but basically, avoid rebasing commits that have been published to other people.06:08
danferranti joined06:08
dirk2 crab: prepared for it: So they have to throw away their old stuff and do a new clone?06:09
crab (the people who are having problems after pulling can do "git reset --hard origin/work" to recover and set their work branch to what you push -f'ed)06:09
dirk: oh no, no need to re-clone. just reset --hard.06:10
dirk2 crab: ah, ok :)06:10
crab: never rebase: so instead, merging should be done?06:10
voker57 left06:12
crab dirk2: it depends on what you're trying to do. sometimes a branch that everyone agrees can be rebased is the right thing to do (but given enough people, someone is sure to make a mistake at some point and you'll have to put in effort to sort it out)06:12
Deradner joined06:12
voker57 joined06:12
bugfux joined06:13
crab merging work into master every now and then avoids that problem, and may or may not be more appropriate for you. i don't know.06:13
crack_head left06:13
dirk2 crab: Well, basically I have X - Y - Z on top of linux-stable (e.g. 2.6.30.4). Now, if 2.6.30.5 comes, I like to have X - Y - Z on top of 2.6.30.506:13
danferranti left06:14
dirk2 ... and provide the result to everybody06:14
Adlai left06:15
Adlai joined06:15
__Joker left06:16
voker57 left06:16
voker57 joined06:17
joshthecoderjoshthecoder_afk06:20
WALoeIII left06:21
WALoeIII joined06:21
voker57 left06:23
voker57 joined06:24
Derander left06:24
milluminu ls06:26
voker57 left06:28
mithro joined06:31
voker57 joined06:33
khmarbaise_ left06:34
squisher left06:39
WALoeIII_ joined06:39
voker57 left06:39
voker57 joined06:40
pheaver left06:41
dirk2 Back again ;) So what's the best way to maintain X - Y - Z on top of e.g. linux stable like described above and provide the result to everybody remote/upstream? If not using rebase and push -f ?06:42
karmi joined06:43
s34n_ joined06:44
voker57 left06:44
voker57 joined06:44
s34n_ I would like to add a file from a different directory than the one that contains .git/06:45
the file is in the /etc directory06:45
but I'd really like to include it in my git repo06:46
s34n_s34n06:48
voker57 left06:48
s34n I would like to add a file from a different directory than the one that contains .git/06:49
the file is in the /etc directory06:49
but I'd really like to include it in my git repo06:49
voker57 joined06:49
_bsy_ left06:49
_bsy_ joined06:49
_bsy_ left06:50
porcnick left06:51
SjB left06:51
voker57 left06:52
voker57 joined06:52
WALoeIII left06:52
WALoeIII_WALoeIII06:52
panpaint-1 joined06:53
panpaint-1 left06:53
dreiss left06:56
panpaint-1 joined06:57
panpaint-1 left06:57
voker57 left06:59
tongueroo joined06:59
voker57 joined06:59
thiago_home joined07:00
jinzhu joined07:00
panpainter left07:03
ben_h joined07:03
bcardarella joined07:03
DeradnerDerander07:06
d0k joined07:08
porcnick joined07:08
bcardarella left07:09
raoul joined07:09
jceb joined07:14
tongueroo left07:15
KrynnotaurDivestiture07:16
ben_h left07:17
xyz joined07:18
Guest80557 joined07:18
Guest80557ben_h07:19
dreiss joined07:19
srid left07:24
juan_arandaalvar left07:27
veiz left07:28
priidu joined07:28
Dashkal left07:29
mithro left07:31
RaceCondition joined07:32
dirk2 bbl. If anybody has a hint regarding the rebase topic discussed above, I will read the logs ;) Thanks!07:35
aspotashev|eeepc left07:35
aspotashev|eeepc joined07:35
dirk2 left07:36
harinath joined07:36
porcnick left07:37
RayMorgan left07:39
gonzojive_ joined07:40
gonzojive_ left07:40
ADmad joined07:41
ADmad hello, is it possible to get syntax highlighting for php files under cgit ?07:42
smerrell joined07:42
xyz left07:42
milluminu thats silly07:44
s34n left07:44
vals_ joined07:44
ADmad milluminu: was that for me ?07:44
davegb3|davegb307:45
milluminu because git has nothing to do with any particulr language07:45
but yeah technically it is07:45
tango_ left07:45
vals_tango_07:45
Modius_ joined07:46
onigiri joined07:46
milluminu you could just pipe it07:46
ADmad milluminu: i guess you didnt read my question properly.. i am talking about *cgit* the web interface for git07:46
doener milluminu: cgit is a web-interface which can show the blobs to the user. Asking for syntax highlighting in that context isn't really stupid07:46
milluminu git show master:dir/file | some prettifier07:46
jceb left07:46
milluminu sorry i missed that admad07:46
onigiri left07:47
onigiri joined07:48
Modius_ left07:48
Modius joined07:48
omenking left07:49
Aides nice idea, btw07:50
doener ADmad: there's some script in filters/ that uses "highlight" for the highlighting07:52
ADmad: http://hjemli.net/git/cgit/tree/filters/syntax-highlighting.sh?id=6445a3ad0987ba66eef555c9caa3fc378f99ee2207:52
ADmad: according to the command's home page (apparently in german only), it also supports php, so just adding another entry to the case switch should do07:53
ADmad doener: yes i found there's a "source-filter::" option in config, so need to figure out what value to set for it07:53
doener ADmad: should have the path to the filter script AFAICT07:54
ADmad: see the comments in http://hjemli.net/git/cgit/tree/filters/syntax-highlighting.sh?id=6445a3ad0987ba66eef555c9caa3fc378f99ee2207:54
ADmad doener: yes i am checking it out, thank you07:55
doener oh, heh, the highlight command actually also has english docs: http://www.andre-simon.de/doku/highlight/en/highlight.html07:56
ADmad ah thats saves me using google translate :)07:56
where can i check the logs for this channel?07:57
doener see topic07:57
though I usually just google "git irc log", first hit07:58
SeySayux_ joined07:58
SeySayux_ Hello, how do I import from SVN?07:58
ADmad doener: got it. thx07:58
harinath left07:59
|jon| SeySayux_: look at git-svn07:59
SeySayux_ Okay, thanks07:59
harinath joined08:01
voker57 left08:05
voker57 joined08:06
smerrell left08:09
onigiri left08:09
voker57 left08:10
voker57 joined08:10
dreiss left08:10
releod left08:12
patrikf joined08:12
voker57 left08:14
RaceCondition left08:14
voker57 joined08:15
ianmcorvidae|alt joined08:17
onigiri joined08:17
poige joined08:18
poige Hi! Suppose, I've commited ver 2.0, then 3.0 and 4.0. Now I want to have commited ver 1.0 and rebase it to be the first commit (instead of ver 2.0). How can I?08:19
bcardarella joined08:20
onigiri left08:21
voker57 left08:21
Derander left08:21
onigiri joined08:21
voker57 joined08:21
segher left08:22
Divestiture left08:22
myabc joined08:23
hzlocky joined08:24
sitaram doener: http://pastebin.com/d56010bf (finding dropped/lost stashes again!)08:25
doener: does that look good?08:26
doener sitaram: http://pastebin.com/m1dbacb8b08:28
poige Hi! Suppose, I've commited ver 2.0, then 3.0 and 4.0. Now I want to have commited ver 1.0 and rebase it to be the first commit (instead of ver 2.0). How can I?08:28
doener sitaram: and calling log multiple times is bad08:28
sitaram: if the pager is run for each one, you have to quit each one08:28
mbroeker joined08:29
doener sitaram: and if, for example, the first two don't trigger the pager, but the third one does, you likely won't see the first two at all08:29
sitaram: or rather "if less decides that paging is not required for the first two, but for the third one"08:30
sitaram doener: ok wait wait; I mainly wanted confirmation of the operative "[[...]]" line...08:30
doener sitaram: heh, didn't check that for syntax or so, I fail at proof-reading bash scripts08:31
sitaram doener: not shell syntax; the ^ == ^2^ bit08:31
does that describe a triangular commit properly (seems it does, from your paste)08:31
bcardarella left08:31
SeySayux_ Git was made by Linus Torvalds, right?08:31
doener that confirms the triagle, but ignores all commits except for A B Y08:32
voker57 left08:32
voker57 joined08:32
sitaram doener: that's ok; typically I only want to see B08:32
doener sitaram: well, it ignores X, which must not exist for a possible stash entry08:32
sitaram: the shape is uncommon for git, (as B would not happen, could have fast-forwarded from A to Y), but common for svn imports08:34
ankit9_ left08:34
sitaram doener: does that shape come up often (I guess my branches dont merge back and forth immediately so I never saw it, mine have more commits in between when I do that)08:34
doener: svn does not exist in my world ;-)08:34
doener sitaram: may also happen in environments where people prefer --no-ff merges08:35
ben_h left08:35
doener sitaram: e.g. devA gets his brach up to date by merging, then upstream pulls from him with --no-ff08:35
ADmadADmad|away08:36
sitaram doener: hmm ok; but if I wanted to help a newbie who lost a stash, this will at least give him a good set of candidates, and the messages can be used to further (mentally) filter08:36
doener sitaram: how much better than the --grep is that?08:37
voker57 left08:37
voker57 joined08:37
sitaram doener: dont know; depends whether things like --no-ff are more indicative of an expert of using a message on a stash08:38
a/of/or08:38
s/of/or (damn!)08:38
doener s/of/or/2 I guess? (sed syntax)08:38
sitaram :) thanks!08:38
doener sitaram: and the --grep _does_ capture stash entries with custom messages08:39
poige left08:39
ben_h joined08:39
sitaram doener: hmm? because of the "on branch"?08:39
doener sitaram: no the "(on branch)" is when you are on a detached head08:40
sitaram: non-custom message: WIP on $name: $commit_message_of_$name08:40
sitaram: custom message: On $name: $custom_message08:41
sitaram aah08:41
doener sitaram: so it's the "\(WIP on \|On \)" part that matters08:41
sitaram doener: followed by the non-space\+:08:41
ok08:42
well never mind then, scratch all this... :(08:42
doener that's required in any case, the non-space replaces "(no branch)" when you were on some branch when you stashed08:42
voker57 left08:42
crab hi.08:43
doener hey crab08:43
voker57 joined08:43
doener sitaram: http://git.pastebin.com/m6087a6408:46
sitaram: the --merges thing is also helpful. While regular commits might say "On foo: fjksfjsdlf", merge commits are very very unlikely to do that08:47
sitaram doener: ok08:47
voker57 left08:48
voker57 joined08:49
reprore left08:50
ankit9_ joined08:52
krawek left08:52
Evanlec left08:53
hbunny left08:53
reprore joined08:53
reprore left08:53
voker57 left08:57
voker57 joined08:57
onigiri left08:57
ph^ joined08:58
lohrun joined08:58
HG` joined08:59
onigiri joined08:59
ben_h_ joined09:02
voker57 left09:03
ben_h left09:03
voker57 joined09:03
Sigma joined09:05
Chillance joined09:06
fualo_ left09:07
JNR___ joined09:11
voker57 left09:11
voker57 joined09:11
patcito left09:12
ryoma left09:12
WALoeIII left09:12
Tuomas joined09:14
voker57 left09:15
voker57 joined09:16
heo left09:19
roberthorrey joined09:22
roberthorrey so i committed something to my branch with the wrong message. any way to change it retroactively?09:22
wereHamster roberthorrey: git commit --amend09:23
roberthorrey ah, perfect, thanks09:23
_Vi left09:28
rubyist left09:38
rubyist joined09:40
ToxicFrog left09:40
ToxicFrog joined09:41
SuperRoach joined09:41
SuperRoach lol, love the topic09:41
roberthorrey the google summer of code project looks neat09:45
it's going to make my scm of choice even better :)09:45
HG` left09:45
robinr joined09:47
__iron joined09:51
tokkee left09:54
Altreus_ left09:57
frede joined10:00
lu_zero left10:01
Evanlec joined10:08
voker57 left10:09
Strogg left10:09
voker57 joined10:09
therrg joined10:09
Strogg joined10:10
arachnist joined10:13
sitaram_ joined10:13
arachnist hi10:13
i've probably got a lame question, but, oh well10:13
tbuehlmann joined10:15
HG` joined10:15
doener arachnist: so far, there's no question at all10:15
arachnist i've added a remote for a git repo, but it doesn't seem to work as intended. "git pull sparc" (where sparc is the second remote) gives me this: http://dpaste.com/83928/10:15
doener arachnist: well, you didn't tell it what to merge10:16
arachnist but i already have those configuration stuff10:16
remote.sparc.url=arachnist@khas:scm/arbor10:16
remote.sparc.fetch=+refs/heads/master:refs/remotes/sparc/master10:16
doener arachnist: maybe you meant "git fetch sparc"?10:16
arachnist hmm10:16
doener arachnist: pull is fetch + merge/rebase10:16
arachnist well, i want to merge all the changes from "sparc"10:17
doener arachnist: "sparc" is a remote, which has possibly multiple branch heads, so you need to tell pull which one you want to merge10:18
PaNtH3R joined10:18
doener arachnist: e.g. "git pull sparc master"10:18
arachnist oh10:18
sitaram left10:18
PaNtH3R hi ... all.. I have one noob question10:18
doener (this won't update the remote tracking branch, as it by-passes the configured default fetch refspec)10:18
PaNtH3R Is it possible to auto pull/fetch submodules when pulling/fetching master?10:19
arachnist doener: thanks, "git pull sparc master" works. essentially, "git pull sparc '+refs/heads/master:refs/remotes/sparc/master'" also did, but was too long to remember10:20
doener arachnist: the difference is that the latter also updates the remote tracking branch10:21
arachnist good to know10:21
doener arachnist: if you set branch.<name>.{remote,merge} to sparc and refs/heads/master respectively, just "git pull" will also work, and update the remote tracking branches10:22
JNR___ left10:22
sitaram joined10:22
Weasel[DK] joined10:24
HG` left10:25
cao joined10:32
rubyist left10:32
caoGuest9481410:33
rubyist joined10:33
sitaram_ left10:35
pielgrzym joined10:37
bugfux left10:39
rubyist left10:39
pielgrzym hi there :) I'm quite new to git :) I set up a remote bare repo etc. created proper git configs and .gitignore files. In .gitignore I specified .vbk which is a folder holding vim swapfiles etc. it's nearly in each of the projects folders. Is there a way to tell git to remove all instances of .vbk directory recursively all accross the project?10:39
rubyist joined10:39
myabc left10:40
pielgrzym I mean the file is ignored, but I wanna get rid of the preexisting .vbk folders in my remote git repo :)10:40
davegb3 pielgrzym: put .vbk/ in the .gitignore10:40
crab why are there .vbk files in your remote git repo at all?10:40
Aides pielgrzym, you want git to delete them?10:40
physically?10:40
pielgrzym davegb3: already got it there, need to delete it10:40
Aides or from the repository?10:41
pielgrzym Aides: yes :)10:41
err10:41
PaNtH3R left10:41
pielgrzym from the repo10:41
I only need them on dev machine where I actually use vim :) and they can be created now since they will be ignored by gitignore. I only want to get rid of the old ones10:41
HG` joined10:42
sitaram left10:42
Aides git rm `find . -type d -name .vbk`10:42
pielgrzym Aides: wow :) hah, this is a bashfull solution :) thanks! :) is there a way to dry-run it?10:43
Aides echo git rm `find . -type d -name .vbk`10:43
Aides feels bashy today10:43
froschi joined10:43
pielgrzym ;)10:43
Aides git rm -n `find . -type d -name .vbk`10:44
that would dry-run it more gitty10:44
pielgrzym Aides: hah, worked flawlessly :) thanks again :)10:45
doener git rm -n --ignore-unmatch .vbk */.vbk10:45
hm, no, actually not10:45
segher joined10:46
Aides doener, that's bashy too, and for single-level only10:46
HG` left10:46
doener Aides: actually I meant the * to be interpreted by git, should have escaped it10:47
sitaram joined10:47
doener Aides: but the "* matches /" assumption is only true when there's no / in the pattern10:47
Aides: e.g. "git rm \*.txt" deletes .txt files, regardless of the directory they're in10:48
mlpug joined10:48
sitaram_ joined10:50
Guest13774 left10:50
Aides ah, okay10:51
jinzhu left10:51
pielgrzym ah git is fabulous10:52
patmaddox left10:52
pielgrzym how those damn .svn files pissed me off10:52
sitaram_ left10:52
psynaptic joined10:54
markelikalderon joined10:55
pielgrzym one other thing. I've got an entry in my .gitignore: media/pictures/* but I can't add the pictures folder itself to git. I only want git to ignore it contents10:55
juanjoc joined10:55
doener pielgrzym: git doesn't track directories10:55
pielgrzym ah, indeed :) it tracks the content itself :)10:55
doener: so no way to achieve this?10:56
doener pielgrzym: a common way is to have a .gitignore file in such a directory, probably containing10:56
just a * (instead of having the rule in the top-level .gitignore)10:56
pielgrzym hm good idea :) thanks :)10:57
doener pielgrzym: the other common wisdom is: let your build system/installer/software create required directories10:57
malumalu joined10:57
pielgrzym doener: I guess I'll stick to that one since putting gitignore would be troublesome (I've got one django engine and several fcgi runfiles each having it's own media dir, it would be a pain in the neck to remember putting .gitignore file each time I tinker there10:58
scarabx joined11:01
LimCore joined11:03
dodo_the_last joined11:03
kumbayo joined11:05
Aides looks for perl syntax highlighting library11:05
voker57 left11:08
voker57 joined11:08
SeySayux_ How do I allow other people to pull from my repo? Do I need to set up my firewall or something?11:12
LimCore SeySayux_: public server are not very secure, how about some free services like github etc (esp. for open source projects)11:13
SeySayux_ I'm using SF.net11:14
But as I understand it, I can allow other people to pull from my repo, I can pull from other people's repo, etc? Otherwise it's just the same as svn, except that I need to use an extra 'git push' command11:15
arachnist left11:16
kmamykin left11:16
thiago_home SeySayux_: you can run git-daemon11:16
or you can give people ssh accounts11:16
sitaram left11:16
kmamykin joined11:16
SeySayux_ ssh accounts?11:17
doener SeySayux_: fetching directly from your working repo isn't really recommended, as that means that your local history becomes public, so all history rewriting is "forbidden"11:17
SeySayux_ starts twitching11:17
SeySayux_ Okay... so where should they fetch from instead?11:17
doener SeySayux_: your repo at sf is your "distribution point", you push there whatever you deem ready for public consumption11:17
SeySayux_: others can fetch from there, to get your stuff into their local repos11:18
markelikalderon left11:18
SeySayux_ Okay, okay... I think I got it. Now how is this different from svn?11:18
doener SeySayux_: then they can create patches to be send by email, or have their own public repo (e.g. at sf or somewhere else) so you can fetch from there11:18
thiago_home it's not11:18
doener SeySayux_: with svn you have a single repo, with git, everyone has one or more repos11:19
SeySayux_ Isn't that just the same as copying your source tree on your own hdd, and commit when you think it's ready?11:19
(in svn)11:20
doener SeySayux_: not really. You don't have any history locally with svn. You may not even have commit rights on the one central repo11:20
SeySayux_ Well, it isn't *so* much different from SVN. Explain me again why SVN users are 'dumb', 'ugly', 'morons', 'idiots', etc?11:21
doener SeySayux_: With git, I could clone your public repo, do 20 commits, rewrite them a few times to clean them up, and then push them to _my_ public repo and tell you "Look, I cloned your repo and made some commits that do $GREAT_STUFF", you can fetch from there and merge my stuff11:22
SeySayux_: with svn, I can give you one big diff and say "deal with it"11:22
SeySayux_ [...] you can fetch from there [...]. Where? Your local computer?11:23
doener SeySayux_: no, from my public repo11:23
mlpug SeySayux_, wikipedia git and "distributed revision control" articles describe very well the charactiristics of distributed vs central and towards what kind of scenarios git has been optimised11:23
SeySayux_ so, in fact, everyone needs a public repo somewhere on github or sf.net ? Or am I wrong?11:23
doener SeySayux_: you might have your public repo at sf.net, I could clone it, and push my stuff to github, or repo.or.cz, or wherever11:24
SeySayux_: of course I could also have that public repo on my local box and allow fetching from there (e.g. via git-daemon)11:24
SeySayux_ Okay, so let's see if I got it...11:25
doener SeySayux_: but then I'd have at least two repos locally, one for me to work on, and one with stuff ready for public consumption (and that's what I'd export via git-daemon)11:25
rubyist left11:26
rubyist joined11:26
SeySayux_ I have my own local work repo on which I can commit as often as I like. When I want to share it with the other devs, I put it up on github. They can fetch it from there, modify it in their own repos and commit as often as they like, and put it on their own github repos, from which I can fetch trhem again. When I like some piece of code, I put it up in the central repo on sf.net. Right?11:27
doener SeySayux_: for example, just that the "central repo" thing only exists by convention. The repo on sf.net (to take your choice) is only special because you say so11:28
SeySayux_: If I think that Joe Random's repo at $HOSTING_SERVICE is better, I can take that as my upstream11:28
vashism523 joined11:29
vashism523 ey if you guys are bored check out facebook zombies - http://apps.facebook.com/zombies/links.php?r=719927515&nref=st11:29
vashism523 left11:29
doener SeySayux_: e.g for wine, there's the "official" repo, and there's wine-hacks. The latter incorporates some patches that upstream doesn't have (yet)11:30
SeySayux_ I appointed the repo at sf.net now as the project's main repo, where everybody should commit 'approved' code... I understand that nothing stops somebody from putting their code elsewhere, just like nothing stops somebody from forking my code...11:30
doener SeySayux_: with git, each side can fetch from the other to incorporate their commits (merging, cherry-picking, rebasing, whatever)11:31
SeySayux_: with svn, you'd have two independent repos and some pain to carry over change from one to the other11:31
SeySayux_ Okay, I get it... The whole concept of Git is pretty new to me...11:32
cao joined11:32
caoGuest9421111:32
doener SeySayux_: with git, you always commit locally, you only push to the other repo. Of course you can allow multiple devs to push to the main repo at sf.net, it's not that everybody has to have his own public repo11:33
markelikalderon joined11:33
SeySayux_ Because with svn it's much simpler: you commit, someone else checks out, and it's done... But simpler is not always better ;)11:33
doener SeySayux_: but it's _possible_ to do so, so contributors can exploit the power of version control, even if they may not push to your main repo at all11:33
(or commit to the central repo, with svn)11:33
with svn, commit permission = permission to use version control. No commits, no version control.11:34
ankit9_ left11:34
SeySayux_ Okay, thank you very very much for the explaination ;) off_t o_implement, I guess11:34
doener :-)11:34
ToxicFrog` joined11:35
doener SeySayux_: if you're looking for some interesting reading material, try "The Git Parable", "Pro Git", "Git For Computer Scientists" and "Git From The Bottom Up" (ordered from high-level to low-level)11:35
(the last one being way more low level than you'll need during day to day work, but possibly interesting to understand the data model)11:36
brizly1 joined11:37
RaceCondition joined11:41
MisterN joined11:41
shenie joined11:42
sunn joined11:42
RaceCondition left11:43
RaceCondition joined11:43
Jinzhu joined11:44
qrush joined11:45
kollektiv joined11:47
adeodatus joined11:47
kollektiv hi11:48
why does this not work http://img195.imageshack.us/i/errordzx.png/ ?11:48
ToxicFrog left11:48
therrg left11:48
Aides you need --hard to change your working tree11:49
Guest94814 left11:49
kollektiv but that would reset the entire thing11:50
i just want to unstage one file11:50
Aides then use git checkout11:50
zomg kollektiv: you already unstaged it with reset11:50
Aides ah, unstage11:51
i thought you want to undo your changes11:51
doener kollektiv: the "locally modified" message means that there are difference between the index and working tree for that files11:51
s/s$//11:52
kollektiv: i.e. you already successfully unstaged it11:52
kollektiv oh11:52
ok i thought it was an error msg11:52
lu_zero joined11:52
markelikalderon left11:53
brizly left11:53
kollektiv if i do 'git -rm --cached file' but the file is already in the index does it just ignore the --cached option11:57
doener kollektiv: hm? --cached only makes sense if the file is in the index11:57
kollektiv: --cached means "delete from the index, but not the working tree"11:57
(for rm, that is)11:57
kollektiv o well i mixed up working tree and index11:57
it seems like it just deletes it from the working tree12:00
if it was already added12:00
and committed previously12:00
doener hm? git rm never deletes from the working tree only AFAIK12:00
either from the index and working tree, or from the index only (--cached)12:01
karmi left12:02
tokkee joined12:03
chris2 joined12:04
kollektiv whats in the index? staged files?12:05
MisterN yes12:07
kollektiv: but the version that was staged, and NOT the version in the working directory12:07
kollektiv: when you stage a file, it gets copied into the index12:08
doener depends on how you define "staged". Some people would interprete that as "only the files I ran 'git add' on, since the last commit"12:08
thiago_home you may interpret it that way12:08
but that's not how git interprets it12:08
so you should interpret it the same way the tool does, to avoid misunderstandings :-)12:08
the last commit is staged12:09
adeodatus left12:09
thiago_home plus everything you added, minus everything you removed12:09
kollektiv i see12:09
doener the index is really like an index of files that should be in the next commit. And as commits are snapshots and not deltas, this needs to also include files that you didn't change since the last commit12:12
ADmad|awayADmad12:12
doener so "git rm --cached foo" really removes the index entry for "foo", it doesn't add a "delete foo" entry or so12:12
everything deals with snapshots, diffs etc. are created on the fly12:13
davegb3 ... so if i add & commit file X, then change it, then add & commit it again, git physically stores 2 full copies of the file?12:14
doener davegb3: yep, but one of it will be unreachable, and thus prunable12:14
cbreak why unreachable?12:15
you can of course reach past commits12:15
davegb3 cbreak: you beat me to it!12:15
doener you committed only once12:15
cbreak that's the whole point of an SCMS12:15
davegb3 no, i committed twice12:15
doener oh wait, you didn't12:15
ok, so it's not unreachable and not prunable12:16
and there are two blobs, one for each version of the contents of X12:16
those were created when you did "git add X", as loose objects (possibly compressed, but still the whole contents)12:17
only when things get packed, git uses delta compression to save space12:17
davegb3 is that git gc that packs the blobs then? (just interested in what goes on underneath the hood)12:18
doener gc is the highest-level tool for that purpose and does packing as well as pruning12:18
repack is slightly more low level and does just packing (thought it can drop some unreachable objects in its progress, it's not really pruning)12:19
and at the lowest level, there's pack-objects which does the real work12:19
in general, gc is what you should use12:19
davegb3 ok... thanks, it helps to understand what's going on.. sorry to butt in on someone else's question!12:20
sitaram joined12:21
ryah joined12:21
donny joined12:21
kollektiv am i suppose to run git gc myself12:21
cbreak no12:21
you can12:21
kollektiv or is there some compression thing that happens automatically12:21
codeswing joined12:22
kollektiv nvm12:23
it was answered above12:23
teolicy joined12:23
joevano left12:24
donnyjoevano12:24
scarabx left12:24
doener there's "gc --auto", but I'm not really sure when/by which commands it's triggered12:24
hzlocky left12:25
ryah I want to edit the commit message of a commit which is not the most recent12:25
doener rebase -i12:25
teolicy Hi. There's something I don't understand about git push. I have a repo, whose master is at ref 'C'. It came from origin, whose master (origin/master) is at 'A', which is about 18 commits behind 'C'. In my repo, 'C'^17 is 'B', an unnamed ref whose parent is 'A' (so the graph is: A->B->...->C).12:25
I want to push just B unto origin, and keep C and all the refs leading up to it locally.12:25
I thought 'git checkout B ; git push origin HEAD:master' is what I want, but my push is rejected (non fast forward).12:26
git pull --rebase says there's nothing new to fetch.12:26
What am I missing?12:26
marvil07 joined12:26
psynaptic left12:27
ryah doener: can i do that while keepin gthe commit in the same place?12:27
doener teolicy: I'd do "git push origin B:master" instead of doing the checkout, but that shouldn't affect the outcome12:27
ryah: define "in the same place" please12:27
ryah: changing the commit message creates a new commit anyway, so of course you get a new history12:28
sitaram teolicy: what does "git log --oneline --left-right B...origin/master" say12:28
teolicy: note 3 dots not 2 in there12:28
doener teolicy: do a "git fetch origin" before that log12:28
sitaram aah! that's got to be it!12:28
someone else moved the origin beyond A12:29
ryah doener: nevermind. i forgot to rebase --continue12:29
doener sitaram: hm, why three dots? The commits that are in B but not in origin/master don't really matter, do they?12:29
teolicy "git log --pretty=oneline --left-right 0f010b...origin/master" (note I did --pretty=oneline, I think it's what you meant) shows me three commits (which I agree is odd): B, A, A^.12:30
sitaram, doener: ^^^^12:30
doener teolicy: --oneline is supported in recent git versions ;-)12:30
teolicy doener: Don't get cocky :)12:31
doener teolicy: what's the exact pull command you used? Just "git pull --rebase" shouldn't work on a detached HEAD12:31
ereslibre joined12:31
teolicy When I did the pull --rebase I was at master (my local master, aka 'C').12:31
doener teolicy: ok, and that has remote set to origin and merge set to refs/heads/master?12:32
mlpug left12:32
kollektiv what would i use git reset --soft for? the description makes it seem like it does nothing 'Does not touch the index file nor the working tree at all, but requires them to be in a good order'12:32
teolicy I /think/ so, but I'm not sure I can say that with confidence. How can I verify?12:32
doener kollektiv: git commit -m tmp; git commit -m tmp; git commit -m tmp; git reset --soft HEAD~3; git commit -m "All three tmps squashed together"12:32
sitaram teolicy: doesnt the output show any "<" or ">" signs? are there any ">" or only "<"?12:33
doener kollektiv: i.e. the soft reset still resets the branch head12:33
teolicy ('git remote' prints 'origin')12:33
The output of the git log showed: <B, >A, >A^.12:33
(using three dots)12:33
(using two dots it said just: >A, >A^)12:33
doener teolicy: git remote show origin12:34
britishseapower joined12:34
doener teolicy: should show "Local branches configured for 'git pull'" and "master" should be in that section12:34
britishseapower whats a pack header ?12:34
sitaram teolicy: this means (to me) that both A and A^ are not contained in B, so your A->B->...->C is not true12:34
britishseapower fatal: protocol error: bad pack header12:34
RaceCondition left12:34
britishseapower just got that when doing git pull12:34
used to work12:34
teolicy doener: git remote show origin shows: http://dpaste.com/83952/12:35
kollektiv doener: what do you mean by squashed?12:35
teolicy sitaram: Hmm. I don't know what to say, I'm pretty sure they are, I thought I was beyond that point with git... Let me re-verify please. One moment.12:35
britishseapower i got it.12:36
i had a file open12:36
teolicy pfft. OK, I'm a moron. I used a ref to refer to B, and it was the wrong ref (the one from before the git pull --rebase). I plead nearly one bottle of nice wine to my shabby defence, sorry for wasting your time.12:37
doener kollektiv: http://git.pastebin.com/m2713185b12:37
sitaram teolicy: add a "--boundary" to that and you'll see the latest common commit; you definitely have a divergence, going by the "<" and ">"12:37
teolicy sitaram, doener: ^^^12:37
sitaram teolicy: plead one bottle? or give one bottle? ;-)12:37
veiz joined12:38
teolicy You pay for the shipment, I pay for the bottle. I'm in Israel by the way. :)12:38
sitaram :)12:38
sitaram is strictly rum and coke -- has forsaken all other forms of drink :)12:39
sitaram (except the occasional Baileys)12:39
kollektiv doener: where does D,E, and F go in that example12:39
like can you get back to them12:39
doener kollektiv: they became unreachable, at least through "master", but they'll still be in the reflogs12:40
kollektiv: that's why I kept them in the graph, they still exist, they're just not in master's history anymore12:40
mbrumbelow left12:41
kollektiv ah k12:41
teolicy sitaram: 32 degreees C; rum and coke / Baileys would kill me. Ice cold white whine is the only drinkable substance. (and even that vaporizes if you don't drink it fast enough :)12:41
doener prefers a good Malt, but isn't opposed to a good wine, especially if it goes along with a good steak :-)12:41
teolicy (also, I think the friggin' bastards at yahoo weather are lying, I want that meteorologist who claims its just 32C to come over and have a stroll in the sun)12:42
sitaram teolicy: I'm in India. 32C? Pfft!12:42
:D12:42
teolicy Exceedingly good point, I must admit. :)12:42
doener just decided to have a good Single Malt this evening :-)12:42
rlb3 joined12:43
teolicy Anyway, enough yakking, thanks a lot for your help, I'll be off now, back to coding.12:43
teolicy tips hat12:43
teolicy left12:43
ADmad sitaram: you have the wrong nick for enjoying such drinks ;)12:43
sitaram ADmad: ??12:46
ADmad: you Indian by any chance? and referring to the religious significance of my name? again, to use teolicy's words: Pffft! ;-)12:46
dodo_the_last left12:46
ADmad sitaram: yes sitaram drinking rum doesnt sound too nice :P12:46
sitaram ADmad: and it's not a random nick; it's my *name*..12:47
woototo joined12:47
sitaram would love to know what most of the nicks mean and how they were chosen12:47
ADmad sitaram: haha12:47
doener go to the office, get a new one. I suggest "Max Power"! :-)12:47
woototo hi. Is there any place were i can download the git's own repository as a bundle?12:47
sitaram doener: what does doener mean, if it means anything (always wanted to ask; please ignore if you wish!)12:48
rlb3 left12:49
sitaramMax_Power12:49
Adlai uses his real name...12:50
Max_Power thank doener12:50
thanks12:50
Adlai "Handles are for tools"12:50
rapha Max_Power: it's a food ... turkish food ... some kind of meat; here in germany they put it into kind of a bun together with veggies12:50
doener I got that nick in school, after several modifications to my earlier nicks. It's actually the (short)name of a fast-food meal. The full name is "Dönerkebab", is turkish and means as much as "rotating meat" or so)12:50
Max_Powersitaram12:50
sitaram :)12:50
doener it was way better than the previous iteration, and as I don't take myself serious anyway, I stuck to it12:51
ADmad sitaram: how about SitaramOnRum :)12:51
ab3 joined12:51
sitaram Adlai: it's quite common in India for people to have nicknames that the family and friends use, which may be quite different from the real name. In effect, it becomes an alternate name12:52
Adlai: SitaRum maybe better :)12:52
minor spelling change12:52
Adlai heh12:52
btw, I think you intended that for ADmad ?12:52
sitaram Adlai: yes -- sorry! (dang tab completion!)12:53
woototo it would be a not-so-bad-idea to add support for bundles in the git-scm.org "Other Download Options"12:53
Adlai hm, can I have different push and fetch URLs for the same remote?12:54
doener woototo: why a bundle?12:54
woototo because of no direct connection12:54
doener Adlai: with 1.6.4, you can12:54
ADmad sitaram: that was my first choice but i could sound a bit offensive to the religious minded hence didnt mention :)12:54
reprore_ joined12:54
qrush anyone know how to make custom messages appear on the client side during a git push?12:54
doener woototo: hm? If you can get the bundle, you should be able to clone, too. And then you can create a bundle yourself12:54
qrush doener: you gotta know something about this :)12:55
Adlai doener: yep, I have 1.6.4. When I do `git config remote.origin.<TAB>', though, I only see one url option12:55
doener qrush: output from hooks is sent to the client12:55
woototo doener, i will get it from windows, transfer to linux via usb and then unbundle12:55
qrush doener: Not from what I saw...which hook? pre-receive?12:55
doener Adlai: probably not yet in the bash completion, check man git-config12:55
woototo anyway, it is an alternative download option :)12:55
doener woototo: also, bundles are usually custom made to include just the required stuff12:56
Adlai doener: I use zsh! zsh tab completion is the last word!12:57
doener woototo: if you trust me, I can create a bundle for you12:57
Adlai consults `man git-config'12:57
woototo i trust you, but only if you don't have more important things to do :)12:57
sitaram doener: why trust? after unbundling he can check the top SHA to exist in the git repo via gitweb or so can't he?12:57
qrush doener: i'm trying out the scripts here for pre/post receive and not seeing anything http://book.git-scm.com/5_git_hooks.html12:58
sitaram at worst, it won't be the top SHA there if Junio pushed something else out in those few seconds/minutes12:58
doener woototo: so, which stuff to you already have? "git for-each-ref refs/remotes/origin" or whatever13:01
woototo nothing. just a binary installation of git13:03
karmi joined13:03
Adlai wow, git-rerere is cool.13:05
doener woototo: http://dot-dash.at/stuff/git.bdl -- sits on DSL13:05
Bass10 joined13:06
woototo doener is the dude13:06
Adlai er, probably a very stupid question, but to what should I set rerere.enabled to enable rerere?13:07
`git config rerere.enabled true' ?13:07
doener sitaram: I _could_ know about a bundle related exploit.13:09
froschi left13:10
qrush doener: perhaps there's some config value I have to set on the bare repo to have its hooks send messages back to the client side? sorta stumped here :/13:10
froschi joined13:11
ia left13:12
ADmad doener: thanks for the help regarding cgit highlighting earlier... after struggling for quite sometime finally got it running... problem was the latest package cgit-0.8.2.1.tar.gz available doesnt support the "source-filter" config option... once i released that got latest code through git everythign went smoothly13:12
doener ADmad: ah!13:12
qrush: just a moment, my git install seems fucked up13:12
ia joined13:12
isnull left13:13
sitaram doener: an exploit which attacked his git via a mal-formed bundle? hmmm...13:13
doener sitaram: yep. I don't know of any, but still he has to trust me that my bundle won't cause e.g. a buffer-overflow and runs some shell code, doing bad stuff13:14
sitaram true13:14
woototo: this leads me to ask: why cant you install git on the windows machine that does have internet, grab the repo the normal way, and make your own bundle?13:14
woototo because i can't install new stuff13:15
ryah left13:15
woototo don't ask :)13:15
doener woototo: btw, that bundle contains my remote tracking branches, i.e. refs/remotes/origin*, so use the right refspec for fetch13:15
qrush or if anyone know this :) i'm trying to figure out how to get the git daemon to print out messages on push13:15
on the client side, that is13:16
Ilari qrush: You are trying to stuff them to stdout or stderr?13:16
qrush Ilari: stdout hopefully, basically after a `git push` i want to see some messages coming from the server. heroku does this, i can't find anywhere that tells how to do this13:17
prusnak joined13:17
sitaram qrush: they just come; at least I've done then on he post-receive hook13:17
qrush: is your hook even executing?13:18
doener qrush: I get stdout as well as stderr just fine13:18
woototo umph, `git bundle unbundle git.bdl` doesn't do anything13:18
qrush I'm printing out on stdout on post-receive, and i see that fine on the server side. on the client side i want to see those messages as well13:18
doener qrush: http://git.pastebin.com/m7540710313:18
sitaram woototo: gitfetch13:18
qrush sitaram: yes, definitely13:18
sitaram git fetch13:19
woototo: unbundle is really plumbing, per the docs13:19
Adlai sorry to nag, but does `git config rerere.enabled' => 'true' mean that I've properly enabled rerere?13:19
sitaram Adlai: yes I think so13:19
Adlai cool.13:19
doener qrush: same for post-receive, also prints stuff just fine13:19
botanicus joined13:20
qrush doener: Still only seeing the messages on the verbose log of the git daemon13:20
sitaram Adlai: although I just noticed a "rerere.autoupdate" that I dont remember seeing before; and it defaults to *false* :(13:20
EricInBNE left13:20
qrush doener: they're not getting transmitted to the client13:20
doener woototo: "git fetch ./git.bdl +refs/remotes/origin/*:refs/remotes/origin/*"13:20
qrush doener: even with a simple echo :)13:20
roberthorrey man, git is so awesome. it's one of those tools i want to use even in places it shouldn't be used. like embedded systems that run my thermostat, etc.13:21
woototo sitaram: tried that: `git fetch git.bdl` -> Unable to chdir or not a git archive13:21
Adlai sitaram: yes, rerere.autoupdate controls whether the index gets updated automatically after rerere kicks in.13:21
doener woototo: needs the ./ prefix to make git look at the file13:21
Adlai it defaults to false so that you get a chance to do a "sanity check"13:21
botanicus left13:21
qrush doener: so yeah, short of recompiling git to print out custom stuff is there anything that can be done?13:21
botanicus joined13:21
Ilari qrush: What if you stuff them to stderr?13:22
doener qrush: so you're pushing through git-daemon?13:22
qrush doener: yes13:22
doener: http://gist.github.com/17277913:22
seeing that on the log13:23
sitaram Adlai: aah! makes sense; I just looked at the code and saw the message changes "Resolved" to "Staged" if this is true13:23
doener qrush: that's probably the reason then, daemon capturing the output without relaying it.13:23
qrush so is there another way to offer push/fetch anonymously?13:23
that will actually transmit the data?13:24
sitaram qrush: you're using git daemon for push?13:24
wow...13:24
qrush sitaram: this is sort of a different application for pushing :) we're trying to get away with not doing ssh key auth13:25
cloudhead joined13:25
tvw joined13:26
woototo no luck. please note that i don't have *any* git history. i.e. the unbundling should also create the ".git" dir etc.13:27
doener woototo: it won't.13:28
woototo ah. so i have to init-db13:28
doener woototo: mkdir git; cd git; git init; git fetch /path/to/bundle +refs/remotes/origin/*:refs/remotes/origin/*; git checkout -t origin/master13:28
woototo: init-db is really really old ;-13:28
)13:28
woototo yay. 100% success. Thank's doener and sitaram13:30
squentin joined13:32
veiz left13:37
HG` joined13:43
ruskie left13:43
patmaddo_ left13:46
marvil07 left13:51
codeswing left13:53
johnnyg joined13:54
eMyller_ joined13:57
pstuteville joined13:58
pstuteville left14:00
pstuteville joined14:00
woototo left14:02
loincloth joined14:03
veiz joined14:05
RaceCondition joined14:06
cloudhead left14:07
gonzojive left14:10
LimCore left14:11
qrush left14:12
dodo_the_last joined14:17
rleigh Hi folks. When doing an "add -i" to interactively add hunks, it's possible to split hunks up to commit part. However, if you have two adjacent lines, it's not possible to split them up into the individual lines. Is there any way to add just one of those lines to the index?14:18
britishseapower left14:18
onigiri_ joined14:18
doener rleigh: (e)dit allows you to edit the patch in your editor14:18
onigiri left14:18
doener rleigh: and "git gui" can stage individual lines14:19
Tommy[D] Whats the easiest way to merge some changes from another git tree into your own one?14:19
jfkw joined14:19
rleigh doener: Cool, I'll give them a try, thanks!14:19
eMyller_eMyller14:25
hzlocky joined14:25
Sho_ joined14:27
shenie left14:28
roberthorrey left14:32
Jinzhu left14:32
davegb3 can i just sanity check this: i have a tracking branch tracking someone else's repo on github. i've branched from that (for a fix) locally and made some commits. as the original branch has made some more commits in the mean time, if i pull those in, what's the best way to merge those in to my "fix" branch, so it looks like it's branched from the tip of the original branch. git rebase ..something?14:33
Ilari davegb3: 'git rebase <remote>/<branch>'.14:34
davegb3: (after fetching <remote>)14:34
davegb3 ok, and that leaves my commits on my branch, just altered so they come after the new commits on the remote branch?14:34
SjB joined14:35
wereHamster davegb3: yes14:35
ab3 hello14:35
davegb3 i presume git rebase myTrackingBranch would do the same, if myTrackingBranch is tracking <remote>/<branch>14:36
(and myTrackingBranch has been updated)14:36
ab3 I have a strange problem when I try to dcommit changes to svn with git svn dcommit14:36
http://dpaste.com/83982/14:36
I don't have a file named test_git...14:37
any idea how I can make dcommit my changes to svn?14:37
almostautomated joined14:38
Akufen left14:42
khmarbaise joined14:43
cubuanic joined14:48
hydrogen joined14:50
danferranti joined14:51
offby1 hmm, no :-|14:52
you're _sure_ you don't have a file of that name?14:52
sunn I want to host a git repository that is only available to a few specific people -- is http authentication my only option, or is there some other way that I'n not aware of? (I don't have root access on the server)14:53
offby1 sunn: you can use gitosis14:53
it uses ssh, but you don't need root to set it up14:53
laney_ joined14:53
ab3 offby1: yes14:54
danferranti left14:54
sunn Okay, I will look into that, thanks14:54
davegb3davegb3|14:55
Ilari sunn: It is bit nasty to setup without root access (assuming you can't get admins to create an extra account for you and to grant sudo privs to that).14:55
offby1 oh yeah14:55
offby1 forgot about the setting-up-the-new-account part :-|14:55
bdowning left14:56
ab3 git rm test_git14:56
fatal: pathspec 'test_git' did not match any files14:56
_grepper joined14:56
sunn Well, I won't be able to get another account, and definately no sudo access :/14:57
bdowning joined14:57
Fullmoon joined14:58
Ilari sunn: For setting up gitosis without extra user account you need TWO keypairs (you probably already have one).15:00
enherit joined15:01
sunn I see -- is that a problem beyond simply running ssh-key-gen again though?15:01
ssh-keygen rather15:02
Fullmoon left15:02
Fullmoon joined15:02
SjB left15:02
ADmad left15:03
Ilari sunn: There are also some pitfalls. On both client and server.15:04
SjB joined15:05
mm_202 joined15:06
Ilari sunn: On client, it revolves around offering the right key. On server, the key used for gitosis access MUST NOT be the same key that grants shell access.15:06
Tommy[D] Whats the easiest way to merge some changes from another git tree into your own one? Or isnt there such an option in git?15:06
Ilari Tommy[D]: Pull (fetch + merge)?15:07
dodo_the_last left15:07
SeySayux_SeySayux15:08
syd_ left15:09
Ilari sunn: Also, AFAIK, the second key for gitosis can't be passphrase-protected unless you want to type it out each time.15:10
univate left15:11
_grepper left15:12
univate joined15:12
cloudhead joined15:13
Tommy[D] Ilari: i am talking about a different tree, not the one i am pulling from15:13
Ilari Tommy[D]: What does "tree" mean? Repository?15:14
sitaram sunn: the progit book shows a manual way to do what gitosis does -- basically manage ~/.ssh/authorized_keys -- if you want to try it. Doing the *whole* thing while having only *one* account on the server is tricky but not impossible15:14
sunn: make sure you have password access to the server so if you screw up the keys in some way you can move aside your local priv key and login to fix things15:15
gaveen joined15:16
sunn I guess I'll have a look at that aswell then15:17
sitaram sunn: it doesn't address doing everything as one user. In order to retain control to go in and fix things, as well as restrict your "guests" from doing whatever they want, you will end up replicating a lot of gitosis functionality, especially the stuff inside "authorized_keys". Play with gitosis on the side to get a feel for all the ssh tricks it uses15:18
khmarbaise left15:18
sitaram sunn: http://sitaramc.github.com/0-installing/9-gitosis-server-install.html tries to explain most of it15:18
Tommy[D] Ilari: i have 1 repo created with git-svn and one normal git repo and now i want to merge the changes from git-svn repo into my other one15:20
Ilari If one knows the tricks gitosis plays with SSH, it shouldn't be too hard to to hack something crude together (assuming 'echo $VARIABLE' is safe).15:20
Tommy[D]: Sounds like fetch + merge (a.k.a. pull).15:21
g3d joined15:22
Ilari 'echo $VARIABLE' being "safe" means that it doesn't do any weird stuff no matter what the environment variable contains.15:22
juan_arandaalvar joined15:23
sitaram Ilari: half of the stuff gitosis does is in managing the keydir and gitosis.conf and setting up authorized_keys on a push to gitosis-admin; if that can be done manually it's fairly straightforward15:23
gonzojive joined15:23
juan_arandaalvar left15:23
davegb3|davegb315:24
SjB left15:24
Ilari At least I can't find character that would do anything special when echoing a env.variable15:24
markelikalderon joined15:25
davi_ joined15:25
davi_ hi all. currently I use SVN on a system which my bash user is my bug tracking account and my VCS account. so, to login on the dev server, login on the bug tracking system and commit, I use my username "davi".15:26
Ilari davi_: SVN?15:26
davi_ how can I associate my git commits to my username without rely on git config user.name?15:26
davegb3davegb3|15:27
Ilari davi_: GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL}15:27
Tommy[D] Ilari: eh, fetch+merge? How should that work, if origin is different for both?15:27
almostautomated_ joined15:27
Ilari Tommy[D]: If those repos don't share history, merge is probably going to go horribly wrong...15:28
davi_ Ilari: sorry, I didn't understand. could you clarify or point me to the right keywords to search? currently, I'm googling for 'git relate commit bash user'15:28
Ilari davi_: Those are environment variables.15:28
davi_ Ilari: from the commiter, right?15:28
veiz left15:29
AAA_awright GIT_AUTHOR_NAME="username" GIT_AUTHOR_EMAIL="..." git commit15:29
aspotashev|eeepc left15:29
AAA_awright Right?15:29
Ilari AAA_awright: AFAIK, ESYNTAX15:29
veiz joined15:29
Tommy[D] Ilari: they do, but currenlty, i created a branch on the second one, copied the latest version of the first one to that branch, git-commit that, then merge this commit into the master branch, but that does not preserve the history15:29
davi_ but, using env vars, I can do a commit using something like GIT_AUTHOR_NAME="Ilari" git commit, can't I?15:30
SjB joined15:30
wereHamster AAA_awright: if you only want to set the author, you can also use git commit --author="Your Name [email@hidden.address]15:30
Ilari I have Bash 3.2.48 and that sort of specifying two env.vars doesn't seem to work.15:30
davi_: That kind of stuff should work.15:31
AAA_awright Ah, COMMITTER is the default one, AUTHOR is by default undefined right?15:32
davi_ Ilari: and there isn't a way to prevent this? I work with 7 more developers, and I don't want to leave this "role" to one of them commit using someone else "username"15:32
AAA_awright No, it is the same as committer15:32
kpreid_ left15:32
kpreid_ joined15:33
Ilari davi_: If you have full blown shell account with direct write access to repo, you can do nastier stuff than committing with wrong usernames...15:34
joshthecoder_afkjoshthecoder15:34
davi_ Ilari: no one have access to the repository :)15:34
patrikf davi_: don't develop with people you don't trust?15:34
MisterN left15:34
davi_ the repository is on another server15:34
patrikf: if I was the boss, I would fire those people... :P15:35
patrikf ah, I see15:35
malumalu left15:37
Fullmoon left15:38
davi_ Ilari: sorry, I'll try to clarify. I've 2 servers: the repo (currently, SVN) server and the devel server (Apache, MySQL, bla, bla, bla). all developers have (SSH) access to the devel server. but we only have access to the repo server when (1)logging in the bug tracking system or (2)commiting to repository. since the bugtracking system is fully integrated with SVN, I want to migrate from SVN to Git. And, no, I don't want git-svn. I want to15:38
get rid of SVN15:38
Ilari davi_: Committing is local operation. And pushing is too late to check the committer/author info.15:40
davi_: Sometimes it is possible to log the pusher.15:40
RaceCondition left15:42
davi_ Ilari: what do you recommend me to do/search?15:42
almostautomated left15:43
Ilari davi_: Would "(2) committing to repository" mean "pushing to repository" with git?15:44
davi_ Ilari: yeah15:45
Ilari davi_: Presumably one could tell the users apart by their accounts or keys. Note that gitosis needs one-line modification to enable logging the pushes in hooks.15:46
alezandro left15:48
gonzojive left15:49
almostautomated_ left15:49
davi_ Ilari: ok. thank you very much for your time and patience. two more questions: what sould I search for? 'git hook log push' / some time ago, I read that gitosis was discontinued, what do you think about gitosis?15:50
offby1 .oO("discontinued"?)15:50
bcardarella joined15:50
davi_ offby1: sorry, I can't remember which words were used. :( English isn't my mother language15:51
offby1 as far as I know, gitosis works fine15:51
davi_ offby1: thanks15:52
voker57 left15:53
voker57 joined15:53
almostautomated joined15:54
bcardarella left15:54
omenking joined15:54
almostautomated_ joined15:58
danferranti joined16:00
SjB left16:02
Aikawa joined16:02
hydrogen left16:03
Aikawa left16:03
HG` left16:03
dpino left16:04
Aikawa joined16:04
ProperNoun left16:04
krawek joined16:06
laney_ left16:06
mbroeker left16:07
danferranti left16:10
juanjoc left16:13
bgerber left16:14
sitaram davi_: where did you read that gitosis was discontinued?16:15
offby1 perhaps it's merely heavily discounted16:16
sitaram davi_: I've been suspecting it myself but hadn't actually read it anywhere16:16
almostautomated left16:16
sitaram offby1: yes 100% discount of your money back :)16:16
davi_ sitaram: I don't remember... probably on one of Gentoo changelogs...16:16
sitaram: well, for Gentoo, if a package didn't has any updates in 2 days, it's set as abandoned... :P16:17
sitaram davi_: yes there's a gentoo guy who'se modified it rather heavily! almost unrecognisable actually :)16:17
davi_: which means for somethings they expect an update by the time the previous one compiles?16:17
sitaram ducks and runs16:17
davi_ haha16:18
Aides ;)16:18
mbroeker joined16:18
sitaram is working on gitosis-lite. Pure perl, no installation, no extra users, no "admin by push", no "gitweb/daemon" management, but includes branch R/RW like Documentation/howto/*update*16:18
Aides loves how no one outside of gentoo community has found any other reason to rant upon it16:18
sitaram Aides: joke <> rant16:19
Aides: I admire those guys; almost envy. But that life is not for me16:19
Aides yeah, meant that, sorry16:19
bgerber joined16:20
sitaram its like dave barry saying: ubuntu is an ancient african word meaning "can't install debian" :) What would he say about gentoo, I wonder?16:21
Derander joined16:22
Aides gentoo is a modern english word meaning "a very fast and nice penguin"16:25
khmarbaise joined16:26
JasonWoof joined16:26
xanonus joined16:27
doener Aides: gentoo is a fictional word meaning "a penguin for which you only get the dna, which babbles a lot of gibberish while you grow it" (but you can choose to grow it with fast legs, but without a head!)16:29
SCNR16:29
_grepper joined16:29
Aides don't follow the gibberish part, but quite accurate, yes ;)16:30
doener Aides: well, others describe gentoo as "watching shit fly by"16:30
wereHamster gibberish = compiler output while you build the system ?16:31
doener Aides: or is the building more quiet nowadays? It's been a while since I used gentoo16:31
dodo_the_last joined16:31
Aides afaik, it is quiet by default16:31
doener in 2003 (or so) it was quiet verbose, but ok16:32
magcius left16:34
sitaram has to go... :(16:36
sitaram left16:36
reprore_ left16:36
crab "SCNR" when it comes to strange experiments with penguin DNA is just asking for trouble.16:37
reprore_ joined16:37
zacharyp joined16:38
ben_h_ left16:38
zacharyp left16:38
repror___ joined16:38
davegb3|davegb316:39
WinterWeaver joined16:39
reprore_ left16:41
botanicus left16:42
marcelo_ joined16:44
djgera joined16:46
Theravadan joined16:46
ctusar joined16:49
pheaver joined16:51
altrux joined16:51
eMyller left16:53
Akufen joined16:54
JasonWoof left16:55
magcius joined16:55
Sigma left16:58
ricky left16:58
pstuteville left16:58
djgera left16:59
scientes left17:00
crack_head joined17:00
offby1` joined17:00
MisterN joined17:02
veiz left17:02
spearce joined17:04
offby1 left17:05
Nugget gentoo is a modern english word that means "I love the idea of FreeBSD but I'm looking for something that's less stable."17:06
aspotashev|eeepc joined17:06
gaveen left17:07
HG` joined17:07
Evanlec left17:07
fualo joined17:09
hydrogen joined17:09
Husio joined17:11
Husio hello, how to force to apply changes from stash?17:11
WALoeIII joined17:11
offby1`offby117:12
hyperair what do you mean force apply?17:13
spearce left17:14
spearce joined17:14
Husio if i type git stash show @{0} it shows me that 2 files has changed, git shash list shows nothing and git shash apply @{1} returns 117:15
javatexan joined17:15
rnaveiras joined17:18
krawek left17:20
fualo_ joined17:21
gaveen joined17:21
Michael__ joined17:21
ShadeHawk joined17:21
Michael__ left17:22
Chillance left17:22
Husio it's not shash, it's future commit :)17:24
Evanlec joined17:26
Krynnotaur joined17:27
javatexan left17:27
pstuteville joined17:28
netkevin joined17:35
developernotes joined17:36
fualo left17:36
jceb joined17:37
cubuanic hello, guys. i need to completely delete last commit on remote origin on master branch. how i can do this?17:43
Akufen left17:43
muammar joined17:43
selckin joined17:43
thiago_home push HEAD~ to it17:43
you'll need to force it17:43
remember you'll screw up everyone who has downloaded that commit already17:44
cubuanic this is my personal repo, so i'm only one who can download, so it's ok17:45
_grepper left17:46
onigiri_ left17:46
ctusar left17:47
Cromulent joined17:48
dreiss joined17:48
netkevin thiago: wouldn't it be HEAD^?17:49
SuperRoach left17:49
netkevin or HEAD~117:49
doener netkevin: which is the same as HEAD~17:49
netkevin: HEAD~ = HEAD~1 = HEAD^1 = HEAD^17:49
netkevin I thought ~ needed a number. Huh.17:49
doener netkevin: but HEAD~2 == HEAD^^ != HEAD^217:49
thiago_home ^ used to need a number17:49
oh, wait, ~ used to need a number17:49
but that changed a long time ago17:50
netkevin "long time ago" in git time.17:50
karmi_ joined17:50
netkevin It moves pretty quickly.17:50
thiago_home yes, something like 1 year17:50
doener ~ means the same as ~1 since 1.5.4.5~1117:53
Thamster joined17:54
SeySayux left17:57
relix joined17:57
ben_h joined17:59
mcdebugger left18:00
karmi left18:00
hobodave joined18:02
SjB joined18:02
Theravadan left18:02
crack_head left18:03
LiamH joined18:03
crack_head joined18:05
ereslibre left18:11
harinath left18:12
jceb left18:14
aspotashev|eeepc left18:15
mcdebugger joined18:16
rgl joined18:17
Cromulent left18:20
ph^_ joined18:21
benn_d joined18:22
myabc joined18:25
lucs joined18:26
RayMorgan joined18:26
boto joined18:30
myabc left18:30
pstuteville left18:32
mcdebugger left18:33
Thamster left18:33
onigiri joined18:33
ShadeHawk left18:34
onigiri left18:36
crack_head left18:37
juanjoc joined18:38
benn_d_ left18:39
Grahack joined18:41
Grahack left18:41
offby1` joined18:45
ricky joined18:46
offby1 left18:46
offby1`offby118:46
dodo_the_last1 joined18:46
boto left18:47
muammar left18:48
ph^_ left18:48
johnnyg left18:48
gaveen left18:48
dnyy joined18:49
dnyy When I create a new branch, shouldn't it be empty? It's showing files from the master branch. ;o18:49
\ask joined18:50
thomd joined18:50
thiago_home dnyy: where did you create the branch from?18:50
HG` left18:51
dnyy thiago_home: well, was inside the master branch when i did it. ;o18:51
crack_head joined18:51
Akufen joined18:52
bdrewery no, it shouldnt be empty18:52
you are branching from the exact spot you branched from18:52
so it should match exactly18:52
thiago_home then you created the branch from exactly the same commit you were in18:52
it's a copy of that branch18:52
bdrewery I think you're thinking of creating a new project18:52
dnyy well, for some reason, i thought that last time i created a branch it was empty18:53
locellcount joined18:53
dnyy welll, the branch is for gh-pagse, so i guess i should remove files not pretaining to that from this branch?18:53
ab3 left18:53
bdrewery ah no18:53
locellcount How do you roll back a pull? I've tried git reset and git reset --hard18:54
bdrewery dnyy: you want a branch with no parent18:54
dnyy bdrewery: aaah, how do i do that?18:54
bdrewery dnyy: http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/18:56
dnyy much thanks :D18:57
bdrewery it's mainly18:57
git symbolic-ref HEAD refs/heads/newbranch18:57
rm .git/index18:57
dnyy err, well echo ref etc broke something lol18:58
developernotes left19:00
davi_davividal19:00
aussiegeek left19:01
dnyy there _has_ to be an easier way to do this ;-;19:01
madduck 22 20:57 < bdrewery> git symbolic-ref HEAD refs/heads/newbranch19:02
22 20:57 < bdrewery> rm .git/index19:02
and no, there is no easier way19:02
Cromulent joined19:02
dodo_the_last left19:02
madduck at least noone ever told me of an easier way, and this post up there has been one of the most popular pages on my site for two years19:02
relix_ joined19:03
bdrewery oh nice haha19:03
madduck ~35 unique hits/day if memory serves right19:03
bdrewery yeah that's the way I've always made them19:03
it's really not that hard19:03
and most git people will frown on it19:03
even though git.git uses the method19:03
madduck if you understand what's going on, then there's nothing to say against it19:03
dnyy i'm not saying anything against it :p19:03
madduck if you don't understand each step and why it's necessary, then you are out of shallow waters19:03
dnyy i was just surprised there wasn't a way to do it built into git itself19:04
relix left19:04
dnyy just a flag for "no ancestory"19:04
madduck dnyy: it's not exactly what you want with a DVCS19:04
use a separate repo if you don't want shared ancestry19:04
i think the way git.git tracks manpages is confusing and wrong19:04
netkevin locellcount: a pull includes a few different things. It updates the remote tracking branch and merges into local branches.19:05
locellcount: I thing reset will do what you need if you give it the right reference and commit.19:05
kumbayo_ joined19:05
netkevin But it depends on if you are trying to un-update the remote tracking branch or the local branch19:06
dnyy Hrm, well im still getting a "pathspec 'gh-pages' did not match any file(s) know to git."19:07
netkevin (commonly there would be no reason to reset the remote tracking branch, btw.)19:07
relix joined19:07
kumbayo left19:07
juanjoc left19:07
dpino joined19:08
locellcount netkevin: lol what what in the what now? It's ok, I just shrugged my shoulders and decided to live with it, it's only a local dev db anyway. Thanks for the pointers though, just goes to highlight how much I still have to learn about this scm... for which you don't have my thanks :D19:10
ben_h left19:11
herenbdy joined19:11
porcnick joined19:14
khmarbaise_ joined19:14
netkevin locellcount: If you're confused about remote tracking vs. local branches, the first thing to learn is 'git branch' and 'git branch -r' (which will show local and remote-tracking branches, respectively, so you can see the difference.)19:14
At least that's a starting place.19:15
JNR___ joined19:16
Cromulent left19:16
locellcount netkevin: yeah, good advice19:17
nessundorma joined19:18
dodo_the_last1 left19:21
relix_ left19:22
dbell joined19:23
herenbdy Why do I recieve this error message when I attempt to push (using gitorious): fatal: The remote end hung up unexpectedly?19:23
spaceonline joined19:24
Weiss herenbdy: are you trying to push using the native Git protocol rather than something like SSH?19:24
thiago_home herenbdy: server down19:24
herenbdy: what URL are you pushing to?19:25
herenbdy "git push [email@hidden.address] master" is what i'm attempting19:25
khmarbaise_ left19:25
herenbdy the site instructs me to do so, but there's something more I need to do it seems :/19:26
thiago_home the server is probably experiencing problems19:27
that has been happening to gitorious every now and then19:27
Luke-Jr joined19:28
Luke-Jr Is there a way to restrict a SSH connection to only do push to a specific git repository19:28
?19:28
rnaveiras left19:28
dnyy left19:29
Ilari Luke-Jr: Restrict on what side?19:29
thiago_home Luke-Jr: yes19:29
what are you using on the server side to handle the incoming SSH commands?19:30
Luke-Jr OpenSSH19:30
herenbdy thiago_home: nothing on my side i'm screwing up then, like my SSH keys?19:30
thiago_home after OpenSSH19:30
what shell?19:30
spaceonline left19:30
thiago_home herenbdy: no, not on your side19:30
Luke-Jr I was planning to force a script on the connection of some sort, not allow a shell19:30
thiago_home then do that19:31
Luke-Jr and restrict git access how? :/19:32
khmarbaise left19:32
thiago_home by using a special shell19:32
herenbdy hmm, well the beauty of this is that I can still make commits :)19:32
thiago_home like git-shell19:32
charon Luke-Jr: gitosis?19:32
herenbdy just started migrating from svn to git today19:32
danferranti joined19:33
Luke-Jr oh, neat19:33
crack_head left19:33
\ask left19:34
rudi_s joined19:36
robinr left19:36
[Po]lentino joined19:38
djszapi joined19:40
djszapi Hello!19:40
Can i get notification mail about a git comment, as a member of that project ?19:40
Aides a git commit you mean?19:41
thiago_home yes19:41
install the post-receive hook that will send you the notification19:41
djszapi Aides: sorry, commit.19:42
WALoeIII left19:43
onigiri joined19:43
developernotes joined19:43
developernotes Is anyone aware of a broadcasting feature for git similar to ZeroconfExtension for hg? (http://mercurial.selenic.com/wiki/ZeroconfExtension)19:44
JNR___ left19:45
cubuanic left19:45
danferranti left19:47
jmspeex left19:48
herenbdy thiago_home: why is it that I see lots of other people pushing/committing fine in gitorious' feed?19:48
thiago_home herenbdy: I can't connect either.19:48
seanmccann joined19:48
thiago_home it's not you.19:48
herenbdy oh19:48
thiago_home $ git ls-remote [email@hidden.address]19:49
Connection closed by 87.238.52.16819:49
spaceonline joined19:49
Cromulent joined19:51
eMyller joined19:56
Krynnotaur left19:56
khmarbaise joined19:57
khmarbaise left19:58
kyxzme left19:58
dbell left19:59
spaceonline left20:01
jjuran joined20:02
developernotes left20:03
UukGoblin left20:03
UukGoblin joined20:03
Cromulent left20:08
netkevin left20:08
Luke-Jr How can I tell Git where to find the SSH key? ☺20:11
doener you don't. You tell ssh where to find it20:11
see man ssh_config20:11
bdrewery Luke-Jr: ~/.ssh/config20:13
relix_ joined20:13
Luke-Jr I tell SSH where to find it with command line args20:13
I'd rather not have my git config split up20:13
bdrewery Luke-Jr: yes, most other apps which use ssh have a param to pass settings to ssh, but git does not20:14
Luke-Jr not even a config value?20:14
djszapi lvh: one more question20:14
bdrewery 10 lines of code probably to support it, but nope20:15
charon you can easily wrap with a shellscript and set GIT_SSH to that20:16
djszapi How can i say the prefix to python setup.py script ?20:16
like in case of ./configure --prefix=/usr20:17
bdrewery charon: ah cool20:20
call911 joined20:20
call911 i have a question: in a merge point which of the two parents points to the original branch?20:20
relix left20:21
call911 i mean, is it always the first, or the last, or is it random?20:21
madewokherd left20:23
offby1 I suspect it's not random20:23
I also suspect there's an easy way to find out, which I happen to not know20:23
I further suspect that at least one of [doener, sitaram, Ilari] knows20:23
call911 I looked some gitwebs but got confused20:24
onigiri left20:25
doener call911: a "merge point"? You mean a merge commit?20:26
call911 yes20:26
doener call911: at least "git merge foo" (assuming that it creates a merge) creates a merge commit with first parent = HEAD, second parent = foo20:26
call911 thanks!20:27
sergiodj joined20:28
onigiri joined20:28
robinr joined20:28
johnnyg joined20:28
__iron left20:31
crack_head joined20:32
__iron joined20:33
sergiodj left20:35
call911 left20:35
gonzojive joined20:40
AkumaStreak joined20:40
kumbayo_ left20:42
davidw joined20:43
davidw is there a way to apply git patches without using git?20:43
herenbdy #join Svn20:44
Adlai Hi, can I make it so that emerge runs in emacsclient rather than starting a whole new instance?20:44
herenbdy woops20:44
Adlai s/,/, how/20:44
charon davidw: unless they were produced with git-specific options (such as binary) they are 'patch' compatible, so you can usually 'patch -p1 < some.diff'20:44
Adlai I've noticed that there's a mergetool.<tool>.cmd config option, but it doesn't seem to have any default value, and it looks as though that's for customized mergetools... it'd help to be able to see what the current command for emerge was, so I could modify that20:45
Ilari davidw: Also, if you have git installed, git apply (doesn't need a repo).20:47
thomd left20:53
KiBi_ left20:55
KiBi joined20:55
eMyller left20:58
qhoxie joined21:01
frede left21:02
rphillips left21:04
Sigma joined21:04
rphillips joined21:04
crack_head left21:05
qhoxie left21:06
malumalu joined21:07
almostautomated_ I can see the output on stdout yet when adding the send-email pipe this break...21:08
git format-patch -M -s --cover-letter --subject-prefix='PATCH-v2/RFC' --in-reply-to='1249428804.2774.52.camel@GWPortableVCS' --stdout -6 | git send-email --identity tbf_git --to [email@hidden.address]21:08
any ideas?21:08
jcape joined21:13
Aides git send-email apparently does not read stdin by default21:13
patcito joined21:13
almostautomated_ well, I'll be a monkey's uncle!21:13
Aides if i'm not mistaken, you can pass all your git-format-patch arguments directly to git-send-email21:14
almostautomated_ I didn't see --cover-letter on there21:14
almostautomated_ re-checks21:14
corni joined21:14
almostautomated_ nope don't see it in the auto-completion21:15
almostautomated_ checks the man21:15
Aides these commands usually invoke each other and pass arguments21:15
yeah, it works21:16
almostautomated_ ahh cool21:16
I'll try doing the whole thing as a send-email then21:16
beni- joined21:17
Aides err, someone screwed my muttrc21:17
almostautomated_ ya know... that just sounds wrong!21:18
Aides screwing muttrcs? yeah...21:18
Aides wonders if git-send-email can send nice pull requests21:20
spaceonline joined21:21
almostautomated_ Aides: looks like that is working, thanks for the help.21:21
Aides you're very welcome ;)21:22
diegoviola joined21:24
davidw charon, Ilari: thanks!21:25
machride1 joined21:28
machrider left21:28
crack_head joined21:29
machride1machrider21:30
crack_head left21:31
mbroeker left21:32
mbroeker joined21:34
altrux left21:35
ctusar joined21:36
djszapi left21:41
Sigma left21:41
rphillips left21:43
beni- left21:46
altrux joined21:47
joshthecoderjoshthecoder_afk21:47
hobodave left21:50
rphillips joined21:50
Michael_ joined21:51
internet joined21:51
MisterN left21:51
diego joined21:53
hydrogen left21:53
reidab joined21:53
lohrun left21:53
diegoGuest4291621:53
reidab left21:54
reidab joined21:54
scientes joined21:55
adam_0 joined21:55
[Po]lentino left21:56
markelikalderon left21:57
adam_0 is there an easy way to git mv an entire directory and subdirectories?21:57
thiago_home aside from using git mv?21:57
adam_0 well I can't figure out how to git mv it21:57
ctusar left21:58
adam_0 heh21:59
markelikalderon joined21:59
adam_0 just did it and it worked21:59
for some reason it was giving me trouble earlier21:59
Cromulent joined21:59
adam_0 left21:59
dpino left22:00
kibombo left22:00
internet left22:03
blankthemuffin left22:04
syd_ joined22:04
xanonus left22:04
dreiss left22:04
hzlocky left22:05
SjB left22:05
SjB joined22:05
Cromulent left22:06
archis joined22:06
archis left22:06
thomd joined22:07
relix_ left22:07
Michael_ left22:09
davidw left22:09
thomd left22:11
spaceonline left22:13
nadavoid joined22:13
thiago_home left22:18
robin joined22:21
rudi_s left22:21
joshthecoder_afkjoshthecoder22:23
rudi_s joined22:24
nadavoid If I want to push my repository (the .git dir) and the files that it is managing to a server that doesn't have git installed on it, what are my options?22:24
I want to do something like "git push" or "git upload"22:24
Ilari nadavoid: HTTP push? Or push to local repo and upload that somehow? Sshfs (no idea if that works).22:25
kollektiv is there any way to make 'git log' word wrap. it goes off the screen in cygwin22:25
nadavoid Ilari: I might look into HTTP push, but I think that's doubtful, since (I think) the HTTP server needs to be set up special to receive it.22:27
devnotes joined22:27
nadavoid SSHFS sounds promising.22:27
patrikf if you have ssh then you can install git as well...22:27
nadavoid patrikf: even if I don't have root access?22:27
patrikf sure, you can always install it inside your home directory22:28
(the simplest option being to kindly ask your admin to install git :-))22:28
devnotes left22:28
nadavoid patrikf: would it normally install a custom compile on the server?22:28
I'm thinking of things like shared hosts.22:28
herenbdy anyone else having problemson gitorious?22:28
patrikf nadavoid: I think shared hosts that offer SSH access but aren't vservers are rare22:29
d0k left22:29
patrikf nadavoid: but yes, you can place the binaries into ~/bin or something similar (and adjust your path)22:29
nadavoid patrikf: OK, thanks, that's helpful.22:30
Ilari nadavoid: Just remember that $PATH for interactive and non-interactive logins may not be the same (git uses non-interactive).22:30
developernotes joined22:30
nadavoid ok22:30
developernotes left22:31
fualo_ left22:32
reidab left22:32
nadavoid Another +1 for the #git channel. Thanks everyone.22:32
fualo joined22:32
corni left22:32
reidab joined22:32
robinr left22:34
xenoterracide is there a tutorial somewhere on how I would rewrite all commit authors? I've got commit's from root@ and username@ I want to change those to what I put in .gitconfig22:35
corni joined22:36
herenbdy anyone else having problems on gitorious?22:36
almostautomated_ xenoterracide: man filter-branch should help22:36
down in the examples section22:36
EricInBNE joined22:37
EricInBNE_ joined22:37
EricInBNE_ left22:37
xenoterracide almostautomated_: thanks22:38
almostautomated_ Is it normal, when applying a series of posted patches to need to remove [0/xx] from the mbox before doing git am?22:38
since it doesn't have anything in it I'd assume most people don't bother putting it in the mbox to get applied22:39
But I just want to be sure22:39
corni left22:40
almostautomated_ and do people generally find it easier to work with shallow or deep chained series?22:44
nm, on the first question... just tested three different setups and each required removal of the cover letter... so that is a 'yes'22:46
tvw left22:47
Aikawa left22:48
ereslibre joined22:48
robin left22:50
repror___ left22:56
WinterWeaver left22:58
diegovio1a joined22:58
diego joined22:59
diegoGuest7542423:00
Altreus joined23:01
Altreus Does anyone know svn well enough to know whether my .svn directories contain enough data for me to create a git repository from a subversion working copy?23:01
WALoeIII joined23:01
Altreus Seeing how I have lost and re-lost the svn repo pretty thoroughly23:02
Guest42916 left23:02
cloudhead left23:02
Altreus oh I tell a lie it's right here23:03
Altreus left23:03
cbreak do subversion trees even contain the history?23:04
herenbdy I don't think so23:04
jspiros left23:05
madewokherd joined23:05
diegovio2a joined23:07
WALoeIII left23:09
eletuchy joined23:11
an0maly joined23:11
panpainter joined23:14
diegoviola left23:14
diegovio1a left23:14
vashism69 joined23:14
vashism69 ey if you guys are bored try facebook zombies :D - http://apps.facebook.com/zombies/links.php?r=719927515&nref=st23:15
vashism69 left23:15
Ilari No, they don't.23:17
ctusar joined23:18
karmi_ left23:19
suitdetony joined23:19
mbroeker left23:20
WALoeIII joined23:20
jspiros joined23:20
diegovio2a left23:20
suitdetony cuando nací me dijo la partera: hay mijo cuando estés grande pobre de la chava que te de las nalgas si que va a gritar en la primera noche que se meta contigo ya que pareces burro jajajaja23:21
diegoviola joined23:22
chris2 left23:26
priidu left23:27
g3d left23:28
warthog9 left23:28
ricky left23:31
diegoviola left23:33
eMyller joined23:37
malumalu left23:40
Ademan is it possible to diff your working copy with the latest commit? If i understand correctly, one could accomplish this by adding the working copy, and somehow referencing these staged objects... but I don't know how I'd do that...23:43
hzlocky joined23:46
teuf Ademan: are you looking for git diff ?23:46
benn_d_ joined23:47
ph^ left23:53
reidab left23:53
ianmcorvidae joined23:54
onigiri left23:56
ianmcorvidae|alt left23:58
rudi_s left23:58

Logs Search ←Prev date Next date→ Channels Documentation