Jeff King writes:
> From: Dave Olszewski
>
> Signed-off-by: Dave Olszewski
> ---
> Again, this is just a preview. Dave should send the final when he thinks
> it is good.
Dave?
I do not see anything wrong with this version that builds on top of
the previous 2 clean-up. Personally I find that
Dongcan Jiang writes:
> This patch is just for discusstion. An option --deepen is added to
> 'git fetch'. When it comes to '--deepen', git should fetch N more
> commits ahead the local shallow commit, where N is indicated by
> '--depth=N'. [1]
>
> e.g.
>
>> (upstream)
>> ---o---o---o---A---B
>
Sveinung Kvilhaugsvik writes:
>> A bigger question is why this change is made to gitk completion. If
>> this completion were useful for "gitk", wouoldn't it be equally
>> useful for "git log"?
> I must admit that I didn't know that "git log" could display the
> content of a stashed change. After
Adrien Schildknecht writes:
> Add regexp based on the "Shell Command Language" specifications.
> Because of the lax syntax of sh, some corner cases may not be
> handled properly.
>
> Signed-off-by: Adrien Schildknecht
> ---
Those of you who helped in the first round of review, any comments,
"Th
There are several utility functions (hashcmp and friends) that are used
for comparing object IDs (SHA-1 values). Using these functions, which
take pointers to unsigned char, with struct object_id requires tiresome
access to the sha1 member, which bloats code and violates the desired
encapsulation.
Convert some magic numbers to the new GIT_SHA1 constants.
Signed-off-by: brian m. carlson
---
builtin/patch-id.c | 34 +-
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/builtin/patch-id.c b/builtin/patch-id.c
index 77db873..ba34dac 100644
--- a/bu
Signed-off-by: brian m. carlson
---
archive.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/archive.c b/archive.c
index 96057ed..d37c41d 100644
--- a/archive.c
+++ b/archive.c
@@ -101,7 +101,7 @@ static void setup_archive_check(struct git_attr_check
Convert some constants to GIT_SHA1_HEXSZ.
Signed-off-by: brian m. carlson
---
bisect.c | 40
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/bisect.c b/bisect.c
index 8c6d843..10f5e57 100644
--- a/bisect.c
+++ b/bisect.c
@@ -15,7 +15,7 @@
Signed-off-by: brian m. carlson
---
builtin/apply.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 65b97ee..c2c8f39 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -208,7 +208,7 @@ struct patch {
struct patc
Also, convert a constant to GIT_SHA1_HEXSZ.
Signed-off-by: brian m. carlson
---
combine-diff.c | 56
diff-lib.c | 10 +-
diff.h | 5 +++--
tree-diff.c| 10 +-
4 files changed, 41 insertions(+), 40 deletions
Convert struct commit_graft and necessary local parts of commit.c.
Also, convert several constants based on the hex length of an SHA-1 to
use GIT_SHA1_HEXSZ, and move several magic constants into variables for
readability.
Signed-off-by: brian m. carlson
---
commit.c | 56 ++
Signed-off-by: brian m. carlson
---
bulk-checkin.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bulk-checkin.c b/bulk-checkin.c
index 0c4b8a7..c80e503 100644
--- a/bulk-checkin.c
+++ b/bulk-checkin.c
@@ -24,7 +24,7 @@ static struct bulk_checkin_state {
stati
Signed-off-by: brian m. carlson
---
archive-zip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/archive-zip.c b/archive-zip.c
index 4bde019..b669e50 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -427,12 +427,12 @@ static void write_zip_trailer(const unsigned char *sh
This is a patch series to convert some of the relevant uses of unsigned
char [20] to struct object_id.
The goal of this series to improve type-checking in the codebase and to
make it easier to move to a different hash function if the project
decides to do that.
There should be no functional chang
Many places throughout the code use "unsigned char [20]" to store object IDs
(SHA-1 values). This leads to lots of hardcoded numbers throughout the
codebase. It also leads to confusion about the purposes of a buffer.
Introduce a structure for object IDs. This allows us to obtain the benefits
of
On Wed, Mar 11, 2015 at 01:35:06PM -0700, Junio C Hamano wrote:
Michael Haggerty writes:
4. We continue to support working with SHA-1s declared to be (unsigned
char *) in some performance-critical code, even as we migrate most other
code to using SHA-1s embedded within a (struct object_id). Thi
--
Kedves: Webmail Előfizető
Felhívjuk figyelmét, hogy az e-mail fiók meghaladta
tárolókapacitás. Ön nem tud küldeni és fogadni e-maileket és a
e-mail fiókja törlésre kerül a szerverünkről. A probléma
elkerülése érdekében,
Kattintson ide frissítse a számla.
http://mailupgafsd.jigsy.com/
Kösz
On Fri, Mar 13, 2015 at 2:18 PM, Sudhanshu Shekhar
wrote:
> Add following test cases:
> 1) Confirm error message when git reset is used with no previous branch
> 2) Confirm git reset - works like git reset @{-1}
> 3) Confirm "-" is always treated as a commit unless the -- file option
> is specifie
On Fri, Mar 13, 2015 at 2:18 PM, Sudhanshu Shekhar
wrote:
> git reset '-' will reset to the previous branch. To reset a file named
> "-" use either "git reset ./-" or "git reset -- -".
>
> Change error message to treat single "-" as an ambigous revision or
> path rather than a bad flag.
>
> Helped
On Fri, Mar 13, 2015 at 9:04 AM, Dongcan Jiang wrote:
> This patch is just for discusstion. An option --deepen is added to
> 'git fetch'. When it comes to '--deepen', git should fetch N more
> commits ahead the local shallow commit, where N is indicated by
> '--depth=N'. [1]
> [...]
> Of course, a
Add following test cases:
1) Confirm error message when git reset is used with no previous branch
2) Confirm git reset - works like git reset @{-1}
3) Confirm "-" is always treated as a commit unless the -- file option
is specified
4) Confirm "git reset -" works normally even when a file named @{-1
git reset '-' will reset to the previous branch. To reset a file named
"-" use either "git reset ./-" or "git reset -- -".
Change error message to treat single "-" as an ambigous revision or
path rather than a bad flag.
Helped-by: Junio C Hamano
Helped-by: Eric Sunshine
Helped-by: Matthieu Moy
Thank you for the review.
I now understand that the commit message should have provided way more
context about my use case.
I used Bazaar almost exclusively until about a year ago. Git's ability
to put stuff in the index without committing and the power of "git
rebase" covers many of the use case
On Fri, Mar 13, 2015 at 2:36 AM, Torsten Bögershausen wrote:
> On 03/13/2015 08:08 AM, chen chang wrote:
>>
>> I want to use make file auto generate the revision number of working
>> copy from the tag name in git.
>
Maybe you're looking for git describe?
http://git-scm.com/docs/git-describe
--
To
--
Kedves: Webmail Előfizető
Felhívjuk figyelmét, hogy az e-mail fiók meghaladta
tárolókapacitás. Ön nem tud küldeni és fogadni e-maileket és a
e-mail fiókja törlésre kerül a szerverünkről. A probléma
elkerülése érdekében,
Kattintson ide frissítse a számla.
http://mailhua.jigsy.com
Köszönöm.
This patch is just for discusstion. An option --deepen is added to
'git fetch'. When it comes to '--deepen', git should fetch N more
commits ahead the local shallow commit, where N is indicated by
'--depth=N'. [1]
e.g.
> (upstream)
> ---o---o---o---A---B
>
> (you)
> A---B
Af
On Tue, Mar 10, 2015 at 6:10 PM, Sudhanshu Shekhar
wrote:
> Add following test cases:
>
> 1) Confirm error message when git reset is used with no previous branch
> 2) Confirm git reset - works like git reset @{-1}
> 3) Confirm "-" is always treated as a commit unless the -- file option is
> speci
On Tue, Mar 10, 2015 at 6:03 PM, Sudhanshu Shekhar
wrote:
> [PATCH v3 1/2] reset: enable '-' short-hand for previous branch
This should be v4, I think, not v3.
> git reset -' will reset to the previous branch. It will behave similar
> to @{-1} except when a file named '@{-1}' is present.
The wa
On 03/13/2015 08:08 AM, chen chang wrote:
I want to use make file auto generate the revision number of working
copy from the tag name in git.
You should have the tag name, as it is set up before running make,
and probably feed into both "git checkout tagXXYYXX" and the Makefile.
If you want the
Junio C Hamano wrote:
> Subject: SubmittingPatches: nudge to use send-email
>
> In step "(4) Sending your patches", we instruct users to do an
> inline patch, avoid breaking whitespaces, avoid attachments,
> use [PATCH v2] for second round, etc., all of which send-email
> knows how to do.
The ide
I want to use make file auto generate the revision number of working
copy from the tag name in git.
So as questioned in subject, I have tried to use 'git describe', it
works well in most case, and the output is good match my requirement.
Problem is: when there are multiple tags on same one commit,
Cody Taylor writes:
> Anyway, this brings up the point that `git send-email` should at least
> get a mention in the "Documentation/SubmittingPatches" file. Likely
> the best place for this is a paragraph after `git format-patch` is
> mentioned in section 4 ("Sending your patches.").
[removed oth
32 matches
Mail list logo