🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3948

[RFC] git task: grouping commits into named units of work

#3948
From: Hamdan
Date: Thu, 26 Nov 2026 23:44
80 lines
13593 bytes
Hi all,

I'd like to share an early idea and hear whether it makes sense for Git.

The idea

Most of the time, developers (and now AI coding agents) work in discrete tasks: adding a payment gateway to an existing app, building a versioned update system, and so on. While doing a task, we commit periodically as we hit milestones, so the work stays saved and traceable.

Today, if you want those commits to read as one unit later, you usually create a branch or worktree, commit there, then bring it back into main with a rebase, a merge, or a pull request. In a commit graph it looks like this: the branch splits off at commit 187, runs through to 247, and merges back into main at 248.

What I'm proposing is a native Task primitive that gives you the grouping without the branching:

    git task start "add payment gateway"
    git commit ...
    git commit ...
    git task done

A task is a box around a unit of work. You can stay on main the whole time. When you look at history later, commits 187 to 247 show up as one task that you can collapse or expand, like a collapsible list, so it's clear what was built there.

Why it matters

- Readability: on large codebases, history reads as a list of tasks instead of a flat stream of commits.

- Lower friction: for beginners, small tasks, small teams, and early-stage startups, "start a task, commit, finish the task" is simpler than creating branches, switching context, rebasing, merging, and managing merge commits or PR overhead.

- Agents: an AI agent can open a task, checkpoint freely inside it, and the whole task can be reviewed or reverted as one unit.

Single-branch and multi-branch tasks

A task doesn't have to be tied to one branch. It can live:

- on a single branch, e.g. a feature built directly on main, even if unrelated commits land in between;

- across several branches, e.g. a fix on main that is also cherry-picked to two release branches, or a feature with a backend part and a frontend part on different branches. Four commits on four branches, one task.

To support both, a task would be identified by an ID stored in each commit (a trailer such as "Task: payment-gateway"), not by a commit range. That ID survives rebase and cherry-pick, so Git could answer "which commits belong to this task?" and "which branches has it landed on?"

What this isn't

This doesn't replace branches. Branches give isolation: your unfinished work doesn't affect anyone until you merge it. Tasks only give grouping. Larger teams that need review before code lands would still use branches and PRs, and tasks could work alongside them.

I know related things exist: --no-ff merges read back with --first-parent, commit trailers, GitButler's virtual branches, and Jujutsu's change IDs. My feeling is that none of them make "this is one task" a simple, first-class concept.

This is an early concept, and I'm not sure it beats branches in every case, but I think keeping the mental model this simple is worth exploring. I'm happy to build a prototype first if that's the preferred path.

