Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-

/prog/ version control

Name: Anonymous 2008-03-18 21:30

Ok, let's bring something interesting to /prog/, version control. Some repository of scripts, on some version control system.

The cheapest way is to get a svn on google code (and publish user/pass), unless someone wants to host something else that integrates better with this public/anonymous system.

What do you think?

Name: Anonymous 2008-03-18 21:39

Name: Anonymous 2008-03-18 21:40

( ゚ ヮ゚) PROGGIT

Name: Anonymous 2008-03-18 21:43

I'll contribute my implementation of factorial, written in scheme.

Name: Anonymous 2008-03-18 21:57

git clone git://repo.or.cz/prog.git
git push git+ssh://mob@repo.or.cz/srv/git/prog.git/ mob

Have fun, /prog/.

Name: Anonymous 2008-03-18 21:58

>>3
It's a git repo, actually

Name: Anonymous 2008-03-18 21:58

>>6
fail

Name: Anonymous 2008-03-18 22:02

Oh, and
git pull git://repo.or.cz/prog.git mob
to get the latest working copy.

Name: Anonymous 2008-03-18 22:07


Hello,

somebody asked for the password for project prog to be reset. Since you are
the project admin, you get to know the new password:

XhHjY9gzoWw

In case you didn't request the password to be reset, we apologize. Nevertheless,
you have to use the reset password now (possibly to change it back).

Quick-link to the edit project page:

http://repo.or.cz/m/editproj.cgi?name=prog

Have fun!

Name: Anonymous 2008-03-18 22:10

>>9
Thanks for pointing out that flaw. Fix'd.

Name: Anonymous 2008-03-18 22:12

>>10
( ゚ ヮ゚)

Name: Anonymous 2008-03-18 22:13

Yay, now we have a real prog.git

Name: Anonymous 2008-03-18 22:14

>>12
( ゚ ヮ゚)

Name: Anonymous 2008-03-18 22:15

You do realize there is no way to recover the admin access now if someone goes and clicks on the reset button right?

Name: Anonymous 2008-03-18 22:17

And nothing of value was lost

Name: Anonymous 2008-03-18 22:20

>>14
So? prog.git has a mob branch that's editable by anyone. It's the most democratic repo possible.

Name: Anonymous 2008-03-18 22:21


updating 'refs/remotes/origin/mob'
  from 0000000000000000000000000000000000000000
  to   2118d66c9e7ceb38c3f4acfc1206cf2fdd448033
Generating pack...
Done counting 0 objects.
Writing 0 objects...
Total 0 (delta 0), reused 0 (delta 0)
The mob user can push only to the 'mob' branch, sorry
error: hooks/update exited with error code 1
error: hook declined to update refs/remotes/origin/mob
ng refs/remotes/origin/mob hook declined
error: failed to push to 'git+ssh://mob@repo.or.cz/srv/git/prog.git/'


how do i pushed

Name: Anonymous 2008-03-18 22:22

I fucked up the repo so that when you clone it, you don't get the mob branch automatically. You need to use gitk/giggle to create a mob branch, then commit from that. Sorry. If someone could fix that, that'd be awesome.

Name: Anonymous 2008-03-18 22:25

>>18
I'd install AIDS before tk

Name: Anonymous 2008-03-18 22:28

step-by-step guide

git clone git://repo.or.cz/prog.git
cd prog
git checkout refs/remotes/origin/mob
git branch mob
git checkout mob

That'll give you a mob branch. When you have that, you can just push/pull as normal.

Name: Anonymous 2008-03-18 23:00

>>20

$ git clone git://repo.or.cz/prog.git
Initialized empty Git repository in /home/anon/stuff/prog.git/prog/.git/
fatal: no matching remote head
fetch-pack from 'git://repo.or.cz/prog.git' failed.

failed

oh well, maybe some other time ...

Name: Anonymous 2008-03-19 0:08

OK, let's try this again.


# get a copy of the repo
git clone git://repo.or.cz/4chanprog.git
# checkout the latest, mob-controlled branch.
git checkout origin/mob
# make a local branch based on the remote one.
git branch mob
# change files, commit to your local mob branch, etc.
#...
# push your changes to the mob branch.
git push git+ssh://mob@repo.or.cz/srv/git/4chanprog.git mob
# get latest changes in the mob branch.
git pull git://repo.or.cz/4chanprog.git mob


I'll periodically reset the merge mob into master. Hopefully this works.

