Re: [ANNOUNCE] Git v1.8.5-rc1

2013-11-07 Thread Christian Couder
On Thu, Nov 7, 2013 at 12:57 AM, Junio C Hamano wrote: > > * "git replace" helper no longer allows an object to be replaced with >another object of a different type to avoid confusion (you can >still manually craft such replacement using "git update-ref", as an >escape hatch). Maybe

Re: [PATCH v3] push: Enhance unspecified push default warning

2013-11-07 Thread Matthieu Moy
Jonathan Nieder writes: > When push.default is set to 'matching', git will push local branches > to remote branches that already exist with the same (matching) name. Yes, that's better than the original patch (and remains two lines). > + "In Git 2.0 the new push.default of 'si

Re: [PATCH v3 2/2] Rename suffixcmp() to has_suffix() and invert its result

2013-11-07 Thread Christian Couder
On Thu, Nov 7, 2013 at 1:12 AM, Junio C Hamano wrote: > Jonathan Nieder writes: > >>> The old name followed the pattern anything-cmp(), which suggests >>> a general comparison function suitable for e.g. sorting objects. >>> But this was not the case for suffixcmp(). >> >> It's not clear to me tha

[PATCH v4 00/14] New hash table implementation

2013-11-07 Thread Karsten Blees
Also here: https://github.com/kblees/git/commits/kb/hashmap-v4 Sorry for the delay, but the promised static use-after-free analysis [1] turned out to be much more involved than I had anticipated. The Good News is that the static analysis independently found the four use-after-free issues that w

[PATCH v4 01/14] submodule: don't access the .gitmodules cache entry after removing it

2013-11-07 Thread Karsten Blees
Commit 5fee995244e introduced the stage_updated_gitmodules() function to add submodule configuration updates to the index. It assumed that even after calling remove_cache_entry_at() the same cache entry would still be valid. This was true in the old days, as cache entries could never be freed, but

[PATCH v4 03/14] buitin/describe.c: use new hash map implementation

2013-11-07 Thread Karsten Blees
Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- builtin/describe.c | 53 - 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/builtin/describe.c b/builtin/describe.c index 6f62109..0b2cef4 100644 --- a/builtin/descri

[PATCH v4 02/14] add a hashtable implementation that supports O(1) removal

2013-11-07 Thread Karsten Blees
The existing hashtable implementation (in hash.[ch]) uses open addressing (i.e. resolve hash collisions by distributing entries across the table). Thus, removal is difficult to implement with less than O(n) complexity. Resolving collisions of entries with identical hashes (e.g. via chaining) is lef

[PATCH v4 04/14] diffcore-rename.c: move code around to prepare for the next patch

2013-11-07 Thread Karsten Blees
No actual code changes, just move hash_filespec up and outdent part of find_identical_files. Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- diffcore-rename.c | 98 +++ 1 file changed, 49 insertions(+), 49 deletions(-) diff --g

[PATCH v4 05/14] diffcore-rename.c: simplify finding exact renames

2013-11-07 Thread Karsten Blees
The find_exact_renames function currently only uses the hash table for grouping, i.e.: 1. add sources 2. add destinations 3. iterate all buckets, per bucket: 4. split sources from destinations 5. iterate destinations, per destination: 6. iterate sources to find best match This can be simplified b

[PATCH v4 06/14] diffcore-rename.c: use new hash map implementation

2013-11-07 Thread Karsten Blees
Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- diffcore-rename.c | 48 +--- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/diffcore-rename.c b/diffcore-rename.c index cfeb408..d996c6a 100644 --- a/diffcore-rename.c +++

[PATCH v4 07/14] name-hash.c: use new hash map implementation for directories

2013-11-07 Thread Karsten Blees
Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- cache.h | 3 ++- name-hash.c | 77 +++-- 2 files changed, 20 insertions(+), 60 deletions(-) diff --git a/cache.h b/cache.h index d1f3c71..84e9ad6 100644 --- a/cache.h +++