Thanks,
Hamdan Khubaib (GitCoder052023)
Technical Details
Message-ID: <0AB3AB52-1F14-4C72-ABE8-46B635F463CE@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76494-linux-kernel-git=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76494-linux-kernel-git=dewy.ru
From: hamdankhubaib959@gmail.com (Hamdan)
Newsgroups: linux.kernel.git
Subject: [RFC] git task: grouping commits into named units of work
Date: Fri, 27 Nov 2026 05:14:44 +0530
Organization: Usenet Network
Message-ID: <0AB3AB52-1F14-4C72-ABE8-46B635F463CE@gmail.com>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="595533"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:p0qkqKxYSS23PyudPY0jfVnn/+8= sha256:6P9tHeYm7RZaK5hvuLzQ7l2+4afK50+NfRK4XdzI8dg=
	sha1:ckkBg40s8BtmXOCDWs1c8h6kxxQ= sha256:Ijc/DjJfHwtVbNY/9/1y8W4WPk3+PIGhniZPTSkaGkg=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 874E9125F0D; Fri, 27 Nov 2026 02:45:18 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Zla56RL4w8Wz;
	Fri, 27 Nov 2026 02:45:15 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76494-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D1BBC125F04; Fri, 27 Nov 2026 02:45:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id C2A4035692; Thu, 26 Nov 2026 23:45:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795736703;
	b=EWl4cBLLBqC5Z6cLYbnEfmDZZO2tDpZD4t4xmyhVIGQFp8rTE4SKjR0PbxpjlMtDkHdf
	 D5PFd4lCsMFTjY4Y6HyjpzSHokV15wOuKm8X4GjFgrCoXsDrDuk1udpYYwJ9Y2p4J3DE4
	 V/uCysUsXs/vjZRqwU1Yys9eXMpU3/hYs4l7By3KqrWCg1tKSGEgoEt8Qk2e5UuF4E74k
	 fFPkxAQB2QVy3WaX369FjKdtpVIXqd30YJEO73fL6OX5CcV63luySnh7wP98HKTNUQD5+
	 FcLaWGGD/AQqvoko4o8kBlDk4X0NgZDJ8IK6bOng0j2frPYdlfC45WyfOxG+WEiiQqg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795736703;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:Content-Type:Content-Transfer-Encoding:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:Mime-Version:Subject:Message-Id:Date:To:
	 X-Mailer;
	bh=oMileMMJ1mlQnYPneaILxfJhRflM0z/3GdDLl2ipYX4=;
	b=0HHQT6HsgZ9GA8e4GQr5uxu96mzgivLSGZx3TrEifZb4qjZxD+zO1SrVy/Hb81xEid4G
	 Xqg8ioUSl83IJqFJ8v7rCILEk7UBBm8Uwb3gWjhV6ErNG1wunJzym3I17G1Htom0vLNEB
	 3uqX0g7oQPz4aBcfGSE/qrF1tkI4usRDHurfYbSmle9BzfQFjdKZjeQx0AA177YxKVNnz
	 9+RbIWh0j78DG5zStFQdKA4KG3z2+lPsqhjrgbQMITqPhZnU6i3Q4TsHVFgwdCaIb9Xp1
	 pdInpEZijySn2D14p0SL9ZAUIypIcRD3+V2Eakh3NhxPL9BKagqjjPQobsNmKWBD61w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uINkduwD;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 99C5F606A32C;
	Thu, 26 Nov 2026 23:45:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uINkduwD
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.181
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795736702;
	b=3auzTYaz+vMJpPdoWbGJMy7H5lgQbWbiCsugyRsHhgGP3sAeevZU3AuDBPifSmiK9T9y
	 trPr2GHW9wafhzJFS9hCueZ8c4ZFBIQgj1Kz+OvILTKdUzi26iQJ8NdnJowLiq3yWqf+F
	 puLHQtB9zf1J84eBhpED5oPLgbFFAgXagK8gKZbp0o3voTHM+nhjWt6lg7+Yen01Ob7YJ
	 FhSuI8sFma9B9pIkJ3A9U2kY2Ldvhw+1k/hIvo4cHejzEuEpOAUkTMho98Lke2IQukZgx
	 HUbF3rupmeAbqZywLCbnvAJW9oHgIxnPZzppqtNSDq0CsMypRUKOCl8zDry4SVFkxLA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795736702;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Content-Type:
	 Content-Transfer-Encoding:Mime-Version:Subject:Message-Id:Date:To:
	 X-Mailer;
	bh=oMileMMJ1mlQnYPneaILxfJhRflM0z/3GdDLl2ipYX4=;
	b=AiKgDKvoJkjnpMfLer5PSaToSCVGfZq7bACRHb+QxbJLl6Tp1CDLEaR1kU0VHzL6eGHb
	 78+NLIHHqw3y+a5vDWSD3Qjm3Al/zvxUgVdaWhpEfefsxWH2NG1gntnARXQ7lnUaWgXLP
	 NBOko5I1EJR9/XnwJrR6y96BeU/qMWO0GrPqLNQT08ZE/VfWPcaBu0E/DPCoVx8E5MxPO
	 GGsOo+5UwLiGB3EFokmLSlCiZkBMh94kDzKhZV+QC5DSTJRP6wN4UW55fnfZfL3m5e6tb
	 G9TYtzyvdAo7nukHuEQKToyxfXS4lJC5ny93LWsMtJ540SEVsD6CBrTNTMAwwH6/mPg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=uINkduwD;
	arc=none smtp.remote-ip=209.85.215.181