Name: Anonymous 2008-03-19 1:40

>>4
How about fibonacci instead?
Yes, there's actually something somewhat worthwhile on the Git repo now. Get it, and start contributing!

Name: Anonymous 2008-03-19 3:18

http://rechan.da.ru/prog/kareha.pl/1205724708/l50

Using an imageboard as a repository.

Name: Anonymous 2008-03-19 3:23

>>24
lets begin with something trivial

true.c
------
int main() {
 return 0;
}

false.c
-------
int main() {
 return 1;
}


HAHAHA
in case he doesn't get it, *that's* system specific and will fail in other systems.
You need to include <stdlib.h> and return EXIT_FAILURE or EXIT_SUCCESS
1 might not indicate failure on a *lot* of systems. morons.

Here's your code improved.

/* true.c
   cc -DANON_FALSE true.c for false.c
 */

#include <stdlib.h>

int main(void)
{
    return
#ifndef ANON_FALSE
  EXIT_SUCCESS
#else
  EXIT_FAILURE
#endif
;
}

Name: Anonymous 2008-03-19 3:24

>>24
Extremely inefficient.

Name: Anonymous 2008-03-19 5:28

>>26
oh well, i'll think of something better once anoncoreutils gets bigger

Name: Anonymous 2008-03-19 7:53

>>25

A value of zero (or EXIT_SUCCESS, which is required to be zero) for the argument status conventionally indicates successful termination. This corresponds to the specification for exit() in the ISO C standard.
—POSIX.1

Name: Anonymous 2008-03-19 8:07

>>28
Correct, but did I say something differend?
1 might not indicate failure on a *lot* of systems. morons.
I did not say anything about 0. Which implies that 0 *does* indicate success (like EXIT_SUCCESS, but 0 and EXIT_SUCCESS need not to be equal)

and you know what? fuck POSIX. We are talking about ISO C here which covers an awful lot more systems. fuck you.

Name: COME BACK TO /B/ 2008-03-19 8:15

WRYYYYYYYYYYYyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYYYyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYyyyyyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYyyyyyyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYyyyyyyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYyyyyyyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYYyyyyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYYYYyyyyyyyyyyyYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
YYYYYYYYYYYYYyyyyyy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
YYYYYYYYYYYYYYYYYYYYYYYyyyyyyyyYYYYYYYYYYYyyyyyyyyyYYYYYY
YYYYYYYYYYYYYYYYYYYYYYYyyyyyyyYYYYYYYYYYYYyyyyyyyyYYYYYYY
YYYYYYYYYYYYYYYYYYYYYYyyyyyyyyyYYYYYYYYYYYyyyyyyyYYYYYYYY
YYYYYYYYYYYYYYYYYYYYyyyyyyyyyyyyYYYYYYYYYYyyyyyyyyYYYYYYY
YYYYYYYYYYYYYYYYYYyyyyyyyyyyyyyYYYYYYYYYYYyyyyyyyyYYYYYYY
YYYYYYYYYYYYYYYYyyyyyyyyyyyyYYYYYYYYYYYYYyyyyyyyyYYYYYYYY
YYYYYYYYYYYYYYyyyyyyyyyyyyYYYYYYYYYYYYYYYyyyyyyyyYYYYYYYY
YYYYYYYYYYYYyyyyyyyyyyyyYYYYYYYYYYYYYYYYYyyyyyyyyYYYYYYYY
YYYYYYYYYYYYyyyyyyyyyyYYYYYYYYYYYYYYYYYYyyyyyyyyYYYYYYYYY
YYYYYYYYYYYYyyyyyyyYYYYYYYYYYYYYYYYYYYYYyyyyyyYYYYYYYYYYY

Name: Anonymous 2008-03-19 8:23

>>29
You said it was wrong to not use EXIT_SUCCESS.  As for your main point, I think it's helpful to assume !success -> failure, regardless of the specific value.  Returning the same EXIT_FAILURE for all types of failures would suck.

And ignoring POSIX leaves a very small base to work with considering the scope of the project.

Name: Anonymous 2008-03-19 8:33

>>31
For true and false why follow ANYTHING other than ISO C? I'm curious.
It is wrong to assume !success = failure.

Name: Anonymous 2008-03-19 8:35

>>32
I only follow ANSI C because I am a yankeefag.

Name: Anonymous 2008-03-19 10:14

>>33
ANSI C nowadays is ISO C95.

Name: Anonymous 2008-03-19 10:52

