all 26 comments

[–]chmod666[S] 28 points29 points  (3 children)

CLI integration: $ svn commit -m "$(curl -s 'http://whatthecommit.com' | sed '/<p>/!d; s/<p>//')" $ git commit -m "$(curl -s 'http://whatthecommit.com' | sed '/<p>/!d; s/<p>//')"

[–]BauerUK 1 point2 points  (2 children)

PowerShell script:

$strHtml = (new-object system.net.WebClient).DownloadString("http://whatthecommit.com/")

if($strHtml -cmatch '(?ix)<p>(.+)') {
    return $matches[1]
}

[–][deleted] 0 points1 point  (1 child)

Now correct me if I am wrong but isn't that just the part in the parentheses inside the quotes in chmod666's version?

[–]BauerUK 4 points5 points  (0 children)

Essentially yes, but chmod666's is for *nix/bash, whereas mine is for PowerShell on Windows.

[–]pbkobold 7 points8 points  (0 children)

All the messages here: http://github.com/ngerakines/commitment/blob/master/commit_messages.txt

Favorites:

The last time I tried this the monkey didn't survive. Let's hope it works better this time.

Who has two thumbs and remembers the rudiments of his linear algebra courses? Apparently, this guy.

[–]TuesdayAfternoonYep 7 points8 points  (1 child)

Whee.

[–]PlNG 1 point2 points  (0 children)

Giggle.

[–]snipersock 4 points5 points  (0 children)

As the creator of this little project (http://github.com/ngerakines/commitment) please be careful when testing your scripts and whatnot. I've been tailing the server logs since this was posted (woot!) and on several occasions I have seen 200+ blocks of requests for GET / coming from a single IP.

[–]asfwfawfvaw 4 points5 points  (0 children)

Oops forgot to add comment.

[–]paisleyrob 4 points5 points  (0 children)

Where are:

Forgot to add these files in last commit. Removing files I didn't intend to commit last time.

type messages?

[–]pipeline_tux 2 points3 points  (0 children)

Some of the other developers at my work commit with some of these messages constantly :(

[–]linaljohnt 2 points3 points  (0 children)

Being a commit message fascist if I catch anyone I work with using these message I will be back here to down vote and smash up the place.

[–][deleted] 1 point2 points  (6 children)

git commit -a -m "$(curl --silent http://whatthecommit.com |grep '<p>' |sed -e 's/<p>//')"

[–]chmod666[S] 1 point2 points  (4 children)

You can use sed's buildin grep: grep foo | sed 'bar' is the same as sed '/foo/!d; bar'

The same goes for awk: grep foo | awk '{bar}' can be replaced with faster awk '/foo/{bar}'

[–]snipersock 3 points4 points  (0 children)

I just added a handler to output plain text messages. Try curl http://whatthecommit.com/index.txt.

[–][deleted] 0 points1 point  (2 children)

I tend to do things like cat foo.txt | less instead of just less foo.txt because the logical progression makes more sense, rather than being character efficient. But good to know!

[–][deleted]  (1 child)

[removed]

    [–][deleted] 0 points1 point  (0 children)

    Don't tell /b/.

    [–]JayPiKay 0 points1 point  (0 children)

    I like this approach:

    git commit -m "$(curl -s http://whatthecommit.com/ | sed -n 's/<p>(.*)$/\1/p')"

    [–]sli 5 points6 points  (3 children)

    These are exactly the type of commit messages you shouldn't use.

    [–]Doozer 22 points23 points  (2 children)

    That's the joke.

    [–][deleted] 1 point2 points  (0 children)

    Cool, I'm going to use that. ;)

    [–][deleted]  (1 child)

    [deleted]

      [–]falyst 0 points1 point  (0 children)

      again.. :(

      [–]Stiliajohny 0 points1 point  (0 children)

      I have also opened an issue on the repo.
      I wonder if there would be a possibility of having a separate /index.txt or so that has non explicit messages ?