X-Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56545606A31C
	for <git@vger.kernel.org>; Thu, 26 Nov 2026 23:45:02 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 56545606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-cde0daf3a2aso3243301a12.3
        for <git@vger.kernel.org>; Thu, 26 Nov 2026 15:45:02 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795736702; x=1796341502; darn=vger.kernel.org;
        h=to:date:message-id:subject:mime-version:content-transfer-encoding
         :content-type:from:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=oMileMMJ1mlQnYPneaILxfJhRflM0z/3GdDLl2ipYX4=;
        b=uINkduwDDFkbj19jCn6rp5/btTk8Q9SZaYxSZSGNbGImxX+N1rpwkMXRbll0XIiIUQ
         9hDKetEm7i9APpO4KXmHWnICAfvvw1218wzz9Xog/J2Ld0vy2trWp0TU19szub4dR1DH
         WJ5+T6hKu99EUcQwTRZNcdAK7Ia1H8ZW+8pKibgHebiiSb2InfjX1r2iEkGXBY4t6pB6
         1NwcWGDvVBqLSJztYURqsJDrAHO5WdtkMI3pPoUYAhbi1NVrwwDsTaMbikgJB+X+1/sr
         g60k6D03Ee2OL9psnphm7P7quEfgLid2Cm8roHx+ZOiQUOkk/rgzqXeEQoBuCHW4jUGK
         sYYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795736702; x=1796341502;
        h=to:date:message-id:subject:mime-version:content-transfer-encoding
         :content-type:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=oMileMMJ1mlQnYPneaILxfJhRflM0z/3GdDLl2ipYX4=;
        b=2k1xFJHbon8y02xE7c70PJoGtiQ/mNcMwwoRQbUxJJVB5DARlIi55aeS7AcsyOoaKy
         zoaVKGuZ3KV8B9ziXRZXYbDXLpeeHVLjG8ELTk1h8K40jkPX/DHeGZMG69MQjvmuBA7u
         wY3rnT+rYzpumhR/JCiCV+0uwptUZ6lG/cerOzHz03/0Sh1f63F1HNIoxbIN37p2buFS
         6ZBNZLGXNbupZZhzctCjBjmAXABakxGZQry1DxgubltxC+UoxywjTxzoIzgwypWAsKKd
         wKJM0XzAQ+T1TAdrE3kaO03CpzwRf1U+ndwKOlwJE8MKBFMwzrRLK4TT2RvTuQODpUYY
         D24w==
X-Gm-Message-State: APuU4Z/5hdjx8tMNPr3phvJg1IlDSeYoq31qmkZREHFTiJmu53IfszN1
	GiRgchq+1HIZQf81c2YPZuJdETku0hOwbcopm0HGwNipIgfaetC+f/DRJvptK1agTQQ=
X-Gm-Gg: AZFdTZesaxfo8Z8LLMiuaf8hpOVKjNmZnh1hD4uueKsB8A+j7egFQyAc6ek+fqw3yoh
	WEsMd6yx4kI/xduK/KPIG0knodlu7keOgB7xFT1cxUMUXDMqdSKcOyS90AIAWFLlzcRzivDL0cS
	RZnxZCCRrvrpjPwpm9080wGjyigln66S+qHZFXFET1aSzr+iah7tTFZ3NCreMI2I3+kl3WWZfg0
	cQ5+1w1V8jL53l6M/V+hPSLLwy7wMlWfeU0YVy6cwaJV08SsSqWI20IzW3aRF4tTrHxISwGEfXz
	HB1gHxceSDzmZ9gRRxgjWYDYoZTfjnp8oK+65uM7TtR8YikiAPsSSNDtkg7r0LW9kJsp/qxMpFa
	Pg/aJ4rvMMmzfvU6uC+9O5t0dNQTyJ5Gtw1tYYd3CyCNXBW1PeKuQ4u2BsPA3T6jlV4Wt9BCuPh
	sRtS0oAAZTPWq2ppOK407wdFl7V8ho9xP4vInCEKVPFzXWJS4SdC35ULOWLneFTmYtvyBmpMhhd
	UNGYR8WEdlEzq6n1RllmSwSkPsvKhjMeHxVp6WEcj6UdKBSoEhmRS1r/XeBRn2LjU87xyQuwyWo
	q/MUZt6R8/SPvYm5PnDz04zcHZzIsRC2F9pdAEABDpaX1DJUi9wWm87JYA8=
X-Received: by 2002:a17:90b:224e:b0:3a0:d265:3647 with SMTP id 98e67ed59e1d1-3b41c7d6084mr20176356a91.8.1795736701501;
        Thu, 26 Nov 2026 15:45:01 -0800 (PST)
X-Received: from smtpclient.apple ([110.235.218.2])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b48b41928esm25071530a91.9.2026.11.26.15.45.00
        for <git@vger.kernel.org>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 26 Nov 2026 15:45:01 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Mailer: Apple Mail (2.3901.100.1.1.12)