>>30
Valid Xarn code.

Name: Xarn 2008-03-19 12:22

>>35
I created this meme.

Name: Anonymous 2008-03-19 12:27

I created this sage

Name: Anonymous 2008-03-19 12:35

i make music on my computer and was thinking of using version control to keep track of changes.  i hear subversion+tortiseSVN is pretty good.

Name: Anonymous 2008-03-19 12:49

>>25-33
gb2/REchan/

and POSIX only requires that false return nonzero, so any nonzero value works

Name: Anonymous 2008-03-19 13:29

>>38
Git - Fast Version Control System
http://git.or.cz/

Name: Anonymous 2008-03-19 16:35

It has some content now.

Name: Simon Peyote Joints 2008-03-19 17:12

Will things I commit show up right away (so I know I am doing it right)?

Name: Simon Peyote Joints 2008-03-19 17:14

>>42
Oh, and I pushed it without any error messages.

Name: Anonymous 2008-03-19 17:15

>>40
I wouldn't suggest that to someone that uses "makes music" in "windows" and that should potentially "go back to /mu/"

Name: Simon Peyote Joints 2008-03-19 17:20

I think I got it somehow:

I created a local branch called remotes/origin/mob,

and then it worked.

Name: Anonymous 2008-03-19 17:34

Could someone explain what version control is and how can it be useful for normal guys that program for fun?

Name: Anonymous 2008-03-19 17:36

>>42-43,45
GET THE FUCK BACK TO HASKELL, SPJ.

Name: Anonymous 2008-03-19 17:38

>>46
You have been reverse trolled

Name: Anonymous 2008-03-19 17:38

commit 8614cd9838480cadd51c9009802bb2d5f89e4d9f
Author: Simon Peyote Joints <simonpj@world4chan.org>;
Date:   Wed Mar 19 22:09:41 2008 +0100

    Add an implementation of the factorial algorithm in Haskell.

Name: Anonymous 2008-03-19 17:45

I merged mob into master. Keep it up!

Name: Anonymous 2008-03-19 17:52

>>46
It keeps incremental backups of the versions of your files. You can have the entire source code history of your project, stored in a very space-efficient manner because it only stores the differences, not whole files.

Name: Anonymous 2008-03-19 18:05

Use darcs.

Name: Anonymous 2008-03-19 18:19

Can anyone recommend a good introduction to git? I'm really interested in this whole distributed version control system thingy.

Name: Anonymous 2008-03-19 18:19

>>52
Why? Because it's written in Haskell? Git is a great program, and the public Git repo is a great site.

Name: Anonymous 2008-03-19 18:35

Name: Anonymous 2008-03-19 18:40

>>54
YHBT

Name: Anonymous 2008-03-19 18:41

Name: Anonymous 2008-03-19 18:53

Can we have gitweb pl0s?

Name: Anonymous 2008-03-19 19:27

Name: Anonymous 2008-03-19 19:52

coreutils project considered harmful.

Name: Anonymous 2008-03-19 19:53

>>60
Probably, but it's still fun, no?

Name: Anonymous 2008-03-19 19:56

GNU project considered harmful.

Name: Anonymous 2008-03-19 20:02

GNU project considered helpful.

Where would ---BSD--- be without ---gcc---?

Name: Anonymous 2008-03-19 22:10

Sam Fredrickson is a faggot

Name: Sam Fredrickson !0AojJn/88g 2008-03-19 22:38

>>64
Please elaborate.

Name: Anonymous 2008-03-20 5:51

>>65
Sam Fredrickson is a name faggot.

Name: Anonymous 2008-03-20 5:52

gnu is fucking awesome.
Anyone who says otherwise has his head up his arse.

Name: Anonymous 2008-03-20 5:53

>>65
your trip, my proof.

Name: Anonymous 2008-03-20 5:54

>>65
You're a faggot.

Name: Anonymous 2008-03-20 6:09

gnu is for possessive trendfags.
BSD is love.

Name: Anonymous 2008-03-20 6:28

>>70
Freedom is Slavery

GNU is love

Name: Anonymous 2008-03-20 6:37

iGNUrance is strength

Name: Anonymous 2008-03-20 6:44

>>70
I care about not having my work subjugate other people. This can only happen when people share the code to a program.

Name: Anonymous 2008-03-20 6:55

What does the G in GNU stand for?

Name: Anonymous 2008-03-20 7:56

>>71
Freedom is Anonymous

AnonPL > BSD > GNU

