# \[PATCH v2 02/23\] refs-common.c: create a file to host all common refs code

- From: Ronnie Sahlberg \<hidden\>
- Date: 2016-06-15 23:02:15 
- List: git
- Page: https://ratatoskr.run/git/2016/06/7639717
- Thread: https://ratatoskr.run/git/2016/06/7639719/t.md

```text
Create refs-common.c which will hold all backend agnostic refs code.

Signed-off-by: Ronnie Sahlberg <redacted>
---
 Makefile      | 1 +
 refs-common.c | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 refs-common.c

diff --git a/Makefile b/Makefile
index 07ea105..7705136 100644
--- a/Makefile
+++ b/Makefile
@@ -858,6 +858,7 @@ LIB_OBJS += reachable.o
 LIB_OBJS += read-cache.o
 LIB_OBJS += reflog-walk.o
 LIB_OBJS += refs.o
+LIB_OBJS += refs-common.o
 LIB_OBJS += remote.o
 LIB_OBJS += replace_object.o
 LIB_OBJS += rerere.o
diff --git a/refs-common.c b/refs-common.c
new file mode 100644
index 0000000..44d96d2
--- /dev/null
+++ b/refs-common.c
@@ -0,0 +1,2 @@
+/* common code for all ref backends */
+
-- 
2.0.1.556.g3edca4c
```
