Skip to content

Commit

Permalink
Remove unused Git attributes ident
Browse files Browse the repository at this point in the history
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
  • Loading branch information
petk committed Oct 17, 2018
1 parent 25b8627 commit 0f95b8c
Show file tree
Hide file tree
Showing 382 changed files with 3 additions and 416 deletions.
1 change: 0 additions & 1 deletion ChangeLog-4.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'ChangeLog-4.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/changelogs.inc';
Expand Down
1 change: 0 additions & 1 deletion ChangeLog-5.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'ChangeLog-5.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/changelogs.inc';
Expand Down
1 change: 0 additions & 1 deletion archive/1998.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/1998.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/1999.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/1999.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2000.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2000.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2001.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2001.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2002.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2002.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2003.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2003.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2004.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2004.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2005.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2005.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2006.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2006.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2007.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2007.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2008.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2008.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2009.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2009.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2010.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'archive/2010.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2011.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id: 2010.php 293613 2010-01-16 13:38:42Z bjori $
$_SERVER['BASE_PAGE'] = 'archive/2011.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/2012.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id: 2010.php 293613 2010-01-16 13:38:42Z bjori $
$_SERVER['BASE_PAGE'] = 'archive/2012.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
news_archive_sidebar();
Expand Down
1 change: 0 additions & 1 deletion archive/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$i = 0;
do {
Expand Down
2 changes: 0 additions & 2 deletions backend/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

// Simulate a /backend shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/backend';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
Expand Down
2 changes: 0 additions & 2 deletions bin/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

// Simulate a /bin shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/bin';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
Expand Down
1 change: 0 additions & 1 deletion build-setup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'get-involved.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion cal.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'cal.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion conferences/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'conferences/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
Expand Down
1 change: 0 additions & 1 deletion contact.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'contact.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("Contact", array("current" => "community"));
Expand Down
1 change: 0 additions & 1 deletion copyright.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'copyright.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
Expand Down
1 change: 0 additions & 1 deletion credits.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'credits.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion docs.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'docs.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion download-docs.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'download-docs.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion download-logos.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'download-logos.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
Expand Down
1 change: 0 additions & 1 deletion downloads.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php // vim: et
// $Id$
$_SERVER['BASE_PAGE'] = 'downloads.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/gpg-keys.inc';
Expand Down
1 change: 0 additions & 1 deletion elephpant.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'elephpant.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
Expand Down
2 changes: 0 additions & 2 deletions error.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

/*
This script handles all 401, 403 and 404 error redirects,
Expand Down
1 change: 0 additions & 1 deletion get-involved.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'get-involved.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion git.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'git.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
Expand Down
2 changes: 0 additions & 2 deletions images/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

// Simulate a /images shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/images';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
Expand Down
4 changes: 1 addition & 3 deletions include/changelogs.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
/* $Id$ */

function bugfix($number) {
echo "Fixed bug "; bugl($number);
}
Expand Down Expand Up @@ -36,4 +34,4 @@ function release_date($in) {
echo "<time class='releasedate' datetime='{$for_tools}'>{$human_readable}</time>";
}

?>
?>
2 changes: 0 additions & 2 deletions include/do-download.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

// $Id$

/*
This code redirects the user to the exact file to
download, and logs the download if it's something
Expand Down
2 changes: 0 additions & 2 deletions include/email-validation.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

// $Id$

// Try to remove anti-SPAM bits
function clean_AntiSPAM($email)
{
Expand Down
2 changes: 0 additions & 2 deletions include/errors.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

/*
This script provides functions to print out
error messages for users in case something is
Expand Down
2 changes: 0 additions & 2 deletions include/get-download.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

// Try to make this page non-cached
header_nocache();

Expand Down
2 changes: 0 additions & 2 deletions include/header.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
/* $Id$ */

$css_files = array(
'/fonts/Fira/fira.css',
'/fonts/Font-Awesome/css/fontello.css',
Expand Down
2 changes: 0 additions & 2 deletions include/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
// $Id$

// Simulate a /include shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/include';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
Expand Down
2 changes: 0 additions & 2 deletions include/ip-to-country.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

/*
This script uses the local copy of the ip-to-country.com
Expand Down
2 changes: 0 additions & 2 deletions include/langchooser.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

/*
This script tries to guess what language to use for
Expand Down
2 changes: 0 additions & 2 deletions include/languages.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

/*
This is a list of all manual languages hosted
within PHP SVN modules (phpdoc-{lang})
Expand Down
2 changes: 0 additions & 2 deletions include/layout.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
/* $Id$ */

$_SERVER['STATIC_ROOT'] = $MYSITE;
$_SERVER['MYSITE'] = $MYSITE;

Expand Down
2 changes: 0 additions & 2 deletions include/loadavg.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php # vim:ft=php

// $Id$

/*
Offload to the visitor's nearest mirror if the load is too high.
We use the sys_getloadavg() function that requires PHP 5.1.3+
Expand Down
2 changes: 0 additions & 2 deletions include/manual-lookup.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

// We need this for error reporting
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';

Expand Down
2 changes: 0 additions & 2 deletions include/posttohost.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

// $Id$

/*
This code is used to post data to the central server which
can store the data in database and/or mail notices or requests
Expand Down
2 changes: 0 additions & 2 deletions include/prepend.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Compress all pages, if ext/zlib is available on the mirror
ini_set("zlib.output_compression", 1);

// $Id$

// See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
// for cache control header descriptions (used in many places on the site).

Expand Down
1 change: 0 additions & 1 deletion include/results.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id: $
function search_results($res, $q, $profile='all', $per_page=10, $s=0, $l='en', $show_title=true, $show_foot=true, $show_attrib=true) {
$start_result = $s;
$end_result = $s + $res['ResultSet']['totalResultsReturned'] -1;
Expand Down
2 changes: 0 additions & 2 deletions include/shared-manual.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

/*

This file is included directly on all manual pages,
Expand Down
1 change: 0 additions & 1 deletion include/shared-stat.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php // -*- C++ -*-
// $Id$
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

function commonStatHeader($title) {
Expand Down
2 changes: 0 additions & 2 deletions include/site.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php // -*- C++ -*-

// $Id$

// Define $MIRRORS array, and some constants
include $_SERVER['DOCUMENT_ROOT'] . '/include/mirrors.inc';

Expand Down
1 change: 0 additions & 1 deletion license/contrib-guidelines-code.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'license/contrib-guidelines-code.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("License Information", array("current" => "help"));
Expand Down
1 change: 0 additions & 1 deletion license/distrib-guidelines-code.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'license/distrib-guidelines-code.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("License Information", array("current" => "help"));
Expand Down
1 change: 0 additions & 1 deletion license/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'license/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';

Expand Down
1 change: 0 additions & 1 deletion mailing-lists.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'mailing-lists.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
Expand Down
1 change: 0 additions & 1 deletion manual-lookup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// $Id$
$_SERVER['BASE_PAGE'] = 'manual-lookup.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
Expand Down
Loading

0 comments on commit 0f95b8c

Please sign in to comment.