Skip to content

Instantly share code, notes, and snippets.

View avar's full-sized avatar

Ævar Arnfjörð Bjarmason avar

View GitHub Profile
From f8a37a0ebfa0a21c749fa1ae8e095226945826a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= <avarab@gmail.com>
Date: Thu, 3 Jun 2010 21:05:54 +0000
Subject: [PATCH/RFC v6 0/2] Add infrastructure for translating Git with gettext
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This is version 6 of the patch series to make Git optionally
translatable with GNU gettext.
#!/bin/sh
. gettext.sh
gettext "This works"; echo
eval_gettext "So does \$this"; echo
gettext <<EOF
Here-docs like this are just ignored by xgettext
EOF
#!/bin/sh
gettext() {
printf "%s" $1
}
gettext "foo" # foo
gettext "foo bar" # foobar
# Reset variables
COMPAT_CFLAGS =
EXTLIBS =
NO_GETTEXT =
NEEDS_LIBINTL =
ifdef NO_GETTEXT
COMPAT_CFLAGS += -DNO_GETTEXT
else
ifdef NEEDS_LIBINTL

Þýðing á Git á íslensku

Þetta eru glósur sem varða þýðingu Git á íslensku.

Grunnhugtök

Grunnhugtök í Git eru þessi:

  • The SHA Summa, t.d. "summan er deadbeef"
#!/usr/bin/env perl
=head1 NAME
iceland-cam.cgi - Stream the Inspired By Iceland web camera
=head1 SYNOPSIS
# Set this up as a CGI on your webserver
git clone git://gist.github.com/429096.git gist-429096
$ make
rm -f -r test-results
make aggregate-results-and-cleanup
make[1]: Entering directory `/home/avar/g/git/t'
echo "*** t5516-fetch-push.sh ***"; GIT_CONFIG=.git/config '/bin/sh' t5516-fetch-push.sh
*** t5516-fetch-push.sh ***
* ok 1: setup
* ok 2: fetch without wildcard
* ok 3: fetch with wildcard
* ok 4: fetch with insteadOf
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/.git/
* expecting success:
: >path1 &&
git add path1 &&
test_tick &&
git commit -a -m repo &&
the_first_commit=$(git show-ref -s --verify refs/heads/master) &&
: >path2 &&
commit e13d33346f14b0c1f6253f14609553029c164cdf
Author: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date: Thu May 20 16:42:54 2010 +0000
Add v-perlbrew user
This user is to manage the v perl installation, replacing Debian's
diff --git a/group b/group
index 25d0fae..7ecf9f0 100644
commit e13d33346f14b0c1f6253f14609553029c164cdf
Author: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date: Thu May 20 16:42:54 2010 +0000
Add v-perlbrew user
This user is to manage the v perl installation, replacing Debian's
commit cc8806e6067f7022324151cd84a41d29fb5d1ba7
Author: Ævar Arnfjörð Bjarmason <avarab@gmail.com>