Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bin/git-root
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

git rev-parse --show-toplevel
11 changes: 7 additions & 4 deletions man/git-extras.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" https://github.com/rtomayko/ronn/tree/0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-EXTRAS" "1" "July 2012" "" ""
.TH "GIT\-EXTRAS" "1" "November 2012" "" ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a update?

.
.SH "NAME"
\fBgit\-extras\fR \- Awesome GIT utilities
Expand Down Expand Up @@ -102,6 +102,9 @@ Self update\.
\fBgit\-repl(1)\fR git read\-eval\-print\-loop
.
.IP "\(bu" 4
\fBgit\-root(1)\fR Display root directory of current repository
.
.IP "\(bu" 4
\fBgit\-setup(1)\fR Set up a git repository
.
.IP "\(bu" 4
Expand All @@ -125,7 +128,7 @@ Self update\.
Written by Tj Holowaychuk <\fItj@vision\-media\.ca\fR>
.
.SH "REPORTING BUGS"
<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR>
<\fIhttps://github\.com/visionmedia/git\-extras/issues\fR>
.
.SH "SEE ALSO"
<\fIhttp://github\.com/visionmedia/git\-extras\fR>
<\fIhttps://github\.com/visionmedia/git\-extras\fR>
7 changes: 4 additions & 3 deletions man/git-extras.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/git-extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ git-extras(1) -- Awesome GIT utilities
- **git-release(1)** Commit, tag and push changes to the repository
- **git-rename-tag(1)** Rename a tag
- **git-repl(1)** git read-eval-print-loop
- **git-root(1)** Display root directory of current repository
- **git-setup(1)** Set up a git repository
- **git-show-tree(1)** show branch tree of commit history
- **git-squash(1)** Import changes form a branch
Expand Down
37 changes: 37 additions & 0 deletions man/git-root.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-ROOT" "1" "November 2012" "" ""
.
.SH "NAME"
\fBgit\-root\fR \- Show repository root directory
.
.SH "SYNOPSIS"
\fBgit\-root\fR
.
.SH "DESCRIPTION"
Shows the root directory of the repository\.
.
.SH "EXAMPLES"
Outputs a repo root directory:
.
.IP "" 4
.
.nf

$ git root

/home/username/repos/myrepo
.
.fi
.
.IP "" 0
.
.SH "AUTHOR"
Written by Richard Midwinter <\fIrich\.midwinter@gmail\.com\fR>
.
.SH "REPORTING BUGS"
<\fIhttps://github\.com/visionmedia/git\-extras/issues\fR>
.
.SH "SEE ALSO"
<\fIhttps://github\.com/visionmedia/git\-extras\fR>
114 changes: 114 additions & 0 deletions man/git-root.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions man/git-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
git-root(1) -- Show repository root directory
===============================================

## SYNOPSIS

`git-root`

## DESCRIPTION

Shows the root directory of the repository.

## EXAMPLES

Outputs a repo root directory:

$ git root

/home/username/repos/myrepo

## AUTHOR

Written by Richard Midwinter &lt;<[email protected]>&gt;

## REPORTING BUGS

&lt;<https://github.com/visionmedia/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/visionmedia/git-extras>&gt;
1 change: 1 addition & 0 deletions man/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ git-refactor(1) git-refactor
git-release(1) git-release
git-rename-tag(1) git-rename-tag
git-repl(1) git-repl
git-root(1) git-root
git-setup(1) git-setup
git-show-tree(1) git-show-tree
git-squash(1) git-squash
Expand Down