[PATCH v6] mru: Replace mru.[ch] with list.h implementation

2018-01-23 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. This patch leads to significant code reduction and the mru API hence, is not a useful abstraction anymore. Signed-off-by: Gargi Sharma <gs

[PATCH v5] mru: Replace mru.[ch] with list.h implementation

2018-01-21 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. This patch leads to significant code reduction and the mru API hence, is not a useful abstraction anymore. Signed-off-by: Gargi Sharma <gs

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-21 Thread Gargi Sharma
On Sun, Jan 21, 2018 at 4:38 AM, René Scharfe <l@web.de> wrote: > > Am 20.01.2018 um 23:24 schrieb Gargi Sharma: > > On Sat, Jan 20, 2018 at 1:02 AM, Eric Wong <e...@80x24.org> wrote: > >> Gargi Sharma <gs051...@gmail.com> wrote: > >>> --

[PATCH v4] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. This patch leads to significant code reduction and the mru API hence, is not a useful abstraction anymore. Signed-off-by: Gargi Sharma <gs

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread Gargi Sharma
On Sat, Jan 20, 2018 at 12:59 AM, Eric Sunshine <sunsh...@sunshineco.com> wrote: > On Fri, Jan 19, 2018 at 6:36 PM, Gargi Sharma <gs051...@gmail.com> wrote: >> Replace the custom calls to mru.[ch] with calls to list.h. This patch is >> the final step in removing the mru

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread Gargi Sharma
On Sat, Jan 20, 2018 at 1:02 AM, Eric Wong <e...@80x24.org> wrote: > Gargi Sharma <gs051...@gmail.com> wrote: >> --- a/list.h >> +++ b/list.h >> @@ -93,6 +93,13 @@ static inline void list_move(struct list_head *elem, >> struct list_head *head) >>

Re: [PATCH] mru: Replace mru.[ch] with list.h implementation

2018-01-19 Thread Gargi Sharma
On Fri, Jan 19, 2018 at 9:46 PM, Jeff King <p...@peff.net> wrote: > > On Mon, Jan 15, 2018 at 08:46:25PM -0500, Gargi Sharma wrote: > > > Replace the custom calls to mru.[ch] with calls to list.h. This patch is the > > final step in removing the mru API comple

[PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-19 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. This patch leads to significant code reduction and the mru API hence, is not a useful abstraction anymore. Signed-off-by: Gargi Sharma <gs

[PATCH] mru: Replace mru.[ch] with list.h implementation

2018-01-15 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. Another discussion, here (https://public-inbox.org/git/caoci2dgyqr4jff5oby2buyhnjeaapqkf8tbojn2w0b18eo+...@mail.gmail.com/) was on what has to be done

Re: [PATCH] mru: Replace mru.[ch] with list.h implementation

2017-11-12 Thread Gargi Sharma
On Sun, Nov 12, 2017 at 9:54 AM, Jeff King <p...@peff.net> wrote: > On Sat, Nov 11, 2017 at 01:06:46PM -0500, Gargi Sharma wrote: > >> Replace custom allocation in mru.[ch] with generic calls >> to list.h API. >> >> Signed-off-by: Gargi Sharma <gs05

[PATCH] mru: Replace mru.[ch] with list.h implementation

2017-11-11 Thread Gargi Sharma
Replace custom allocation in mru.[ch] with generic calls to list.h API. Signed-off-by: Gargi Sharma <gs051...@gmail.com> --- builtin/pack-objects.c | 14 -- cache.h| 9 + mru.c | 27 --- mru.h