public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Michael J Gruber <michaeljgruber+gmane@fastmail•fm>
To: git@vger•kernel.org
Subject: git serve
Date: Fri, 27 Jun 2008 14:19:09 +0200	[thread overview]
Message-ID: <g42lru$gsv$1@ger.gmane.org> (raw)

Hi there

I added a small subsection to the wiki at

http://git.or.cz/gitwiki/Aliases

I hope it's OK to just go ahead and edit like I did.

I love the power of git aliases. This one shows how easy it is to 
implement a "hg serve" alike "git serve".

In order to be able to use "git serve" from a subdir of the repo without 
much scripting (git-rev-parse --git-dir) my alias uses the fact that 
non-git aliases (beginning with "!") are executed with the top-level dir 
as cwd. Is this documented/guaranteed?

Michael

P.S.: I always wondered why there's no default "view = !gitk"...

                 reply	other threads:[~2008-06-27 12:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g42lru$gsv$1@ger.gmane.org' \
    --to=michaeljgruber+gmane@fastmail$(echo .)fm \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox