<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>update_repo | Automate the update of multiple local Git repository clones</title>

    <!-- Combined CSS -->
    <link rel="stylesheet" href="css/site.css">
    <!-- Google fonts -->
    <link href="https://fonts.googleapis.com/css?family=Lato|Droid+Serif|Raleway" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- NAVBAR -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <span class="forkongithub"><a href="https://github.com/seapagan/update_repo" target="_blank">Fork me on GitHub</a></span>
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Update_Repo</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a href="#about">About</a></li>
            <li><a href="#installation">Installation</a></li>
            <li><a href="#usage">Usage</a></li>
            <li><a href="#configuration">Configuration</a></li>
            <li><a href="#contribute">Contribute</a></li>
            <li><a href="#license">License</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <!-- ABOUT -->
    <section class="about" id='about'>
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-info-circle">About</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <p>A Simple Gem to keep multiple locally-cloned Git Repositories up to date.</p>
            <p>The script will simply run <span class="console-output">git pull</span> on every local clone of a git repository that it finds under the specified directory or directories.</p>
            <p class="important-note">Note: Versions prior to 0.9.4 had a serious bug where the script would crash on startup unless there was an <span class="yaml-tag">exception:</span> defined in the configuration file. This has been fixed from version 0.9.4 onwards.</p>
            <div class="text-center">
              <a href="https://badge.fury.io/rb/update_repo"><img src="https://badge.fury.io/rb/update_repo.svg" alt="Gem Version" height="18"></a>
              <a href="https://travis-ci.org/seapagan/update_repo"><img src="https://travis-ci.org/seapagan/update_repo.svg?branch=master"></a>
            </div>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- ABOUT END -->

    <!-- INSTALLATION -->
    <section class="installation" id="installation">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-download">Installation</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <p>A working copy of both <a href="http://www.ruby-lang.org" target="_blank" class="icon fa-external-link">Ruby</a> and <a href="http://git-scm.com" target="_blank" class="icon fa-external-link">Git</a> need to be installed on your machine. <b>Git version 1.8.5 or greater is required</b>, the script will not run with an older version or indeed without Git installed. Ruby version 1.9.3 and newer are supported.</p>
            <p>Currently the script has only been tested under Linux, not Windows however Windows testing is next in the grand plan!</p>
            <p>Simply install from the command prompt as you would any other gem. Note that you may require <b>'sudo'</b> depending how Ruby is installed on your system.</p>
            <pre><code class="language-markup">gem install update_repo</code></pre>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- INSTALLATION END -->

    <!-- USAGE -->
    <section class="usage" id="usage">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-check-square-o">Usage</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <h2>Quick Start</h2>
            <p>Create a <a class="icon fa-external-link" target="_blank" href="http://yaml.org/">YAML</a>-formatted configuration file called <span class="filename">.updaterepo</span> (note the 'dot' at the start!) in your home directory that contains at least a <span class="yaml-tag">location:</span> tag pointing to the directory containing the git repositories you wish to have updated :</p>
              <pre>
                <code class="language-yaml">
                  ---
                  location:
                  - /media/myuser/git-repos
                  - /data/RepoDir
                </code>
              </pre>
            <p>The directory or directories specified (there can be 1 root directory or as many as you wish) must already exist, and can be nested as deep as you wish with many repositories in many subdirectories.</p>
            <p>This is the most basic example of a configuration file and there are other options that can be added to fine-tune the operation - see the description of configuration options below.</p>
            <p>Now, run the script from anywhere :</p>
            <pre><code class="language-markup">update_repo</code></pre>
            <p><b>Note:</b> From version 0.9.0 onwards, the default mode of operation is <b>non-verbose</b>. If you wish the same output as previous versions then specify <span class="cmdline">--verbose</span> on the command line or <span class="yaml-tag">verbose: true</span> in the configuration file.</p>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- USAGE END -->

    <!-- CONFIGURATION -->
    <section class="configuration" id="configuration">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-cog">Configuration</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <h2>Configuration file</h2>
            <p>The configuration file defaults to <span class="filename">~/.updaterepo</span> and is a standard <a href="http://yaml.org/" class="icon  fa-external-link">YAML</a> formatted text file. If this configuration file is not found, the script will terminate with an error.</p>
            <p>The first line <b>must</b> contain only the YAML frontmatter of 3 dashes (<span class="yaml-tag">---</span>). After that, the following sections can follow in any order. Only the <span class="yaml-tag">location:</span> section is compulsory, and that must contain at least one entry.</p><commit_msg>Remove prismjs language tag for console text<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>update_repo | Automate the update of multiple local Git repository clones</title>

    <!-- Combined CSS -->
    <link rel="stylesheet" href="css/site.css">
    <!-- Google fonts -->
    <link href="https://fonts.googleapis.com/css?family=Lato|Droid+Serif|Raleway" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- NAVBAR -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <span class="forkongithub"><a href="https://github.com/seapagan/update_repo" target="_blank">Fork me on GitHub</a></span>
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Update_Repo</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a href="#about">About</a></li>
            <li><a href="#installation">Installation</a></li>
            <li><a href="#usage">Usage</a></li>
            <li><a href="#configuration">Configuration</a></li>
            <li><a href="#contribute">Contribute</a></li>
            <li><a href="#license">License</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <!-- ABOUT -->
    <section class="about" id='about'>
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-info-circle">About</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <p>A Simple Gem to keep multiple locally-cloned Git Repositories up to date.</p>
            <p>The script will simply run <span class="console-output">git pull</span> on every local clone of a git repository that it finds under the specified directory or directories.</p>
            <p class="important-note">Note: Versions prior to 0.9.4 had a serious bug where the script would crash on startup unless there was an <span class="yaml-tag">exception:</span> defined in the configuration file. This has been fixed from version 0.9.4 onwards.</p>
            <div class="text-center">
              <a href="https://badge.fury.io/rb/update_repo"><img src="https://badge.fury.io/rb/update_repo.svg" alt="Gem Version" height="18"></a>
              <a href="https://travis-ci.org/seapagan/update_repo"><img src="https://travis-ci.org/seapagan/update_repo.svg?branch=master"></a>
            </div>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- ABOUT END -->

    <!-- INSTALLATION -->
    <section class="installation" id="installation">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-download">Installation</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <p>A working copy of both <a href="http://www.ruby-lang.org" target="_blank" class="icon fa-external-link">Ruby</a> and <a href="http://git-scm.com" target="_blank" class="icon fa-external-link">Git</a> need to be installed on your machine. <b>Git version 1.8.5 or greater is required</b>, the script will not run with an older version or indeed without Git installed. Ruby version 1.9.3 and newer are supported.</p>
            <p>Currently the script has only been tested under Linux, not Windows however Windows testing is next in the grand plan!</p>
            <p>Simply install from the command prompt as you would any other gem. Note that you may require <b>'sudo'</b> depending how Ruby is installed on your system.</p>
            <pre><code>gem install update_repo</code></pre>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- INSTALLATION END -->

    <!-- USAGE -->
    <section class="usage" id="usage">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-check-square-o">Usage</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <h2>Quick Start</h2>
            <p>Create a <a class="icon fa-external-link" target="_blank" href="http://yaml.org/">YAML</a>-formatted configuration file called <span class="filename">.updaterepo</span> (note the 'dot' at the start!) in your home directory that contains at least a <span class="yaml-tag">location:</span> tag pointing to the directory containing the git repositories you wish to have updated :</p>
              <pre>
                <code class="language-yaml">
                  ---
                  location:
                  - /media/myuser/git-repos
                  - /data/RepoDir
                </code>
              </pre>
            <p>The directory or directories specified (there can be 1 root directory or as many as you wish) must already exist, and can be nested as deep as you wish with many repositories in many subdirectories.</p>
            <p>This is the most basic example of a configuration file and there are other options that can be added to fine-tune the operation - see the description of configuration options below.</p>
            <p>Now, run the script from anywhere :</p>
            <pre><code>update_repo</code></pre>
            <p><b>Note:</b> From version 0.9.0 onwards, the default mode of operation is <b>non-verbose</b>. If you wish the same output as previous versions then specify <span class="cmdline">--verbose</span> on the command line or <span class="yaml-tag">verbose: true</span> in the configuration file.</p>
          </div>
        </div><!-- row -->
      </div><!-- container -->
    </section>
    <!-- USAGE END -->

    <!-- CONFIGURATION -->
    <section class="configuration" id="configuration">
      <div class="container">
        <div class="row row-header">
          <div class="col-lg-12 col-md-12">
            <h1 class="icon fa-cog">Configuration</h1>
          </div>
        </div><!-- row -->
        <div class="row row-body">
          <div class="col-lg-12 col-md-12">
            <h2>Configuration file</h2>
            <p>The configuration file defaults to <span class="filename">~/.updaterepo</span> and is a standard <a href="http://yaml.org/" class="icon  fa-external-link">YAML</a> formatted text file. If this configuration file is not found, the script will terminate with an error.</p>
            <p>The first line <b>must</b> contain only the YAML frontmatter of 3 dashes (<span class="yaml-tag">---</span>). After that, the following sections can follow in any order. Only the <span class="yaml-tag">location:</span> section is compulsory, and that must contain at least one entry.</p>
{'fraction_non_alphanumeric': 0.16236022490365784, 'fraction_numerical': 0.009855328826836818, 'mean_word_length': 2.4860162959700505, 'pattern_counts': {'":': 0, '<': 463, '<?xml version=': 0, '>': 463, 'https://': 16, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2171607', 'n_tokens_mistral': 4732, 'n_tokens_neox': 4538, 'n_words': 1391}