From: Konstantin Khomoutov <kostix@bswap.ru>
To: Loredana Tralli <loredana.tralli@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Ask for feature on git
Date: Tue, 3 Sep 2024 20:04:38 +0300 [thread overview]
Message-ID: <20240903170438.nhcnojx6upsxsj6d@carbon> (raw)
In-Reply-To: <CAEO06G+SLu-LAe0mkR3ZbaL0MZpBm9PhntQjF-YwVPMtnuH=rQ@mail.gmail.com>
On 9/3/24 17:18, Loredana Tralli wrote:
> Is it possible to have a git command to find out which is the parent branch?
Please try to specify what you consider to be a "parent branch" in your
workflow. The problem is that there are multiple things in Git which may match
what you are asking for. Even better would be to try to explain your original
problem you're struggling with - which made you want the feature being
discussed.
Still, please consider that in Git, commits do not belong to any
branch: each commit has metadata but that metadata do not record the name of
the branch (if any!) which was checked out at the time the commit was created
(on someone's computer).
next prev parent reply other threads:[~2024-09-03 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 8:18 Ask for feature on git Loredana Tralli
2024-09-03 13:33 ` Simon Richter
2024-09-03 17:04 ` Konstantin Khomoutov [this message]
2024-09-04 13:59 ` Loredana Tralli
2024-09-04 14:55 ` Konstantin Khomoutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240903170438.nhcnojx6upsxsj6d@carbon \
--to=kostix@bswap.ru \
--cc=git@vger.kernel.org \
--cc=loredana.tralli@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox