Maytag Metalark avatar Maytag Metalark committed c190004

Fixed README: changed `bash` to `console` for highlighting interactive sessions.

Comments (0)

Files changed (1)

 # hgdate mercurial extension
 
-## Contents
-
-* [Overview](#markdown-header-overview)
-* [Installation](#markdown-header-installation)
-* [Commands](#markdown-header-commands)
-* [Config Values](#markdown-header-config-values)
-
-## Overview
-
 The `hgdate` extension for mercurial allows you to set a persistent date offset in your repository which gets applied to commits. This is similar in concept to the `--date` option on the `commit` command, but instead of specifying it on each commit, you just specify a reference date once and the extension manages it from there.
 
 A simple example may be illustrative:
 
-    :::bash
+    :::console
     $ date
     Mon Oct 28 20:00:00 EDT 2013
     $ 
 
 When invoked with the `DATE` argument, the command sets the repository's date offset such that the current time is considered as the specified DATE, according to the repository. For example:
 
-    :::bash
+    :::console
     $ hg date "Oct 22 1984"
     Repo date set: Mon Oct 22 00:00:00 1984 -0400
     
 
 When invoked with neither the `--clear` option nor the `DATE` argument, the function simply prints out the current date and time, according to the repository and the currently configured date offset. If no date offset is set for the repository, this will be equal to the current time according to the computer system. For example:
 
-    :::bash
+    :::console
     $ hg date
     Repo time: Tue Oct 29 21:51:16 2013 -0400
 
 If you pass the `--verbose` option, the configured offset is also printed. For example:
 
-    :::bash
+    :::console
     $ hg date -v
     Date offset: None
     Repo time: Tue Oct 29 21:51:16 2013 -0400
 
 Or, if the offset has been configured:
 
-    :::bash
+    :::console
     $ hg date -v
     Date offset: 10599 days, 21:54:40 (past)
     Repo time: Mon Oct 22 00:00:02 1984 -0400
 
 To get rid of the offset and get your repository back to using real time, simply pass the `--clear` option. For example:
 
-    :::bash
+    :::console
     $ hg date --clear
     Date cleared
     
 
 Or, in more detail:
 
-    :::bash
+    :::console
     $ hg date "Oct 22 1984"
     Repo date set: Mon Oct 22 00:00:00 1984 -0400
     
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.