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

/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
YYYYYYYYYYYYYyyyyyyyyyyyyyyY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YYYYYYYYYYYYYYYyyyyyyyyYYYYYYYYYYYyyyyyyyyyYYYYYY
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/

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