From owner-freebsd-git@freebsd.org Thu Apr 1 15:44:06 2021 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B78D57C5A3 for ; Thu, 1 Apr 2021 15:44:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FB6tF0Y1Mz4S5w for ; Thu, 1 Apr 2021 15:44:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82c.google.com with SMTP id c6so1788057qtc.1 for ; Thu, 01 Apr 2021 08:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QZ75MjHFltosSPoog9LMChBgm14LgVUtfJZ6cms61ek=; b=jAwUa7FlAHUCJS5LBrxASU4q56ZPJ141gsiQnNCNvgKR7TrTW8SCEr/aWTuiJaW+ZG nHtS4pMnyN4JeNWt9WdseEkKUwvU+rb8ceRgE7uGtGOv37UySgJUrS8uTPnRiMJ6eWYz oCDOwTB9Lm0M876/d1A+UDXv7UaPMLhwI+a256czPN2xR9fVup0l+9pJPGOcHt76cgLl EZyAMTzQ5GC7o+wWr5GCq0sVC0OFhMVeLcDHogMgb6UlNUKBKtfK5sS4C4AwdNSHqS5l KFWsfX5o7mIAB9jf00g+nAzoimPBDC0JhIqqr1+feyj3VAg2SQWfWzuTCzjGGRoeMA1J advA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QZ75MjHFltosSPoog9LMChBgm14LgVUtfJZ6cms61ek=; b=HLPuQPtddD4fV7ZadUtl035BiHq9yp344cHM4vjOuAogv8Agyanynb44tBBuGGS87y oHbikTf6U8BjXIFxJOp7GL6kR8TspkzWmq1Ykcr4BRjr0oQOTnW+/GzJLIKX4+//AeRR 4fmWVbY5tHGPDIrcUqWL6TVYQE4RJJMcdM/y4RALnKfx4lx/6ESdH4cmjFmqtX8wUvq3 QjpVD3Wei2kDUXI3ctANcFLo9UkdlODi8L5dGn3Iudz1LI4SQ1BG/aP7MiE22RN46GvD JXaGnRNHNgJmmB44W55ipGo3WBvzPfjHYfWeGGfRC/B825Ib8GXC+6aMxoK8GpbwIRK+ wFeQ== X-Gm-Message-State: AOAM530uE6USHHnZGdqkZ/+q/4Fm6dFLdzdIAgG75c7IwVaczfGw+oS+ oRElkMZAPBPEQX0bmZL/Ja5kSY9/7pun3y6BrySwOhfM4Y00Lg== X-Google-Smtp-Source: ABdhPJzhc5VNeGI8sh3Oexo+K4DYT4Eg43D1CiwmPjHCwLtPrQ9ZxfZ+L2zZYBfgf+0UKovwL+9rDyf69qbIO5iqZqo= X-Received: by 2002:a05:622a:3c8:: with SMTP id k8mr7720859qtx.101.1617291843299; Thu, 01 Apr 2021 08:44:03 -0700 (PDT) MIME-Version: 1.0 References: <202103311842.12VIgiJ3006095@slippy.cwsent.com> <20210331184820.GA26869@freefall.freebsd.org> <202103311859.12VIxlcn006294@slippy.cwsent.com> <6cf11fc8-d75e-451d-ada2-03a9f06048b4@www.fastmail.com> In-Reply-To: From: Warner Losh Date: Thu, 1 Apr 2021 09:43:52 -0600 Message-ID: Subject: Re: Ports Repocopies To: Matthias Fechner Cc: freebsd-git X-Rspamd-Queue-Id: 4FB6tF0Y1Mz4S5w X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=jAwUa7Fl; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82c) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::82c:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82c:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::82c:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MAILMAN_DEST(0.00)[freebsd-git]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 15:44:06 -0000 On Thu, Apr 1, 2021 at 5:07 AM Matthias Fechner wrote: > Am 31.03.2021 um 23:54 schrieb Dan Langille: > > I have read a discussion of repo-copy, perhaps on the git mailing list. > > if you copy a file/directory and diretly stage it after the copy, git > should automatically detect that it was copied. > If you do this, then Git is more likely to get it right, but Git is fallible. One feature of the ports tree is that it has lots of files which are only a little different from each other. However, there's two things that mitigates this design decision. First, files it gets wrong have so little data to preserve that when Git gets things wrong, recovering from it is usually trivial. Second, we're planning on adding extra data to the commit messages to thread the history back when git can't do it automatically should that be necessary after Git guesses wrong and we need to get to the history. It's believed this will be fairly rare. Warner