Re: [StGIT PATCH] Implement a new patch identification scheme and id command

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Catalin Marinas
Date: Monday, June 16, 2008 - 3:00 am

2008/6/14 Karl Hasselström <kha@treskal.com>:

I think the initial idea belongs to Yann.


OK, I was thinking about that. I'll convert it to git_commit(...) and
return a commit since I think it's only "stg id" that needs the SHA1
value.


I thought about removing them when we convert the commands to the new
infrastructure. In the meantime, I can rewrite git_id to use
git_commit directly. The parse_rev is only used by the 'pick' command
(and git_id). I'll have a look at these functions.


I can swap them and have the patch as preferred. People can be more
precise if they want the branch or tag by passing heads/... or
tags/...


No problem with the option but I would like to keep the branch
argument to git_sha1. There might be cases where it is used like
picking multiple patches and I only specify one -B option to 'pick'. I
don't want to build the qualified patch name for every patch. I can
change the prototype of git_sha1 though (to git_commit):

def git_commit(name, repository, branch = None):

and branch needs to be passed explicitly and used instead of the
default one (when the patch name doesn't contain any).


The id format is new.

-- 
Catalin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[StGIT PATCH] Implement a new patch identification scheme ..., Catalin Marinas, (Sat Jun 14, 12:28 am)
Re: [StGIT PATCH] Implement a new patch identification sch ..., Catalin Marinas, (Mon Jun 16, 3:00 am)