Name: Anonymous 2008-03-20 8:40

>>74
the Game

Name: Anonymous 2008-03-20 9:29

>>75
I release GPLed code with a RIPEMD-160 hash of my real name catenated to the date. Anonymous yet probably enforcable.

Name: Anonymous 2008-03-20 17:04

Someone push something interesting!!!

Name: Anonymous 2008-03-20 17:26

>>77
What, SHA-1 not good enough for ya?
I bet you think it's too broken or something, ya filthy cryptosnob.

Name: Anonymous 2008-03-20 21:03

% echo -n "Xarn" | md5sum
bf9043ed64d4ba68aa6f795f1e9cb1d6  -

Name: Anonymous 2008-03-20 21:21

Someone's fagged up my tty.c.  I'm beginning to consider anonsource harmful.

Name: Anonymous 2008-03-20 21:24

Someone's fagged up my echo.c.  I'm beginning to consider anonsource harmful.

Name: Anonymous 2008-03-20 21:25

>>82
The power of Open Sauce.

Name: Anonymous 2008-03-20 21:30

>>83
All this freedom and public domain stuff is quite nice and such...
BUT DON'T FUCK WITH MY SOURCE!

Name: Anonymous 2008-03-20 22:59

>>84
When someone forks a free project, it doesn't just supersede the original.  This shit is gay.

Name: Anonymous 2008-03-20 23:19

I've tried Darcs and Git. I like the interactiveness of Darcs and patch-based setup. Git seems pretty similar, from a distance. I might switch to that seeing as it's supposedly faster, and I'm too lazy to conduct real tests. If anyone can provide me with benchmarks that are believable, I'd appreciate it.

Name: Anonymous 2008-03-20 23:23

GIT Is Tits

Name: Anonymous 2008-03-21 6:31

>>86
The Mozilla project evaluated quite a few distributed SCM tools and picked Mercurial.

Name: Anonymous 2008-03-21 7:00

>>86
Check out two projects, one using Git and one using Darcs.

Check the one with Git out first, because you will be waiting forever for the second project to check out.

Name: Anonymous 2008-03-21 7:30

>>88
They only chose Mercurial because it had a good Windows port at the time the evaluated DSCMs, but there's a very good Git port now, though it's not official yet.

Name: Cudder 2008-03-21 8:12

I should write a script to keep the prog.git, the rechan thread, and the rechan local archive in sync.

Name: Anonymous 2008-03-21 15:22

>>91
That would make rechan suck less

Name: Anonymous 2008-03-22 11:21

>>91
DON'T HELP RECHAN!

Name: Anonymous 2008-03-22 11:43

>>91
gtfo namefag

Name: HAHAHaruhi !6mHaRuhies 2008-05-02 17:32

bampu pantsu~

Needs merging, and if everything goes well the git will see quite a bit of use in the not-too-distant future.

Name: Anonymous 2008-05-02 17:57

>>95
Merged and pushed back.

Good work. Anoncoreutils might actually become usable. Who wants to make Anon/Linux? ;)

Name: Anonymous 2008-05-02 18:01

Name: Anonymous 2008-05-02 18:23

What's git?

Name: Anonymous 2008-05-02 18:27

>>98
 ( ゚ ヮ゚) PROGGIT

Name: Anonymous 2008-05-02 21:02

100GET

And, heh, i'm OP.

Name: Anonymous 2008-05-03 5:58

>>99
Oh fuck.

Name: Anonymous 2008-05-03 9:59

>>99
Ah, now I git it.

Name: Anonymous 2008-05-03 9:59

103GIT

Name: DICKGET 2008-05-03 10:34

*grabs dick*

Name: DICK.GIT 2008-05-03 12:13

*git pulls dick*

Name: Anonymous 2008-05-03 18:04

*git clone dick*

Name: Anonymous 2008-05-18 9:13

*git merge dick*

Name: HAHAHaruhi !6mHaRuhies 2008-06-01 0:48

mergeru pantsu~

Name: Anonymous 2008-06-01 0:50

>>108
fail, gtfo

Name: Anonymous 2008-06-01 1:18

in b4 assembla

Name: Anonymous 2008-06-01 1:26

>>38
If you're the only one using the repo, your changes are linear (no merging) and it's Windows, then ya TortiseSVN is super.

>>40
I wish git was better supported on Windows, cuz I'd stick it in the pooper if I could.

Don't change these.
Name: Email:
Entire Thread Thread List