On Sun, Mar 2, 2014 at 4:37 AM, Sun He wrote:
> Replacing memcpy with hashcpy is more directly and elegant.
A better explanation is that the change takes advantage of the
abstraction provided by hashcpy() rather than hardcoding knowledge
about a particular hash representation.
> Leave ppc/sha1
Replace with skip_prefix(), which uses the inbuilt function
strcmp() to compare.
Other Places were this can be implemented:
commit.c : line 1117
commit.c : line 1197
Signed-off-by: Karthik Nayak
---
commit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commit.c b/commit
On Sun, Mar 2, 2014 at 3:31 AM, Sun He wrote:
> The general rule is if cache.h or git-compat-util.h is included,
> it is the first #include.
> As builtin.h starts with git-compat-util.h, files that start with builtin.h
> are not changed.
Minor: Odd one-space indentation on each line of commit
On Sat, Mar 1, 2014 at 9:29 PM, Sun He wrote:
> Signed-off-by: Sun He
> Helped-by: Eric Sunshine
> Helped-by: Michael Haggerty
> ---
>
> This patch has assumed that you have already fix the bug of
> tmpname in builtin/pack-objects.c:write_pack_file() warning()
>
>
> builtin/pack-objects.c | 15
On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy wrote:
> This variable is intended to support multiple working directories
> attached to a repository. Such a repository may have a main working
> directory, created by either "git init" or "git clone" and one or more
> linked working directorie
Signed-off-by: Dmitry S. Dolzhenko
---
attr.c | 7 +--
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/attr.c b/attr.c
index 8d13d70..734222d 100644
--- a/attr.c
+++ b/attr.c
@@ -338,12 +338,7 @@ static void handle_attr_line(struct attr_stack *res,
a = parse_attr_line(lin
Signed-off-by: Dmitry S. Dolzhenko
---
dir.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dir.c b/dir.c
index 98bb50f..4ae38e4 100644
--- a/dir.c
+++ b/dir.c
@@ -1341,10 +1341,7 @@ static struct path_simplify *create_simplify(const char
**pathspec)
for (nr =
Use ALLOC_GROW() instead inline code in
add_commit_info() and read_one_reflog()
Signed-off-by: Dmitry S. Dolzhenko
---
reflog-walk.c | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/reflog-walk.c b/reflog-walk.c
index b2fbdb2..2899729 100644
--- a/reflog-walk.c
+
Signed-off-by: Dmitry S. Dolzhenko
---
replace_object.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/replace_object.c b/replace_object.c
index cdcaf8c..843deef 100644
--- a/replace_object.c
+++ b/replace_object.c
@@ -36,12 +36,8 @@ static int register_replace_object
Signed-off-by: Dmitry S. Dolzhenko
---
patch-ids.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/patch-ids.c b/patch-ids.c
index bc8a28f..bf81b92 100644
--- a/patch-ids.c
+++ b/patch-ids.c
@@ -83,10 +83,7 @@ static struct patch_id *add_commit(struct commit *commit,
Use ALLOC_GROW() instead inline code in
locate_rename_dst() and register_rename_src()
Signed-off-by: Dmitry S. Dolzhenko
---
diffcore-rename.c | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 9b4f068..fbf3272 100644
---
Use ALLOC_GROW() instead inline code in
diffstat_add() and diff_q()
Signed-off-by: Dmitry S. Dolzhenko
---
diff.c | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/diff.c b/diff.c
index e800666..aebdfda 100644
--- a/diff.c
+++ b/diff.c
@@ -1361,11 +1361,7 @@ stati
Signed-off-by: Dmitry S. Dolzhenko
---
cache-tree.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/cache-tree.c b/cache-tree.c
index 0bbec43..30149d1 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -75,11 +75,7 @@ static struct cache_tree_sub *find_subtree(struct cache_t
Signed-off-by: Dmitry S. Dolzhenko
---
commit.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/commit.c b/commit.c
index 6bf4fe0..e004314 100644
--- a/commit.c
+++ b/commit.c
@@ -147,12 +147,8 @@ int register_commit_graft(struct commit_graft *graft, int
ignore_dups)
Signed-off-by: Dmitry S. Dolzhenko
---
bundle.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/bundle.c b/bundle.c
index e99065c..1388a3e 100644
--- a/bundle.c
+++ b/bundle.c
@@ -14,11 +14,7 @@ static const char bundle_signature[] = "# v2 git bundle\n";
static void add_
Signed-off-by: Dmitry S. Dolzhenko
---
builtin/pack-objects.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index c733379..0ffad6f 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -1213,12 +1213,9 @@
Dmitry S. Dolzhenko (11):
builtin/pack-objects.c: use ALLOC_GROW() in check_pbase_path()
bundle.c: use ALLOC_GROW() in add_to_ref_list()
cache-tree.c: use ALLOC_GROW() in find_subtree()
commit.c: use ALLOC_GROW() in register_commit_graft()
diff.c: use ALLOC_GROW()
diffcore-rename.c: use
to avoid a magic code of 11.
Helped-by: Sun He
Helped-by: Eric Sunshine
Helped-by: Jacopo Notarstefano
Signed-off-by: Guanglin Xu
---
This is an implementation of the idea#2 of GSoC 2014 microproject.
branch.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bran
2014-03-03 13:39 GMT+08:00 He Sun :
> 2014-03-03 10:24 GMT+08:00 Guanglin Xu :
>> to avoid a magic code of 11.
>>
>> Helped-by: Eric Sunshine
>> Helped-by: Jacopo Notarstefano
>> Signed-off-by: Guanglin Xu
>> ---
>>
>> This is an implementation of the idea#2 of GSoC 2014 microproject.
>>
>> bra
2014-03-03 10:24 GMT+08:00 Guanglin Xu :
> to avoid a magic code of 11.
>
> Helped-by: Eric Sunshine
> Helped-by: Jacopo Notarstefano
> Signed-off-by: Guanglin Xu
> ---
>
> This is an implementation of the idea#2 of GSoC 2014 microproject.
>
> branch.c | 2 +-
> 1 file changed, 1 insertion(+),
2014-03-03 10:24 GMT+08:00 Guanglin Xu :
> to avoid a magic code of 11.
>
> Helped-by: Eric Sunshine
> Helped-by: Jacopo Notarstefano
> Signed-off-by: Guanglin Xu
> ---
>
> This is an implementation of the idea#2 of GSoC 2014 microproject.
>
> branch.c | 2 +-
> 1 file changed, 1 insertion(+),
Helped-by: Eric Sunshine
Signed-off-by: Siddharth Goel
---
Added a space after colon in the subject as compared to previous
patch [PATCH v2].
[PATCH v2]: http://thread.gmane.org/gmane.comp.version-control.git/243150
git-compat-util.h | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-
to avoid a magic code of 11.
Helped-by: Eric Sunshine
Helped-by: Jacopo Notarstefano
Signed-off-by: Guanglin Xu
---
This is an implementation of the idea#2 of GSoC 2014 microproject.
branch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/branch.c b/branch.c
index 723a36
2014-03-03 6:56 GMT+08:00 Eric Sunshine :
> Thanks for the submission. Comments below to give you a taste of the
> Git review process...
>
> On Sun, Mar 2, 2014 at 10:55 AM, Guanglin Xu wrote:
>> Change install_branch_config() to use skip_prefix() and make it conform to
>> the usage of previous s
On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy wrote:
> We allow the user to relocate certain paths out of $GIT_DIR via
> environment variables, e.g. GIT_OBJECT_DIRECTORY, GIT_INDEX_FILE and
> GIT_GRAFT_FILE. All callers are not supposed to use git_path() or
"All callers are not" is unusual
2014-03-03 2:42 GMT+08:00 Eric Sunshine :
> On Sun, Mar 2, 2014 at 2:30 AM, Sun He wrote:
>> 'pack_tmp_name' is the subject of the utime() check, so report it in the
>> warning, not the uninitialized 'tmpname'
>>
>> Signed-off-by: Sun He
>> ---
>>
>> Changing the subject and adding valid informa
On Mon, Feb 24, 2014 at 8:44 AM, Paul Lotz wrote:
> David,
>
> Thanks for the helpful reply.
>
> As you suggested, I modified the .gitconfig file to have:
> [difftool "test"]
> cmd = echo \"$LOCAL\" \"$REMOTE\"
>
> and ran
> $ git difftool -t test
>
> An example of the the resulting consol
On Mon, Mar 3, 2014 at 7:02 AM, Eric Sunshine wrote:
> On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy
> wrote:
>> In the previous patch, git_snpath() is modified to allocate a new
>> strbuf buffer because vsnpath() needs that. But that makes it awkward
>> because git_snpath() receives a pr
On Mon, Mar 3, 2014 at 2:51 AM, Eric Sunshine wrote:
> On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy
> wrote:
>> We've been avoiding PATH_MAX whenever possible. This patch makes
>> get_pathname() return a strbuf and updates the callers to take
>> advantage of this. The code is simplified
On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy wrote:
> In the previous patch, git_snpath() is modified to allocate a new
> strbuf buffer because vsnpath() needs that. But that makes it awkward
> because git_snpath() receives a pre-allocated buffer from outside and
> has to copy data back. R
On Fri, Feb 28, 2014 at 11:38 PM, Robert Dailey
wrote:
> Is there a way to change color scheme in msysgit without going through
> the Properties >> Colors settings?
>
> Reason I ask is because I share the same HOME directory and .bashrc
> file between msysgit and cygwin, and it'd be nice to use th
Thanks for the submission. Comments below to give you a taste of the
Git review process...
On Sun, Mar 2, 2014 at 10:55 AM, Guanglin Xu wrote:
> Change install_branch_config() to use skip_prefix() and make it conform to
> the usage of previous starts_with(). This is because the proper usage of
On Sun, Mar 2, 2014 at 2:19 PM, Alberto wrote:
> From: Alberto Corona
>
> Replaced memcpy with hashcpy where lengts in memcpy
> are already defined.
This doesn't really explain what this patch is attempting to do. What
does "lengths already defined" mean? It's also misleading if taken
literally
Hi,
I don't know if this really counts as a bug but it is a little
annoying from a user experience point of view.
We're using an applypatch-msg hook to check that certain things
(reviewer, bug entry etc) are recorded correctly in commit messages.
My expectation is that if our applypatch-msg hook
On Sun, Mar 2, 2014 at 2:34 AM, Faiz Kothari wrote:
> Signed-off-by: Faiz Kothari
Sign off below commit message.
> Used strbuf.c:strbuf_write_or_die() instead of
> write_or_die.c:write_or_die() at relevant places.
Imperative: "Use strbuf..."
Otherwise, the patch looks okay.
> ---
> builtin/
On Sun, Mar 2, 2014 at 2:34 AM, Faiz Kothari wrote:
> Signed-off-by: Faiz Kothari
Place your sign off below the commit message.
> Introduced a new function strbuf.c:strbuf_write_or_die()
> to the strbuf family of functions. Now use this API instead
> of write_or_die.c:write_or_die()
You want t
Most distributions don't require Term::Readkey as dependency,
leaving the user to wonder why the setting doesn't work.
Signed-off-by: Simon Ruderich
---
Documentation/config.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/config.txt b/Documentation/config.tx
On Sat, Mar 1, 2014 at 7:12 AM, Nguyễn Thái Ngọc Duy wrote:
> We've been avoiding PATH_MAX whenever possible. This patch makes
> get_pathname() return a strbuf and updates the callers to take
> advantage of this. The code is simplified as we no longer need to
> worry about buffer overflow.
>
> Sig
From: "Alberto"
From: Alberto Corona
Replaced memcpy with hashcpy where lengts in memcpy
s/lengts/lengths/
are already defined.
Signed-off-by: Alberto Corona
---
bundle.c| 2 +-
grep.c | 2 +-
refs.c | 2 +-
sha1_name.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
From: Alberto Corona
Replaced memcpy with hashcpy where lengts in memcpy
are already defined.
Signed-off-by: Alberto Corona
---
bundle.c| 2 +-
grep.c | 2 +-
refs.c | 2 +-
sha1_name.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/bundle.c b/bundle.c
i
On Sun, Mar 2, 2014 at 10:03 AM, Siddharth Goel
wrote:
> Helped-by: Eric Sunshine
> Signed-off-by: Siddharth Goel
> ---
> Thanks a lot Eric for your valuable comments. Please let me know if there is
> anything else which needs to be modified in this patch.
Other than suggesting that you insert
On Sun, Mar 2, 2014 at 2:30 AM, Sun He wrote:
> 'pack_tmp_name' is the subject of the utime() check, so report it in the
> warning, not the uninitialized 'tmpname'
>
> Signed-off-by: Sun He
> ---
>
> Changing the subject and adding valid information as tutored by
> Eric Sunshine.
> Thanks to h
Hi Jacopo,
Thanks for your comments. I just update this PATCH as v2. I appreciate
more comments from you and others in the new thread.
Regards,
Guanglin
2014-03-02 22:01 GMT+08:00 Jacopo Notarstefano :
> The part about this being a GSoC microproject should go below the
> three dashes, since it'
Change install_branch_config() to use skip_prefix() and make it conform to the
usage of previous starts_with(). This is because the proper usage of
skip_prefix() overrides the functionality of starts_with(). Thorough
replacements may finally remove the starts_with() function and reduce code
re
Eric Sunshine writes:
> On Sun, Mar 2, 2014 at 3:53 AM, Eric Sunshine wrote:
>> On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy
>> wrote:
>>> This is "rev-list style", where people can do "git rev-list -3" in
>>> addition to "git rev-list HEAD~3". A lot of commands are driven by the
>>> r
Helped-by: Eric Sunshine
Signed-off-by: Siddharth Goel
---
Thanks a lot Eric for your valuable comments. Please let me know if there is
anything else which needs to be modified in this patch.
git-compat-util.h | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/git-compa
On 01.03.2014, at 00:26, Conley Owens wrote:
> $ git --version # This is just the git from MacPorts
> git version 1.8.5.5
> $ sw_vers
> ProductName:Mac OS X
> ProductVersion: 10.8.5
> BuildVersion: 12F45
I cannot reproduce this, neither with 1.8.5.5 nor with 1.9.0. I am also running
Mac
The part about this being a GSoC microproject should go below the
three dashes, since it's not information that needs to
be recorded in the codebase.
On Sun, Mar 2, 2014 at 12:52 PM, Guanglin Xu wrote:
> GSoC2014 Microproject: according to the idea#2 for microprojects, change
> install_branch_c
GSoC2014 Microproject: according to the idea#2 for microprojects, change
install_branch_config() to use skip_prefix() and make it conform to the usage
of previous starts_with().
Signed-off-by: Guanglin Xu
---
branch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/branch.c
Replacing memcpy with hashcpy is more directly and elegant.
Leave ppc/sha1.c alone, as it is an isolated component.
Pull cache.h(actually ../cache.h) in just for one memcpy
there is not proper.
Helped-by: Michael Haggerty
Helped-by: Duy Nguyen
Signed-off-by: Sun He
---
PATCH v2 leave ppc
On Sun, Mar 2, 2014 at 4:04 AM, Eric Sunshine wrote:
> On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy
> wrote:
>> "git rebase -e XYZ" is basically the same as
>>
>> EDITOR="sed -i '1s/pick XYZ/edit XYZ/' $@" \
>> git rebase -i XYZ^
>>
>> In English, it prepares the todo list for you to edi
On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy wrote:
> "git rebase -e XYZ" is basically the same as
>
> EDITOR="sed -i '1s/pick XYZ/edit XYZ/' $@" \
> git rebase -i XYZ^
>
> In English, it prepares the todo list for you to edit only commit XYZ
> to save your time. The time saving is only si
On Sun, Mar 2, 2014 at 3:53 AM, Eric Sunshine wrote:
> On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy
> wrote:
>> This is "rev-list style", where people can do "git rev-list -3" in
>> addition to "git rev-list HEAD~3". A lot of commands are driven by the
>> revision machinery and also acce
On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy wrote:
> This is "rev-list style", where people can do "git rev-list -3" in
> addition to "git rev-list HEAD~3". A lot of commands are driven by the
> revision machinery and also accept this form. This addition to rebase
> is just for convenienc
On Sun, Mar 2, 2014 at 3:37 PM, Eric Sunshine wrote:
> On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy
> wrote:
>> This is "rev-list style", where people can do "git rev-list -3" in
>> addition to "git rev-list HEAD~3". A lot of commands are driven by the
>> revision machinery and also acce
On Sat, Mar 1, 2014 at 9:53 PM, Nguyễn Thái Ngọc Duy wrote:
> This is "rev-list style", where people can do "git rev-list -3" in
> addition to "git rev-list HEAD~3". A lot of commands are driven by the
> revision machinery and also accept this form. This addition to rebase
> is just for convenienc
The general rule is if cache.h or git-compat-util.h is included,
it is the first #include.
As builtin.h starts with git-compat-util.h, files that start with builtin.h
are not changed.
Helped-by: Duy Nguyen
Helped-by: Eric Sunshine
Signed-off-by: Sun He
---
"PATCH v3" fix the position of i
2014-03-02 12:34 GMT+08:00 Eric Sunshine :
> On Sat, Mar 1, 2014 at 9:18 PM, Sun He wrote:
>> Signed-off-by: Sun He
>> Helped-by: Duy Nguyen
>
> Footers should follow a temporal order. For instance:
>
> 1. Duy helped you.
> 2. You revised your patch based upon his input.
> 3. You signed off befo
58 matches
Mail list logo