From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 3E3F71F46C for ; Thu, 23 Jan 2020 06:21:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726188AbgAWGVL (ORCPT ); Thu, 23 Jan 2020 01:21:11 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:61773 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgAWGVK (ORCPT ); Thu, 23 Jan 2020 01:21:10 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 8CE833E6DE; Thu, 23 Jan 2020 01:21:08 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=FrtRntTu73WfsnxFDJqGGdZfjVQ=; b=gcK2Ax 8iRzPtKx29fYbZuOjF5430ygFvEtwKCtY6sbtQ+HgbBp5r17MWPw70+lA4m3JhBg z30s82d91T1u4wYfiBplTkBXrmbQsfOuCO9jT6yslMmMBg2LYbGI4BTSWyCU2zJP 1bjKNk43qPeLdaWlVgoZewtgZi1LLJPa7jOSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=yNE3QpTj5SDCA7Tygk941GMUYfChJYtZ 6a6v/PPIlBYrzncj/XISs945/L5W5UkhGYdZ31HVHySIL2/ejQo6UiMoAYLSZvti LcyvRbyC0qOXnQWPj5Cl7dxIWoGyhbLndcHkNV+LS3gnNByokWugk5LnP2l/8kRj dTKG4kUAulA= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 85D383E6DD; Thu, 23 Jan 2020 01:21:08 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.76.80.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id ABBB73E6D8; Thu, 23 Jan 2020 01:21:02 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: "Heba Waly via GitGitGadget" Cc: git@vger.kernel.org, Heba Waly Subject: Re: [PATCH] git: update documentation for --git-dir References: Date: Wed, 22 Jan 2020 22:21:01 -0800 In-Reply-To: (Heba Waly via GitGitGadget's message of "Thu, 23 Jan 2020 02:16:51 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 879CEFB0-3DA8-11EA-9B95-C28CBED8090B-77302942!pb-smtp1.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org "Heba Waly via GitGitGadget" writes: > For example, if the user runs `git --git-dir= status`, git > will not be able to figure out the work tree path on its own It is not "not be able to figure out". Specifying GIT_DIR (either with environment or the --git-dir option) tells Git that the $cwd is the top of the working tree unless otherwise specified (e.g. with GIT_WORK_TREE environment). If you have to say something, saying "When GIT_DIR is specified, the usual repository discovery is skipped and the current directory is taken as the top level of the working tree unless otherwise speciffied" is probably OK.