From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48729C47082 for ; Mon, 31 May 2021 06:47:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22C18610C9 for ; Mon, 31 May 2021 06:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbhEaGsw (ORCPT ); Mon, 31 May 2021 02:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbhEaGsv (ORCPT ); Mon, 31 May 2021 02:48:51 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AED4C061574 for ; Sun, 30 May 2021 23:47:10 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id g18so8303552pfr.2 for ; Sun, 30 May 2021 23:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NbDjomnom/8udP04qB123NLsoY/bF3XvO/xpwO4kIsM=; b=rLpAl0303uWJ9dx4d4ZIm20gqir6BQoEHaACH9wen4MZzlNS1Pk7F4GhIVXtEHR+JZ 8eyk1+MUq45PeqhNwI+UE6V3yZpD4f16HDlZxd7MQUC+ZlUhGfRuP00JdOC8xGpAnxob Ptzb5k9EzI2um36ewyS59agVslcVJCjcZ0GSAjZ+As3enC44WPsXfnrnOvftxzckwTdZ oUTHqm3qX8lp9uEqjdvpWe3NI1IU68Ju8+XSG4Z3tlahPz4OtNgH8rNWxq41yZhZa7PY 6tkBUCOYhiN9iuucgbUeZ3hYCZYD62RIU5MyKc/0DzLc8hXSCeRyN1oqWDLrCWbCpW6X sjMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NbDjomnom/8udP04qB123NLsoY/bF3XvO/xpwO4kIsM=; b=plvNt4DitT8/B5LP+38UU6+ztG1xv6hhmTLB2iABgbzJSN+IUioFkME1YFLpPYcJpU 7mctXojXCq+DpOhqmm2FU5m9aF1aaxcibDXYoTQVTC0Dpxt0EGOZN//jjzOPR1qVRpui XHaM4W5jE5rNI6AfS+leoLYfzRl2n7jtCeLkun1Sedd9BpRJmn/l6We2G52ZzwVWgmUL ds42qNcYIYyqf7O04QZXakqhdfPNOIWEYKnVVTYtbmmql/u7h04TEO3KwDZPmOgfsuj/ XGOG11qCAq7EHKcOWbMNRkpN1SAGzlub4lur5gIRkrr79Boj4wWK+ggRV2soQ6Zkw17e xnhw== X-Gm-Message-State: AOAM533a/nNREzJfuqHK6n69fLua00qPmnZE3vXtFqA3IfWNWT+IMKFT KEabWzrHzt0zcMNdIQ+bK1I= X-Google-Smtp-Source: ABdhPJyE+gdcq4NSj5TxdDKd3YQJKI1Ejapez4t9kzdlpbhsf50XYJ0+nblWAdLZQ4ncjlfgcJVd1w== X-Received: by 2002:a63:1e64:: with SMTP id p36mr21079118pgm.105.1622443629607; Sun, 30 May 2021 23:47:09 -0700 (PDT) Received: from localhost ([2402:800:63b8:97c0:59aa:7727:6cb5:cccf]) by smtp.gmail.com with ESMTPSA id p8sm9856427pfw.165.2021.05.30.23.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 23:47:08 -0700 (PDT) Date: Mon, 31 May 2021 13:47:06 +0700 From: =?utf-8?B?xJBvw6BuIFRy4bqnbiBDw7RuZw==?= Danh To: Andy AO via GitGitGadget Cc: git@vger.kernel.org, Bagas Sanjaya , Felipe Contreras , "Robert P. J. Day" , Derrick Stolee , Andy AO Subject: Re: [PATCH] describe-doc:fix a obscure error description in the git log documentation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 2021-05-31 06:00:56+0000, Andy AO via GitGitGadget wrote: > From: zen96285 > > The git log documentation says "The default option is 'short'." This is wrong. After testing, the default value of '--decorate' is 'auto', not 'short'. > > There is no difference between 'auto' and 'short' in terminal, but there is a significant difference in how they behave in the shell.The information generated by the 'short' can be saved in shell variables, while the 'auto' can't. Please use your real name and wrap your commit message at 50 characters for subject line and 72 characters for body. Let's the commit message aside. The default option is documented correctly as short. Please check out builtin/log.c:decorate_callback and builtin/log.c:parse_decoration_style. Below command print nothing in my machine: git log --decorate -1 >/tmp/default git log --decorate=short -1 >/tmp/short cmp /tmp/default /tmp/short I'm curious about your config and/or command invocation. >From the code, I can't guess which scenario that's different. I think you meant: git log -1 >/tmp/no-decorate In that case, please check your "log.decorate" config. -- Danh