[PATCH v4 08/14] name-hash.c: remove unreferenced directory entries

2013-11-07 Thread Karsten Blees
The new hashmap implementation supports remove, so remove and free directory entries that are no longer referenced by active cache entries. Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- name-hash.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --gi

[PATCH v4 09/14] name-hash.c: use new hash map implementation for cache entries

2013-11-07 Thread Karsten Blees
Note: the "ce->next = NULL;" in unpack-trees.c::do_add_entry can safely be removed, as ce->next (now ce->ent.next) is always properly initialized in name-hash.c::hash_index_entry. Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- cache.h| 8 +--- name-hash.c| 24 ++

[PATCH v4 10/14] name-hash.c: remove cache entries instead of marking them CE_UNHASHED

2013-11-07 Thread Karsten Blees
The new hashmap implementation supports remove, so really remove unused cache entries from the name hashmap instead of just marking them. The CE_UNHASHED flag and CE_STATE_MASK are no longer needed. Keep the CE_HASHED flag to prevent adding entries twice. Signed-off-by: Karsten Blees Signed-off

[PATCH v4 11/14] remove old hash.[ch] implementation

2013-11-07 Thread Karsten Blees
Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- Documentation/technical/api-hash.txt | 52 - Makefile | 2 - cache.h | 1 - hash.c | 110 ---

Warning Your Mailbox Has Exceeded Quota Limit

2013-11-07 Thread Kell, Todd
Dear user, Your mailbox has Exceeded the quota limit set by the administrator, you will not be able to send or receive mail until you revalidates your account. Please click the link below or copy paste to your browser to validate your mailbox. http://tinylink.net/quotalimit Failure to do th

[PATCH v4 14/14] read-cache.c: fix memory leaks caused by removed cache entries

2013-11-07 Thread Karsten Blees
When cache_entry structs are removed from index_state.cache, they are not properly freed. Freeing those entries wasn't possible before because we couldn't remove them from index_state.name_hash. Now that we _do_ remove the entries from name_hash, we can also free them. Add 'free(cache_entry)' to a

[PATCH v4 12/14] fix 'git update-index --verbose --again' output

2013-11-07 Thread Karsten Blees
'git update-index --verbose' consistently reports paths relative to the work-tree root. The only exception is the '--again' option, which reports paths relative to the current working directory. Change do_reupdate to use non-prefixed paths. Signed-off-by: Karsten Blees --- builtin/update-index.

[PATCH v4 13/14] builtin/update-index.c: cleanup update_one

2013-11-07 Thread Karsten Blees
do_reupdate calls update_one with a cache_entry.name, there's no need for the extra sanitation / normalization that happens in prefix_path. cmd_update_index calls update_one with an already prefixed path, no need to prefix_path twice. Remove the extra prefix_path from update_one. Also remove the n

Re: [RFC/PATCH] Add interpret-trailers builtin

2013-11-07 Thread Christian Couder
On Wed, Nov 6, 2013 at 9:42 PM, Junio C Hamano wrote: > Christian Couder writes: >> From: Junio C Hamano >> >>> But that is insufficient to emulate what we do, no? I.e. append >>> unless the last one is from the same person we are about to add. >> >> Yeah, but, with DONT_REPEAT_PREVIOUS, it wou

Re: What's cooking in git.git (Nov 2013, #02; Wed, 6)

2013-11-07 Thread Marc Branchaud
On 13-11-06 07:01 PM, Junio C Hamano wrote: > > There is a proposed rewording of advice message from "git push" > patch, which is tentatively queued near the tip of 'pu' for now; it > would be nice to get a few more sets of eyeballs. I am not sure if > we should merge it before the 1.8.5 final, y

[PATCH 0/2] Improve gitignore documentation wrt excluded directories

2013-11-07 Thread Karsten Blees
Also here: https://github.com/kblees/git/commits/kb/gitignore-doc These two patches were the result of a discussion mid-october [1] that I almost forgot about...now including an example as suggested by Jeff. [1] http://thread.gmane.org/gmane.comp.version-control.git/235753/focus=235856 Karsten

