From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael J Gruber Subject: git serve Date: Fri, 27 Jun 2008 14:19:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Jun 27 14:20:48 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KCCwU-0006Da-0k for gcvg-git-2@gmane.org; Fri, 27 Jun 2008 14:20:42 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762026AbYF0MT0 (ORCPT ); Fri, 27 Jun 2008 08:19:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762719AbYF0MTZ (ORCPT ); Fri, 27 Jun 2008 08:19:25 -0400 Received: from main.gmane.org ([80.91.229.2]:44624 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757823AbYF0MTY (ORCPT ); Fri, 27 Jun 2008 08:19:24 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KCCvA-0003oa-8M for git@vger.kernel.org; Fri, 27 Jun 2008 12:19:20 +0000 Received: from whitehead.math.tu-clausthal.de ([139.174.44.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jun 2008 12:19:20 +0000 Received: from michaeljgruber+gmane by whitehead.math.tu-clausthal.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jun 2008 12:19:20 +0000 X-Injected-Via-Gmane: http://gmane.org/ X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: whitehead.math.tu-clausthal.de User-Agent: Thunderbird 2.0.0.14 (X11/20080421) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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"...