[PATCH 1/2] gitignore.txt: fix documentation of "**" patterns

2013-11-07 Thread Karsten Blees
"**" means bold in ASCIIDOC, so we need to escape it. Signed-off-by: Karsten Blees --- Documentation/gitignore.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt index 54e334e..f971960 100644 --- a/Documentation

[PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Karsten Blees
Additionally, precedence of negated patterns is exactly as outlined in the DESCRIPTION section, we don't need to repeat this. Signed-off-by: Karsten Blees --- Documentation/gitignore.txt | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/gitigno

Request: timeout option for remote operations, esp. "git fetch"

2013-11-07 Thread H. Peter Anvin
When a remote server is unavailable or very slow, some git commands can stall out indefinitely. It would be a very good thing if remote commands -- but especially git fetch -- could be given a timeout. -hpa -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a

Re: [PATCH 1/3] for-each-ref: introduce %C(...) for color

2013-11-07 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Junio C Hamano wrote: >> ... users of for-each-ref format will be _more_ familiar with >> formats used by for-each-ref, and it would make a lot more sense to >> keep the syntactic resemblance between existing features to show >> magic things in for-each-ref and the

Re: [PATCH v3] push: Enhance unspecified push default warning

2013-11-07 Thread Junio C Hamano
Matthieu Moy writes: > Jonathan Nieder writes: > >> When push.default is set to 'matching', git will push local branches >> to remote branches that already exist with the same (matching) name. > > Yes, that's better than the original patch (and remains two lines). > >> + "In Git

Colorize output

2013-11-07 Thread Nicolas
Hello, I’m developping a git command in shell and I would like colorize the output. I don’t find anything in git-sh-setup. What is the best way for don’t reinvent the wheel? Thanks in advance. Best regards. Nicolas. signature.asc Description: OpenPGP digital signature

Re: Colorize output

2013-11-07 Thread John Keeping
On Thu, Nov 07, 2013 at 07:10:11PM +0100, Nicolas wrote: > I’m developping a git command in shell and I would like colorize the output. > > I don’t find anything in git-sh-setup. > > What is the best way for don’t reinvent the wheel? I normally use "git config --get-color ..." either with standa

Re: [PATCH 1/2] gitignore.txt: fix documentation of "**" patterns

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > "**" means bold in ASCIIDOC, so we need to escape it. > > Signed-off-by: Karsten Blees > --- > Documentation/gitignore.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt > index 54e

Re: [PATCH v3] push: Enhance unspecified push default warning

2013-11-07 Thread Matthieu Moy
Junio C Hamano writes: > Actually, to me, I found the "two sentences" the worst part in the > original. It made it sound as if the default will be switching to > 'upstream', and all readers need to read the second sentence that > clarifies that it is not the case, in a somewhat round-about > way

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > Additionally, precedence of negated patterns is exactly as outlined in > the DESCRIPTION section, we don't need to repeat this. Very good, thanks. Even though I have a suspicion that somebody else may be able to come up with a better phrase that does not sound unnecessar

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Junio C Hamano
Junio C Hamano writes: > Karsten Blees writes: > >> Additionally, precedence of negated patterns is exactly as outlined in >> the DESCRIPTION section, we don't need to repeat this. > > Very good, thanks. > > Even though I have a suspicion that somebody else may be able to > come up with a better

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Jeff King
On Thu, Nov 07, 2013 at 11:37:38AM -0800, Junio C Hamano wrote: > Junio C Hamano writes: > > > Karsten Blees writes: > > > >> Additionally, precedence of negated patterns is exactly as outlined in > >> the DESCRIPTION section, we don't need to repeat this. > > > > Very good, thanks. > > > > Eve

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Karsten Blees
Am 07.11.2013 20:55, schrieb Jeff King: > On Thu, Nov 07, 2013 at 11:37:38AM -0800, Junio C Hamano wrote: > >> Junio C Hamano writes: >> >>> Karsten Blees writes: >>> Additionally, precedence of negated patterns is exactly as outlined in the DESCRIPTION section, we don't need to repeat

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Jeff King
On Thu, Nov 07, 2013 at 09:27:16PM +0100, Karsten Blees wrote: > > How about: > > > > It is not possible to re-include a file if a parent directory of that > > file is excluded. Once git considers a directory excluded, it does not > > descend into the directory to consider its contents furt

[PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Karsten Blees
Additionally, precedence of negated patterns is exactly as outlined in the DESCRIPTION section, we don't need to repeat this. Signed-off-by: Karsten Blees --- I also force-pushed to git://github.com/kblees/git.git kb/gitignore-doc. Documentation/gitignore.txt | 19 +-- 1 file c

Re: [PATCH v4 02/14] add a hashtable implementation that supports O(1) removal

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > +`void hashmap_add(struct hashmap *map, void *entry)`:: > + > + Adds a hashmap entry. This allows to add duplicate entries (i.e. > + separate values with the same key according to hashmap_cmp_fn). > ++ > +`map` is the hashmap structure. > ++ > +`entry` is the entry

Re: [PATCH v4 13/14] builtin/update-index.c: cleanup update_one

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > - if (p < path || p > path + strlen(path)) > - free((char *)p); > + free(p); The non-const cast was there for a reason. I'll locally fix it up (there is another instance of the same) to get it compile be

Re: [PATCH v4 14/14] read-cache.c: fix memory leaks caused by removed cache entries

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > diff --git a/builtin/update-index.c b/builtin/update-index.c > index b654d27..acd992d 100644 > --- a/builtin/update-index.c > +++ b/builtin/update-index.c > @@ -559,6 +559,7 @@ static int do_reupdate(int ac, const char **av, > const struct cache_entry *ce = a

Экстаз У молодицы гарантирован

2013-11-07 Thread sn_00_py
100% обеспечите королеве удовлетворение http://goo.gl/n5lfgw -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v4 12/14] fix 'git update-index --verbose --again' output

2013-11-07 Thread Junio C Hamano
Karsten Blees writes: > 'git update-index --verbose' consistently reports paths relative to the > work-tree root. The only exception is the '--again' option, which reports > paths relative to the current working directory. > > Change do_reupdate to use non-prefixed paths. Interesting. This look

[PATCH 1/5] compat/bswap.h: Fix build on cygwin, MinGW and msvc

2013-11-07 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- compat/bswap.h | 97 -- 1 file changed, 68 insertions(+), 29 deletions(-) diff --git a/compat/bswap.h b/compat/bswap.h index ea1a9ed..c18a78e 100644 --- a/compat/bswap.h +++ b/compat/bswap.h @@ -17,7 +17,20

[PATCH 0/5] fix up 'jk/pack-bitmap' branch

2013-11-07 Thread Ramsay Jones
Hi Jeff, These patches fix various errors/warnings on the cygwin, MinGW and msvc builds, provoked by the jk/pack-bitmap branch. Note that this does not fix all problems on the msvc build; I have a solution, but I don't like it. :-D So, I'm going to try a different fix. I had hoped to have done t

[PATCH 3/5] khash.h: Spell the null pointer as NULL

2013-11-07 Thread Ramsay Jones
Noticed by sparse. ("Using plain integer as NULL pointer") Signed-off-by: Ramsay Jones --- khash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khash.h b/khash.h index 0fdf39d..c4c1613 100644 --- a/khash.h +++ b/khash.h @@ -114,7 +114,7 @@ static const double __ac_HASH_UP

[PATCH 5/5] ewah_bitmap.c: Fix printf format warnings on MinGW

2013-11-07 Thread Ramsay Jones
On MinGW, gcc complains as follows: CC ewah/ewah_bitmap.o ewah/ewah_bitmap.c: In function 'ewah_dump': ewah/ewah_bitmap.c:389: warning: unknown conversion type \ character 'z' in format ewah/ewah_bitmap.c:389: warning: unknown conversion type \ character 'z' in

[PATCH 2/5] Makefile: Add object files in ewah/ to clean target

2013-11-07 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 07b0626..1950858 100644 --- a/Makefile +++ b/Makefile @@ -2484,8 +2484,9 @@ profile-clean: $(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(o

[PATCH 4/5] pack-objects: Limit visibility of 'indexed_commits' symbols

2013-11-07 Thread Ramsay Jones
Noticed by sparse. ("symbol '...' was not declared. Should it be static?") Signed-off-by: Ramsay Jones --- builtin/pack-objects.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 423e85a..161bfc2 100644 --- a/builtin

Re: [PATCH 0/5] fix up 'jk/pack-bitmap' branch

2013-11-07 Thread Jeff King
On Thu, Nov 07, 2013 at 09:58:02PM +, Ramsay Jones wrote: > These patches fix various errors/warnings on the cygwin, MinGW and > msvc builds, provoked by the jk/pack-bitmap branch. Thanks. Your timing is impeccable, as I was just sitting down to finalize the next re-roll. I'll add these in.

Re: [PATCH v4 01/14] submodule: don't access the .gitmodules cache entry after removing it

2013-11-07 Thread Heiko Voigt
Hi, it looks like there is a "From: Jens ..." line missing on top of this patch. Am 07.11.2013 15:33, schrieb Karsten Blees: Commit 5fee995244e introduced the stage_updated_gitmodules() function to add submodule configuration updates to the index. It assumed that even after calling remove_cache

Re: [PATCH 2/2] gitignore.txt: clarify recursive nature of excluded directories

2013-11-07 Thread Junio C Hamano
Thanks; will queue. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 5/5] ewah_bitmap.c: Fix printf format warnings on MinGW

2013-11-07 Thread Junio C Hamano
Ramsay Jones writes: > On MinGW, gcc complains as follows: > > CC ewah/ewah_bitmap.o > ewah/ewah_bitmap.c: In function 'ewah_dump': > ewah/ewah_bitmap.c:389: warning: unknown conversion type \ > character 'z' in format > ewah/ewah_bitmap.c:389: warning: unknown convers

[PATCH] checkout: most of the time we have good leading directories

2013-11-07 Thread Junio C Hamano
When "git checkout" wants to create a path, e.g. a/b/c/d/e, after seeing if the entire thing already exists (in which case we check if that is up-to-date and do not bother to check it out, or we unlink and recreate it), we validate that the leading directory path is without funny symlinks by seeing

Re: [PATCH 1/5] compat/bswap.h: Fix build on cygwin, MinGW and msvc

2013-11-07 Thread SZEDER Gábor
Hi, On Thu, Nov 07, 2013 at 09:59:38PM +, Ramsay Jones wrote: > +static inline uint64_t default_bswap64(uint64_t val) > +{ > + return (((val & (uint64_t)0x00ffULL) << 56) | > + ((val & (uint64_t)0xff00ULL) << 40) | > + ((val & (uint64_t)0x000

Re: [PATCH 0/5] fix up 'jk/pack-bitmap' branch

2013-11-07 Thread Vicent Martí
Thank you Ramsay, all the patches look OK to me. On Thu, Nov 7, 2013 at 11:19 PM, Jeff King wrote: > On Thu, Nov 07, 2013 at 09:58:02PM +, Ramsay Jones wrote: > >> These patches fix various errors/warnings on the cygwin, MinGW and >> msvc builds, provoked by the jk/pack-bitmap branch. > > Tha

вне зубрежки и нуднейших занятий

2013-11-07 Thread alfedorov71
Обратить свою биографию помногообразнее, воспылать замечательнейшим делом. Расширить круг общения. Применяются засекреченные экспресс-методы. Убыстренное обучение. Экспресс-курс для делающих первые щаги а так же углублённых. Приподнять личную цену на рынке работы. Вы сможете говорить по британск